gen / public /style.css
AnesKAM's picture
Update public/style.css
988b64b verified
/* إضافة ستايل مفتاح التبديل */
.search-toggle {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 20px;
background: #f8f9fa;
border-bottom: 1px solid #e0e0e0;
}
.switch {
position: relative;
display: inline-block;
width: 52px;
height: 28px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: 0.3s;
border-radius: 28px;
}
.slider:before {
position: absolute;
content: "";
height: 22px;
width: 22px;
left: 3px;
bottom: 3px;
background-color: white;
transition: 0.3s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #4a90e2;
}
input:checked + .slider:before {
transform: translateX(24px);
}
.search-label {
font-size: 13px;
color: #666;
}
/* الباقي كما هو */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
}
.container {
max-width: 900px;
width: 100%;
background: white;
border-radius: 20px;
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
overflow: hidden;
}
.header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 20px;
text-align: center;
}
.header h1 {
font-size: 1.5em;
}
.header p {
font-size: 0.8em;
opacity: 0.9;
}
.mode-buttons {
display: flex;
gap: 15px;
padding: 15px 20px;
background: #f8f9fa;
border-bottom: 1px solid #e0e0e0;
}
.mode-btn {
flex: 1;
padding: 12px;
border: none;
border-radius: 12px;
cursor: pointer;
font-weight: bold;
transition: all 0.3s;
}
.mode-btn.flash {
background: #ffd93d;
color: #8b6b00;
}
.mode-btn.pro {
background: #4a90e2;
color: white;
}
.mode-btn.active {
transform: scale(0.98);
box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.chat-container {
display: flex;
flex-direction: column;
height: 500px;
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 20px;
background: #f0f2f5;
}
.message {
display: flex;
margin-bottom: 15px;
animation: fadeIn 0.3s;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.message.user {
flex-direction: row-reverse;
}
.avatar {
width: 36px;
height: 36px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
margin: 0 10px;
}
.message.user .avatar {
background: #4a90e2;
color: white;
}
.message.bot .avatar {
background: #e0e0e0;
}
.content {
max-width: 70%;
background: white;
padding: 12px 16px;
border-radius: 15px;
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
line-height: 1.5;
}
.message.user .content {
background: #4a90e2;
color: white;
}
.thought-container {
background: #fff3e0;
border-right: 4px solid #ff9800;
padding: 12px;
margin: 10px 0;
border-radius: 8px;
font-style: italic;
color: #5a3e1b;
}
.thought-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
font-weight: bold;
color: #ff9800;
}
.input-area {
display: flex;
gap: 10px;
padding: 15px 20px;
background: white;
border-top: 1px solid #e0e0e0;
}
textarea {
flex: 1;
padding: 12px;
border: 2px solid #e0e0e0;
border-radius: 12px;
font-family: inherit;
resize: none;
font-size: 14px;
}
textarea:focus {
outline: none;
border-color: #764ba2;
}
button {
padding: 12px 24px;
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
border: none;
border-radius: 12px;
cursor: pointer;
font-weight: bold;
transition: transform 0.2s;
}
button:hover {
transform: translateY(-2px);
}
.status-bar {
padding: 8px 20px;
background: #f8f9fa;
font-size: 12px;
color: #666;
text-align: center;
border-top: 1px solid #e0e0e0;
}
.loading {
display: inline-block;
width: 16px;
height: 16px;
border: 2px solid #f3f3f3;
border-top: 2px solid #764ba2;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.search-indicator {
background: #e3f2fd;
border-radius: 8px;
padding: 8px 12px;
margin-bottom: 10px;
font-size: 12px;
color: #1976d2;
}
.chat-messages::-webkit-scrollbar {
width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
background: #f1f1f1;
}
.chat-messages::-webkit-scrollbar-thumb {
background: #888;
border-radius: 3px;
}