Update public/style.css
Browse files- public/style.css +100 -172
public/style.css
CHANGED
|
@@ -6,75 +6,71 @@
|
|
| 6 |
|
| 7 |
body {
|
| 8 |
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 9 |
-
background: linear-gradient(135deg, #
|
| 10 |
-
height: 100vh;
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
| 12 |
}
|
| 13 |
|
| 14 |
.container {
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
max-width: 1400px;
|
| 18 |
-
margin: 0 auto;
|
| 19 |
background: white;
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
| 21 |
}
|
| 22 |
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
|
| 27 |
-
border-left: 1px solid #dee2e6;
|
| 28 |
-
display: flex;
|
| 29 |
-
flex-direction: column;
|
| 30 |
-
padding: 20px;
|
| 31 |
}
|
| 32 |
|
| 33 |
-
.
|
|
|
|
|
|
|
|
|
|
| 34 |
text-align: center;
|
| 35 |
-
padding-bottom: 20px;
|
| 36 |
-
border-bottom: 2px solid #dee2e6;
|
| 37 |
-
margin-bottom: 20px;
|
| 38 |
}
|
| 39 |
|
| 40 |
-
.
|
| 41 |
-
|
| 42 |
margin-bottom: 5px;
|
| 43 |
}
|
| 44 |
|
| 45 |
-
.
|
| 46 |
-
|
| 47 |
-
font-size:
|
| 48 |
}
|
| 49 |
|
| 50 |
-
.mode-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
color: #495057;
|
| 57 |
-
font-size: 16px;
|
| 58 |
}
|
| 59 |
|
| 60 |
.mode-btn {
|
| 61 |
-
|
| 62 |
padding: 12px;
|
| 63 |
-
margin-bottom: 10px;
|
| 64 |
border: none;
|
| 65 |
-
border-radius:
|
| 66 |
cursor: pointer;
|
| 67 |
-
transition: all 0.3s ease;
|
| 68 |
-
text-align: right;
|
| 69 |
font-weight: bold;
|
|
|
|
|
|
|
| 70 |
display: flex;
|
| 71 |
flex-direction: column;
|
| 72 |
gap: 5px;
|
|
|
|
| 73 |
}
|
| 74 |
|
| 75 |
.mode-btn small {
|
| 76 |
-
font-size:
|
| 77 |
-
font-weight: normal;
|
| 78 |
opacity: 0.8;
|
| 79 |
}
|
| 80 |
|
|
@@ -85,7 +81,7 @@ body {
|
|
| 85 |
|
| 86 |
.mode-btn.flash:hover, .mode-btn.flash.active {
|
| 87 |
background: #ffc107;
|
| 88 |
-
transform:
|
| 89 |
box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
|
| 90 |
}
|
| 91 |
|
|
@@ -96,80 +92,37 @@ body {
|
|
| 96 |
|
| 97 |
.mode-btn.pro:hover, .mode-btn.pro.active {
|
| 98 |
background: #357abd;
|
| 99 |
-
transform:
|
| 100 |
box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
|
| 101 |
}
|
| 102 |
|
| 103 |
-
.
|
| 104 |
-
padding-top: 20px;
|
| 105 |
-
border-top: 1px solid #dee2e6;
|
| 106 |
-
font-size: 14px;
|
| 107 |
-
}
|
| 108 |
-
|
| 109 |
-
.mode-info, .token-info {
|
| 110 |
-
margin-bottom: 10px;
|
| 111 |
-
display: flex;
|
| 112 |
-
justify-content: space-between;
|
| 113 |
-
}
|
| 114 |
-
|
| 115 |
-
.token-info {
|
| 116 |
-
font-size: 12px;
|
| 117 |
-
color: #6c757d;
|
| 118 |
-
}
|
| 119 |
-
|
| 120 |
-
/* منطقة الشات */
|
| 121 |
-
.chat-area {
|
| 122 |
-
flex: 1;
|
| 123 |
display: flex;
|
| 124 |
flex-direction: column;
|
| 125 |
-
|
| 126 |
-
}
|
| 127 |
-
|
| 128 |
-
.chat-header {
|
| 129 |
-
padding: 15px 20px;
|
| 130 |
-
border-bottom: 1px solid #e0e0e0;
|
| 131 |
-
display: flex;
|
| 132 |
-
justify-content: space-between;
|
| 133 |
-
align-items: center;
|
| 134 |
-
background: #f8f9fa;
|
| 135 |
-
}
|
| 136 |
-
|
| 137 |
-
.clear-btn {
|
| 138 |
-
background: #dc3545;
|
| 139 |
-
color: white;
|
| 140 |
-
border: none;
|
| 141 |
-
padding: 8px 15px;
|
| 142 |
-
border-radius: 6px;
|
| 143 |
-
cursor: pointer;
|
| 144 |
-
transition: all 0.3s;
|
| 145 |
-
}
|
| 146 |
-
|
| 147 |
-
.clear-btn:hover {
|
| 148 |
-
background: #c82333;
|
| 149 |
-
transform: scale(0.95);
|
| 150 |
}
|
| 151 |
|
| 152 |
.chat-messages {
|
| 153 |
flex: 1;
|
| 154 |
overflow-y: auto;
|
| 155 |
padding: 20px;
|
| 156 |
-
background: #
|
| 157 |
}
|
| 158 |
|
| 159 |
.message {
|
| 160 |
display: flex;
|
| 161 |
-
margin-bottom:
|
| 162 |
animation: slideIn 0.3s ease;
|
| 163 |
}
|
| 164 |
|
| 165 |
@keyframes slideIn {
|
| 166 |
from {
|
| 167 |
opacity: 0;
|
| 168 |
-
transform:
|
| 169 |
}
|
| 170 |
to {
|
| 171 |
opacity: 1;
|
| 172 |
-
transform:
|
| 173 |
}
|
| 174 |
}
|
| 175 |
|
|
@@ -177,62 +130,48 @@ body {
|
|
| 177 |
flex-direction: row-reverse;
|
| 178 |
}
|
| 179 |
|
| 180 |
-
.
|
| 181 |
width: 40px;
|
| 182 |
height: 40px;
|
| 183 |
border-radius: 50%;
|
| 184 |
display: flex;
|
| 185 |
align-items: center;
|
| 186 |
justify-content: center;
|
| 187 |
-
font-size:
|
| 188 |
margin: 0 10px;
|
| 189 |
}
|
| 190 |
|
| 191 |
-
.message.user .
|
| 192 |
background: #4a90e2;
|
|
|
|
| 193 |
}
|
| 194 |
|
| 195 |
-
.message.bot .
|
| 196 |
-
background: #
|
| 197 |
}
|
| 198 |
|
| 199 |
-
.
|
| 200 |
max-width: 70%;
|
| 201 |
-
background:
|
| 202 |
-
border-radius: 15px;
|
| 203 |
padding: 12px 16px;
|
| 204 |
-
|
|
|
|
|
|
|
| 205 |
}
|
| 206 |
|
| 207 |
-
.message.user .
|
| 208 |
background: #4a90e2;
|
| 209 |
color: white;
|
| 210 |
}
|
| 211 |
|
| 212 |
-
.message-text {
|
| 213 |
-
line-height: 1.5;
|
| 214 |
-
}
|
| 215 |
-
|
| 216 |
-
/* حاوية التفكير */
|
| 217 |
.thought-container {
|
| 218 |
background: #fff3e0;
|
| 219 |
border-right: 4px solid #ff9800;
|
| 220 |
padding: 15px;
|
| 221 |
margin: 10px 0;
|
| 222 |
border-radius: 10px;
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
}
|
| 226 |
-
|
| 227 |
-
@keyframes fadeIn {
|
| 228 |
-
from {
|
| 229 |
-
opacity: 0;
|
| 230 |
-
max-height: 0;
|
| 231 |
-
}
|
| 232 |
-
to {
|
| 233 |
-
opacity: 1;
|
| 234 |
-
max-height: 500px;
|
| 235 |
-
}
|
| 236 |
}
|
| 237 |
|
| 238 |
.thought-header {
|
|
@@ -240,84 +179,78 @@ body {
|
|
| 240 |
align-items: center;
|
| 241 |
gap: 8px;
|
| 242 |
margin-bottom: 10px;
|
| 243 |
-
color: #ff9800;
|
| 244 |
font-weight: bold;
|
| 245 |
-
|
| 246 |
-
}
|
| 247 |
-
|
| 248 |
-
.thought-icon {
|
| 249 |
-
font-size: 18px;
|
| 250 |
-
}
|
| 251 |
-
|
| 252 |
-
.thought-content {
|
| 253 |
-
color: #5a3e1b;
|
| 254 |
-
font-style: italic;
|
| 255 |
-
line-height: 1.6;
|
| 256 |
-
white-space: pre-wrap;
|
| 257 |
-
}
|
| 258 |
-
|
| 259 |
-
.regular-content {
|
| 260 |
-
white-space: pre-wrap;
|
| 261 |
-
line-height: 1.5;
|
| 262 |
}
|
| 263 |
|
| 264 |
-
/* منطقة الإدخال */
|
| 265 |
.input-area {
|
| 266 |
-
padding: 20px;
|
| 267 |
-
border-top: 1px solid #e0e0e0;
|
| 268 |
display: flex;
|
| 269 |
gap: 10px;
|
| 270 |
-
|
|
|
|
|
|
|
| 271 |
}
|
| 272 |
|
| 273 |
-
|
| 274 |
flex: 1;
|
| 275 |
padding: 12px;
|
| 276 |
border: 2px solid #e0e0e0;
|
| 277 |
-
border-radius:
|
| 278 |
font-family: inherit;
|
| 279 |
font-size: 14px;
|
| 280 |
resize: none;
|
| 281 |
transition: all 0.3s;
|
| 282 |
}
|
| 283 |
|
| 284 |
-
|
| 285 |
outline: none;
|
| 286 |
-
border-color: #
|
| 287 |
-
box-shadow: 0 0 0 3px rgba(
|
| 288 |
}
|
| 289 |
|
| 290 |
-
|
| 291 |
-
|
|
|
|
| 292 |
color: white;
|
| 293 |
border: none;
|
| 294 |
-
|
| 295 |
-
border-radius: 10px;
|
| 296 |
cursor: pointer;
|
| 297 |
font-weight: bold;
|
| 298 |
transition: all 0.3s;
|
| 299 |
-
|
|
|
|
|
|
|
| 300 |
}
|
| 301 |
|
| 302 |
-
|
| 303 |
-
background: #357abd;
|
| 304 |
transform: translateY(-2px);
|
| 305 |
-
box-shadow: 0 4px 12px rgba(
|
| 306 |
-
}
|
| 307 |
-
|
| 308 |
-
.shortcut {
|
| 309 |
-
font-size: 12px;
|
| 310 |
-
opacity: 0.8;
|
| 311 |
-
margin-right: 8px;
|
| 312 |
}
|
| 313 |
|
| 314 |
-
.status {
|
| 315 |
padding: 10px 20px;
|
| 316 |
-
|
|
|
|
| 317 |
color: #6c757d;
|
|
|
|
| 318 |
border-top: 1px solid #e0e0e0;
|
| 319 |
}
|
| 320 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 321 |
/* شريط التمرير */
|
| 322 |
.chat-messages::-webkit-scrollbar {
|
| 323 |
width: 8px;
|
|
@@ -332,17 +265,12 @@ body {
|
|
| 332 |
border-radius: 4px;
|
| 333 |
}
|
| 334 |
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
/* Responsive */
|
| 340 |
-
@media (max-width: 768px) {
|
| 341 |
-
.sidebar {
|
| 342 |
-
width: 200px;
|
| 343 |
}
|
| 344 |
|
| 345 |
-
.
|
| 346 |
-
|
| 347 |
}
|
| 348 |
}
|
|
|
|
| 6 |
|
| 7 |
body {
|
| 8 |
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 9 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 10 |
+
min-height: 100vh;
|
| 11 |
+
display: flex;
|
| 12 |
+
justify-content: center;
|
| 13 |
+
align-items: center;
|
| 14 |
+
padding: 20px;
|
| 15 |
}
|
| 16 |
|
| 17 |
.container {
|
| 18 |
+
max-width: 900px;
|
| 19 |
+
width: 100%;
|
|
|
|
|
|
|
| 20 |
background: white;
|
| 21 |
+
border-radius: 20px;
|
| 22 |
+
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
|
| 23 |
+
overflow: hidden;
|
| 24 |
+
animation: fadeIn 0.5s ease;
|
| 25 |
}
|
| 26 |
|
| 27 |
+
@keyframes fadeIn {
|
| 28 |
+
from { opacity: 0; transform: translateY(-20px); }
|
| 29 |
+
to { opacity: 1; transform: translateY(0); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
}
|
| 31 |
|
| 32 |
+
.header {
|
| 33 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 34 |
+
color: white;
|
| 35 |
+
padding: 25px;
|
| 36 |
text-align: center;
|
|
|
|
|
|
|
|
|
|
| 37 |
}
|
| 38 |
|
| 39 |
+
.header h1 {
|
| 40 |
+
font-size: 1.8em;
|
| 41 |
margin-bottom: 5px;
|
| 42 |
}
|
| 43 |
|
| 44 |
+
.header p {
|
| 45 |
+
opacity: 0.9;
|
| 46 |
+
font-size: 0.9em;
|
| 47 |
}
|
| 48 |
|
| 49 |
+
.mode-buttons {
|
| 50 |
+
display: flex;
|
| 51 |
+
gap: 15px;
|
| 52 |
+
padding: 15px 20px;
|
| 53 |
+
background: #f8f9fa;
|
| 54 |
+
border-bottom: 1px solid #e0e0e0;
|
|
|
|
|
|
|
| 55 |
}
|
| 56 |
|
| 57 |
.mode-btn {
|
| 58 |
+
flex: 1;
|
| 59 |
padding: 12px;
|
|
|
|
| 60 |
border: none;
|
| 61 |
+
border-radius: 12px;
|
| 62 |
cursor: pointer;
|
|
|
|
|
|
|
| 63 |
font-weight: bold;
|
| 64 |
+
font-size: 1em;
|
| 65 |
+
transition: all 0.3s ease;
|
| 66 |
display: flex;
|
| 67 |
flex-direction: column;
|
| 68 |
gap: 5px;
|
| 69 |
+
align-items: center;
|
| 70 |
}
|
| 71 |
|
| 72 |
.mode-btn small {
|
| 73 |
+
font-size: 0.75em;
|
|
|
|
| 74 |
opacity: 0.8;
|
| 75 |
}
|
| 76 |
|
|
|
|
| 81 |
|
| 82 |
.mode-btn.flash:hover, .mode-btn.flash.active {
|
| 83 |
background: #ffc107;
|
| 84 |
+
transform: translateY(-2px);
|
| 85 |
box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
|
| 86 |
}
|
| 87 |
|
|
|
|
| 92 |
|
| 93 |
.mode-btn.pro:hover, .mode-btn.pro.active {
|
| 94 |
background: #357abd;
|
| 95 |
+
transform: translateY(-2px);
|
| 96 |
box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
|
| 97 |
}
|
| 98 |
|
| 99 |
+
.chat-container {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
display: flex;
|
| 101 |
flex-direction: column;
|
| 102 |
+
height: 500px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
}
|
| 104 |
|
| 105 |
.chat-messages {
|
| 106 |
flex: 1;
|
| 107 |
overflow-y: auto;
|
| 108 |
padding: 20px;
|
| 109 |
+
background: #f0f2f5;
|
| 110 |
}
|
| 111 |
|
| 112 |
.message {
|
| 113 |
display: flex;
|
| 114 |
+
margin-bottom: 15px;
|
| 115 |
animation: slideIn 0.3s ease;
|
| 116 |
}
|
| 117 |
|
| 118 |
@keyframes slideIn {
|
| 119 |
from {
|
| 120 |
opacity: 0;
|
| 121 |
+
transform: translateX(20px);
|
| 122 |
}
|
| 123 |
to {
|
| 124 |
opacity: 1;
|
| 125 |
+
transform: translateX(0);
|
| 126 |
}
|
| 127 |
}
|
| 128 |
|
|
|
|
| 130 |
flex-direction: row-reverse;
|
| 131 |
}
|
| 132 |
|
| 133 |
+
.avatar {
|
| 134 |
width: 40px;
|
| 135 |
height: 40px;
|
| 136 |
border-radius: 50%;
|
| 137 |
display: flex;
|
| 138 |
align-items: center;
|
| 139 |
justify-content: center;
|
| 140 |
+
font-size: 20px;
|
| 141 |
margin: 0 10px;
|
| 142 |
}
|
| 143 |
|
| 144 |
+
.message.user .avatar {
|
| 145 |
background: #4a90e2;
|
| 146 |
+
color: white;
|
| 147 |
}
|
| 148 |
|
| 149 |
+
.message.bot .avatar {
|
| 150 |
+
background: #e0e0e0;
|
| 151 |
}
|
| 152 |
|
| 153 |
+
.content {
|
| 154 |
max-width: 70%;
|
| 155 |
+
background: white;
|
|
|
|
| 156 |
padding: 12px 16px;
|
| 157 |
+
border-radius: 15px;
|
| 158 |
+
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
|
| 159 |
+
line-height: 1.5;
|
| 160 |
}
|
| 161 |
|
| 162 |
+
.message.user .content {
|
| 163 |
background: #4a90e2;
|
| 164 |
color: white;
|
| 165 |
}
|
| 166 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |
.thought-container {
|
| 168 |
background: #fff3e0;
|
| 169 |
border-right: 4px solid #ff9800;
|
| 170 |
padding: 15px;
|
| 171 |
margin: 10px 0;
|
| 172 |
border-radius: 10px;
|
| 173 |
+
font-style: italic;
|
| 174 |
+
color: #5a3e1b;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 175 |
}
|
| 176 |
|
| 177 |
.thought-header {
|
|
|
|
| 179 |
align-items: center;
|
| 180 |
gap: 8px;
|
| 181 |
margin-bottom: 10px;
|
|
|
|
| 182 |
font-weight: bold;
|
| 183 |
+
color: #ff9800;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 184 |
}
|
| 185 |
|
|
|
|
| 186 |
.input-area {
|
|
|
|
|
|
|
| 187 |
display: flex;
|
| 188 |
gap: 10px;
|
| 189 |
+
padding: 15px 20px;
|
| 190 |
+
background: white;
|
| 191 |
+
border-top: 1px solid #e0e0e0;
|
| 192 |
}
|
| 193 |
|
| 194 |
+
textarea {
|
| 195 |
flex: 1;
|
| 196 |
padding: 12px;
|
| 197 |
border: 2px solid #e0e0e0;
|
| 198 |
+
border-radius: 12px;
|
| 199 |
font-family: inherit;
|
| 200 |
font-size: 14px;
|
| 201 |
resize: none;
|
| 202 |
transition: all 0.3s;
|
| 203 |
}
|
| 204 |
|
| 205 |
+
textarea:focus {
|
| 206 |
outline: none;
|
| 207 |
+
border-color: #764ba2;
|
| 208 |
+
box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
|
| 209 |
}
|
| 210 |
|
| 211 |
+
button {
|
| 212 |
+
padding: 12px 24px;
|
| 213 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 214 |
color: white;
|
| 215 |
border: none;
|
| 216 |
+
border-radius: 12px;
|
|
|
|
| 217 |
cursor: pointer;
|
| 218 |
font-weight: bold;
|
| 219 |
transition: all 0.3s;
|
| 220 |
+
display: flex;
|
| 221 |
+
align-items: center;
|
| 222 |
+
gap: 8px;
|
| 223 |
}
|
| 224 |
|
| 225 |
+
button:hover {
|
|
|
|
| 226 |
transform: translateY(-2px);
|
| 227 |
+
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 228 |
}
|
| 229 |
|
| 230 |
+
.status-bar {
|
| 231 |
padding: 10px 20px;
|
| 232 |
+
background: #f8f9fa;
|
| 233 |
+
font-size: 0.85em;
|
| 234 |
color: #6c757d;
|
| 235 |
+
text-align: center;
|
| 236 |
border-top: 1px solid #e0e0e0;
|
| 237 |
}
|
| 238 |
|
| 239 |
+
.loading {
|
| 240 |
+
display: inline-block;
|
| 241 |
+
width: 20px;
|
| 242 |
+
height: 20px;
|
| 243 |
+
border: 3px solid #f3f3f3;
|
| 244 |
+
border-top: 3px solid #764ba2;
|
| 245 |
+
border-radius: 50%;
|
| 246 |
+
animation: spin 1s linear infinite;
|
| 247 |
+
}
|
| 248 |
+
|
| 249 |
+
@keyframes spin {
|
| 250 |
+
0% { transform: rotate(0deg); }
|
| 251 |
+
100% { transform: rotate(360deg); }
|
| 252 |
+
}
|
| 253 |
+
|
| 254 |
/* شريط التمرير */
|
| 255 |
.chat-messages::-webkit-scrollbar {
|
| 256 |
width: 8px;
|
|
|
|
| 265 |
border-radius: 4px;
|
| 266 |
}
|
| 267 |
|
| 268 |
+
@media (max-width: 600px) {
|
| 269 |
+
.content {
|
| 270 |
+
max-width: 85%;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 271 |
}
|
| 272 |
|
| 273 |
+
.mode-btn small {
|
| 274 |
+
display: none;
|
| 275 |
}
|
| 276 |
}
|