Spaces:
Running
Running
Update static/style.css
Browse files- static/style.css +795 -1229
static/style.css
CHANGED
|
@@ -1,1374 +1,940 @@
|
|
| 1 |
-
/* =============================================
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
|
|
|
| 5 |
|
| 6 |
-
/* ----
|
| 7 |
:root {
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
/* Transitions */
|
| 71 |
-
--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
| 72 |
-
--transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
|
| 73 |
-
--transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
|
| 74 |
-
|
| 75 |
-
/* Typography */
|
| 76 |
-
--font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
| 77 |
-
--font-mono: 'SF Mono', 'Fira Code', monospace;
|
| 78 |
-
|
| 79 |
-
/* Spacing */
|
| 80 |
-
--space-1: 0.25rem;
|
| 81 |
-
--space-2: 0.5rem;
|
| 82 |
-
--space-3: 0.75rem;
|
| 83 |
-
--space-4: 1rem;
|
| 84 |
-
--space-5: 1.25rem;
|
| 85 |
-
--space-6: 1.5rem;
|
| 86 |
-
--space-8: 2rem;
|
| 87 |
-
--space-10: 2.5rem;
|
| 88 |
-
--space-12: 3rem;
|
| 89 |
-
|
| 90 |
-
/* Layout */
|
| 91 |
-
--header-height: 64px;
|
| 92 |
-
}
|
| 93 |
-
|
| 94 |
-
/* ---------- Dark Theme ---------- */
|
| 95 |
[data-theme="dark"] {
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
|
| 111 |
-
|
| 112 |
-
|
| 113 |
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
--header-text: var(--text);
|
| 122 |
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
}
|
| 134 |
|
| 135 |
-
/* ----
|
| 136 |
-
|
| 137 |
-
/* Handled via JS inline style setting */
|
| 138 |
-
}
|
| 139 |
-
|
| 140 |
-
/* ---------- Global Reset ---------- */
|
| 141 |
-
*, *::before, *::after {
|
| 142 |
-
margin: 0;
|
| 143 |
-
padding: 0;
|
| 144 |
-
box-sizing: border-box;
|
| 145 |
-
}
|
| 146 |
|
| 147 |
html {
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
text-rendering: optimizeLegibility;
|
| 153 |
}
|
| 154 |
|
| 155 |
body {
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
}
|
| 166 |
-
|
| 167 |
-
/* ----
|
| 168 |
-
::-webkit-scrollbar {
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
}
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
}
|
| 175 |
-
:
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
}
|
| 179 |
-
::-webkit-scrollbar-thumb:hover {
|
| 180 |
-
background: var(--text-tertiary);
|
| 181 |
-
}
|
| 182 |
|
| 183 |
-
/* ---------- Typography ---------- */
|
| 184 |
-
h1, h2, h3, h4, h5, h6 {
|
| 185 |
-
font-weight: 600;
|
| 186 |
-
line-height: 1.3;
|
| 187 |
-
color: var(--text);
|
| 188 |
-
}
|
| 189 |
-
p {
|
| 190 |
-
color: var(--text-secondary);
|
| 191 |
-
}
|
| 192 |
-
a {
|
| 193 |
-
color: var(--primary);
|
| 194 |
-
text-decoration: none;
|
| 195 |
-
}
|
| 196 |
-
a:hover {
|
| 197 |
-
text-decoration: underline;
|
| 198 |
-
}
|
| 199 |
-
small {
|
| 200 |
-
font-size: 0.8125rem;
|
| 201 |
-
color: var(--text-tertiary);
|
| 202 |
-
}
|
| 203 |
.text-secondary { color: var(--text-secondary); }
|
| 204 |
-
.text-success
|
| 205 |
-
.text-error
|
| 206 |
-
.text-warning
|
| 207 |
-
.text-primary
|
| 208 |
-
|
| 209 |
-
/* ----
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 210 |
.btn {
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
}
|
| 229 |
-
.btn:disabled {
|
| 230 |
-
opacity: 0.6;
|
| 231 |
-
cursor: not-allowed;
|
| 232 |
-
pointer-events: none;
|
| 233 |
-
}
|
| 234 |
-
.btn:active {
|
| 235 |
-
transform: scale(0.98);
|
| 236 |
-
}
|
| 237 |
|
| 238 |
.btn-primary {
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
}
|
| 244 |
.btn-primary:hover:not(:disabled) {
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
}
|
| 250 |
|
| 251 |
.btn-secondary {
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
|
|
|
| 255 |
}
|
| 256 |
.btn-secondary:hover:not(:disabled) {
|
| 257 |
-
|
| 258 |
-
|
| 259 |
}
|
| 260 |
|
| 261 |
.btn-ghost {
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
}
|
| 266 |
.btn-ghost:hover:not(:disabled) {
|
| 267 |
-
|
| 268 |
-
|
| 269 |
}
|
| 270 |
|
| 271 |
-
.btn-sm {
|
| 272 |
-
|
| 273 |
-
font-size: 0.8125rem;
|
| 274 |
-
border-radius: var(--radius-sm);
|
| 275 |
-
}
|
| 276 |
-
.btn-block { width: 100%; justify-content: center; }
|
| 277 |
|
| 278 |
.btn-send {
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
|
|
|
| 287 |
}
|
| 288 |
.btn-send:hover:not(:disabled) {
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
}
|
| 293 |
.btn-send:disabled {
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
}
|
| 299 |
|
| 300 |
-
/* Icon Button */
|
| 301 |
.btn-icon {
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
}
|
| 320 |
-
|
| 321 |
-
background: var(--border);
|
| 322 |
-
transform: scale(0.95);
|
| 323 |
-
}
|
| 324 |
-
.btn-icon-sm {
|
| 325 |
-
width: 32px;
|
| 326 |
-
height: 32px;
|
| 327 |
-
font-size: 0.875rem;
|
| 328 |
-
}
|
| 329 |
-
|
| 330 |
-
/* Badge */
|
| 331 |
.badge {
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
| 349 |
-
/* ---------- Forms ---------- */
|
| 350 |
-
.form-group {
|
| 351 |
-
margin-bottom: var(--space-4);
|
| 352 |
-
}
|
| 353 |
.form-group label {
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
}
|
| 360 |
-
.form-group label i {
|
| 361 |
-
|
| 362 |
-
color: var(--text-secondary);
|
| 363 |
-
}
|
| 364 |
-
|
| 365 |
-
.input-wrapper {
|
| 366 |
-
position: relative;
|
| 367 |
-
display: flex;
|
| 368 |
-
align-items: center;
|
| 369 |
-
}
|
| 370 |
-
|
| 371 |
.form-input {
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
|
| 383 |
}
|
| 384 |
.form-input:focus {
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
.form-input:disabled {
|
| 389 |
-
opacity: 0.7;
|
| 390 |
-
cursor: not-allowed;
|
| 391 |
-
}
|
| 392 |
-
.form-input::placeholder {
|
| 393 |
-
color: var(--input-placeholder);
|
| 394 |
}
|
|
|
|
|
|
|
| 395 |
|
| 396 |
.input-toggle {
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
|
| 403 |
-
|
| 404 |
-
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
-
}
|
| 411 |
-
.
|
| 412 |
-
|
| 413 |
-
|
| 414 |
-
}
|
| 415 |
-
|
| 416 |
-
.
|
| 417 |
-
|
| 418 |
-
|
| 419 |
-
|
| 420 |
-
|
| 421 |
-
}
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
font-size: 0.75rem;
|
| 425 |
-
color: var(--text-tertiary);
|
| 426 |
-
}
|
| 427 |
-
|
| 428 |
-
/* Password Strength */
|
| 429 |
-
.password-strength {
|
| 430 |
-
margin-top: var(--space-2);
|
| 431 |
-
margin-bottom: var(--space-4);
|
| 432 |
-
display: flex;
|
| 433 |
-
align-items: center;
|
| 434 |
-
gap: var(--space-2);
|
| 435 |
-
}
|
| 436 |
-
.strength-bar {
|
| 437 |
-
flex: 1;
|
| 438 |
-
height: 4px;
|
| 439 |
-
background: var(--bg-tertiary);
|
| 440 |
-
border-radius: var(--radius-full);
|
| 441 |
-
overflow: hidden;
|
| 442 |
-
}
|
| 443 |
-
.strength-fill {
|
| 444 |
-
height: 100%;
|
| 445 |
-
width: 0;
|
| 446 |
-
background: var(--error);
|
| 447 |
-
border-radius: var(--radius-full);
|
| 448 |
-
transition: all var(--transition);
|
| 449 |
-
}
|
| 450 |
-
.strength-fill.weak { background: var(--error); width: 25%; }
|
| 451 |
-
.strength-fill.fair { background: var(--warning); width: 50%; }
|
| 452 |
-
.strength-fill.good { background: #3B82F6; width: 75%; }
|
| 453 |
-
.strength-fill.strong { background: var(--success); width: 100%; }
|
| 454 |
-
.strength-text {
|
| 455 |
-
font-size: 0.75rem;
|
| 456 |
-
font-weight: 500;
|
| 457 |
-
min-width: 50px;
|
| 458 |
-
}
|
| 459 |
-
|
| 460 |
-
/* ---------- Alerts ---------- */
|
| 461 |
.alert {
|
| 462 |
-
|
| 463 |
-
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
|
| 467 |
-
|
| 468 |
-
|
| 469 |
-
|
| 470 |
-
}
|
| 471 |
-
.alert:
|
| 472 |
-
|
| 473 |
-
|
| 474 |
-
|
| 475 |
-
font-size: 1.125rem;
|
| 476 |
-
}
|
| 477 |
-
.alert-error {
|
| 478 |
-
background: #FEF2F2;
|
| 479 |
-
color: var(--error);
|
| 480 |
-
border: 1px solid #FCA5A5;
|
| 481 |
-
}
|
| 482 |
-
|
| 483 |
-
/* ---------- Spinner ---------- */
|
| 484 |
.spinner {
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
|
| 490 |
-
animation: spin 0.8s linear infinite;
|
| 491 |
}
|
| 492 |
-
.spinner-sm { width:
|
| 493 |
-
@keyframes spin { to { transform:
|
| 494 |
|
| 495 |
-
/* =======
|
| 496 |
#auth-screen {
|
| 497 |
-
|
| 498 |
-
|
| 499 |
-
|
| 500 |
-
|
| 501 |
-
|
| 502 |
-
|
| 503 |
-
}
|
| 504 |
-
.auth-bg {
|
| 505 |
-
position: absolute;
|
| 506 |
-
top: 0; left: 0; width: 100%; height: 100%;
|
| 507 |
-
pointer-events: none; z-index: 0;
|
| 508 |
-
}
|
| 509 |
.auth-bg-circle {
|
| 510 |
-
|
| 511 |
-
|
| 512 |
-
|
| 513 |
-
opacity: 0.4;
|
| 514 |
-
filter: blur(60px);
|
| 515 |
}
|
| 516 |
-
.auth-bg-circle-1 { width:
|
| 517 |
-
.auth-bg-circle-2 { width:
|
| 518 |
-
.auth-bg-circle-3 { width:
|
| 519 |
|
| 520 |
.auth-container {
|
| 521 |
-
|
| 522 |
-
|
| 523 |
-
|
| 524 |
-
|
| 525 |
-
|
| 526 |
-
|
| 527 |
-
|
| 528 |
-
|
| 529 |
-
|
| 530 |
-
|
| 531 |
-
|
| 532 |
-
margin-bottom: var(--space-8);
|
| 533 |
-
}
|
| 534 |
.auth-logo {
|
| 535 |
-
|
| 536 |
-
|
| 537 |
-
|
| 538 |
-
|
| 539 |
-
|
| 540 |
-
|
| 541 |
-
|
| 542 |
-
|
| 543 |
-
|
| 544 |
-
|
| 545 |
-
|
| 546 |
-
}
|
| 547 |
-
.auth-title {
|
| 548 |
-
font-size: 1.75rem;
|
| 549 |
-
font-weight: 700;
|
| 550 |
-
margin-bottom: var(--space-1);
|
| 551 |
-
color: var(--text);
|
| 552 |
-
}
|
| 553 |
-
.auth-subtitle {
|
| 554 |
-
font-size: 0.875rem;
|
| 555 |
-
color: var(--text-secondary);
|
| 556 |
-
}
|
| 557 |
.auth-tabs {
|
| 558 |
-
|
| 559 |
-
|
| 560 |
-
|
| 561 |
-
|
| 562 |
-
|
| 563 |
-
border-radius: var(--radius-md);
|
| 564 |
}
|
| 565 |
.auth-tab {
|
| 566 |
-
|
| 567 |
-
|
| 568 |
-
|
| 569 |
-
|
| 570 |
-
|
| 571 |
-
|
| 572 |
-
|
| 573 |
-
|
| 574 |
-
|
| 575 |
-
background: transparent;
|
| 576 |
-
border: none;
|
| 577 |
-
border-radius: var(--radius-sm);
|
| 578 |
-
cursor: pointer;
|
| 579 |
-
transition: all var(--transition-fast);
|
| 580 |
}
|
| 581 |
.auth-tab.active {
|
| 582 |
-
|
| 583 |
-
|
| 584 |
-
|
| 585 |
-
}
|
| 586 |
-
.auth-form {
|
| 587 |
-
display: none;
|
| 588 |
-
}
|
| 589 |
-
.auth-form.active {
|
| 590 |
-
display: block;
|
| 591 |
}
|
|
|
|
|
|
|
|
|
|
| 592 |
.auth-loading {
|
| 593 |
-
|
| 594 |
-
|
| 595 |
-
justify-content: center;
|
| 596 |
-
gap: var(--space-2);
|
| 597 |
-
margin-top: var(--space-4);
|
| 598 |
-
color: var(--text-secondary);
|
| 599 |
}
|
| 600 |
-
.auth-loading.hidden { display:
|
| 601 |
|
| 602 |
-
/* =======
|
| 603 |
.chat-header {
|
| 604 |
-
|
| 605 |
-
|
| 606 |
-
|
| 607 |
-
|
| 608 |
-
|
| 609 |
-
|
| 610 |
-
|
| 611 |
-
|
| 612 |
-
|
| 613 |
-
|
| 614 |
-
|
| 615 |
-
|
| 616 |
-
|
| 617 |
-
|
|
|
|
|
|
|
|
|
|
| 618 |
}
|
| 619 |
.header-avatar-img {
|
| 620 |
-
|
| 621 |
-
|
| 622 |
-
|
| 623 |
-
|
| 624 |
-
|
| 625 |
-
}
|
| 626 |
-
.header-
|
| 627 |
-
|
| 628 |
-
display: none;
|
| 629 |
-
}
|
| 630 |
-
.header-info {
|
| 631 |
-
display: flex;
|
| 632 |
-
flex-direction: column;
|
| 633 |
-
}
|
| 634 |
-
.header-name {
|
| 635 |
-
font-size: 1rem;
|
| 636 |
-
font-weight: 600;
|
| 637 |
-
line-height: 1.3;
|
| 638 |
-
color: var(--text);
|
| 639 |
-
}
|
| 640 |
.header-status {
|
| 641 |
-
|
| 642 |
-
|
| 643 |
-
|
| 644 |
-
align-items: center;
|
| 645 |
-
gap: var(--space-1);
|
| 646 |
-
}
|
| 647 |
-
.status-dot {
|
| 648 |
-
width: 8px;
|
| 649 |
-
height: 8px;
|
| 650 |
-
border-radius: 50%;
|
| 651 |
-
background: var(--text-tertiary);
|
| 652 |
}
|
| 653 |
-
.status-dot
|
|
|
|
| 654 |
|
| 655 |
-
/*
|
| 656 |
.connection-status {
|
| 657 |
-
|
| 658 |
-
|
| 659 |
-
|
| 660 |
-
|
| 661 |
-
|
| 662 |
-
|
| 663 |
-
|
| 664 |
-
|
| 665 |
-
|
| 666 |
-
}
|
| 667 |
-
.connection-status.
|
| 668 |
-
.connection-status.
|
| 669 |
-
|
| 670 |
-
|
| 671 |
-
/* ========== MESSAGES CONTAINER ========== */
|
| 672 |
.messages-container {
|
| 673 |
-
|
| 674 |
-
|
| 675 |
-
position: relative;
|
| 676 |
-
background: var(--bg);
|
| 677 |
}
|
| 678 |
.messages-scroll {
|
| 679 |
-
|
| 680 |
-
|
| 681 |
-
padding: var(--space-4);
|
| 682 |
-
scroll-behavior: smooth;
|
| 683 |
-
}
|
| 684 |
-
.load-more {
|
| 685 |
-
text-align: center;
|
| 686 |
-
margin-bottom: var(--space-4);
|
| 687 |
-
}
|
| 688 |
-
.load-more .btn {
|
| 689 |
-
font-size: 0.8125rem;
|
| 690 |
}
|
|
|
|
| 691 |
.messages-list {
|
| 692 |
-
|
| 693 |
-
|
| 694 |
-
gap: var(--space-2);
|
| 695 |
-
min-height: 100%;
|
| 696 |
}
|
| 697 |
.empty-state {
|
| 698 |
-
|
| 699 |
-
|
| 700 |
-
|
| 701 |
-
|
| 702 |
-
|
| 703 |
-
text-align: center;
|
| 704 |
-
color: var(--text-secondary);
|
| 705 |
-
opacity: 0.7;
|
| 706 |
-
height: 100%;
|
| 707 |
-
}
|
| 708 |
-
.empty-icon {
|
| 709 |
-
font-size: 3rem;
|
| 710 |
-
margin-bottom: var(--space-4);
|
| 711 |
-
color: var(--text-tertiary);
|
| 712 |
-
}
|
| 713 |
-
.empty-state h3 {
|
| 714 |
-
margin-bottom: var(--space-1);
|
| 715 |
-
font-size: 1.125rem;
|
| 716 |
-
color: var(--text);
|
| 717 |
-
}
|
| 718 |
-
.empty-state p {
|
| 719 |
-
color: var(--text-secondary);
|
| 720 |
}
|
|
|
|
|
|
|
|
|
|
| 721 |
|
| 722 |
.scroll-bottom-btn {
|
| 723 |
-
|
| 724 |
-
|
| 725 |
-
|
| 726 |
-
|
| 727 |
-
|
| 728 |
-
|
| 729 |
-
|
| 730 |
-
|
| 731 |
-
|
| 732 |
-
|
| 733 |
-
|
| 734 |
-
|
| 735 |
-
|
| 736 |
-
|
| 737 |
-
z-index: 5;
|
| 738 |
-
color: var(--text-secondary);
|
| 739 |
-
}
|
| 740 |
-
.scroll-bottom-btn:hover {
|
| 741 |
-
background: var(--bg-tertiary);
|
| 742 |
-
transform: scale(1.05);
|
| 743 |
-
}
|
| 744 |
-
|
| 745 |
-
/* ========== MESSAGE BUBBLES ========== */
|
| 746 |
.message-wrapper {
|
| 747 |
-
|
| 748 |
-
|
| 749 |
-
animation: messageSlide 0.3s ease;
|
| 750 |
-
}
|
| 751 |
-
.message-wrapper.self { align-items: flex-end; }
|
| 752 |
-
.message-wrapper.other { align-items: flex-start; }
|
| 753 |
-
.message-sender {
|
| 754 |
-
font-size: 0.75rem;
|
| 755 |
-
font-weight: 500;
|
| 756 |
-
margin-bottom: var(--space-1);
|
| 757 |
-
color: var(--primary);
|
| 758 |
-
padding: 0 var(--space-3);
|
| 759 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 760 |
.message-bubble {
|
| 761 |
-
|
| 762 |
-
|
| 763 |
-
|
| 764 |
-
|
| 765 |
-
|
| 766 |
-
|
| 767 |
-
|
| 768 |
-
|
| 769 |
-
|
| 770 |
-
|
| 771 |
-
|
| 772 |
-
|
| 773 |
-
|
| 774 |
-
|
| 775 |
-
|
| 776 |
-
background: var(--bubble-other);
|
| 777 |
-
color: var(--bubble-other-text);
|
| 778 |
-
border-bottom-left-radius: var(--radius-sm);
|
| 779 |
}
|
| 780 |
.message-bubble.deleted {
|
| 781 |
-
|
| 782 |
-
|
| 783 |
-
|
| 784 |
-
|
| 785 |
-
.message-text {
|
| 786 |
-
font-size: 0.9375rem;
|
| 787 |
}
|
|
|
|
|
|
|
| 788 |
.message-meta {
|
| 789 |
-
|
| 790 |
-
|
| 791 |
-
|
| 792 |
-
|
| 793 |
-
|
| 794 |
-
|
| 795 |
-
|
| 796 |
-
.message-other .message-meta { color:
|
| 797 |
-
.message-
|
| 798 |
-
|
| 799 |
-
.message-status
|
| 800 |
-
.message-status.read { color:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 801 |
.message-actions {
|
| 802 |
-
|
| 803 |
-
|
| 804 |
-
|
| 805 |
-
|
| 806 |
-
transition: opacity var(--transition-fast);
|
| 807 |
}
|
| 808 |
-
.message-wrapper:hover .message-actions { opacity:
|
| 809 |
.message-actions button {
|
| 810 |
-
|
| 811 |
-
|
| 812 |
-
|
| 813 |
-
|
| 814 |
-
|
| 815 |
-
|
| 816 |
-
|
| 817 |
-
|
| 818 |
-
|
| 819 |
-
|
| 820 |
-
align-items: center;
|
| 821 |
-
justify-content: center;
|
| 822 |
-
}
|
| 823 |
-
.message-other .message-actions button { color: var(--text-secondary); }
|
| 824 |
-
.message-other .message-actions button:hover { background: var(--bg-tertiary); color: var(--text); }
|
| 825 |
-
.message-self .message-actions button:hover { background: rgba(255,255,255,0.2); }
|
| 826 |
-
|
| 827 |
-
/* Reply Indicator */
|
| 828 |
-
.reply-indicator {
|
| 829 |
-
display: flex;
|
| 830 |
-
align-items: center;
|
| 831 |
-
gap: var(--space-2);
|
| 832 |
-
padding: var(--space-1) var(--space-2);
|
| 833 |
-
margin-bottom: var(--space-2);
|
| 834 |
-
font-size: 0.75rem;
|
| 835 |
-
background: rgba(0,0,0,0.05);
|
| 836 |
-
border-radius: var(--radius-sm);
|
| 837 |
-
border-left: 3px solid var(--primary);
|
| 838 |
-
color: var(--text-secondary);
|
| 839 |
}
|
| 840 |
-
|
| 841 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 842 |
}
|
|
|
|
|
|
|
| 843 |
|
| 844 |
/* Attachments */
|
| 845 |
-
.attachment { margin-top:
|
| 846 |
-
.attachment img {
|
| 847 |
-
|
| 848 |
-
|
| 849 |
-
object-fit: cover;
|
| 850 |
-
border-radius: var(--radius-md);
|
| 851 |
-
cursor: pointer;
|
| 852 |
-
display: block;
|
| 853 |
-
}
|
| 854 |
-
.attachment video {
|
| 855 |
-
max-width: 100%;
|
| 856 |
-
max-height: 300px;
|
| 857 |
-
border-radius: var(--radius-md);
|
| 858 |
-
}
|
| 859 |
-
.attachment audio { width: 100%; }
|
| 860 |
.attachment-file {
|
| 861 |
-
|
| 862 |
-
|
| 863 |
-
|
| 864 |
-
|
| 865 |
-
|
| 866 |
-
|
| 867 |
-
|
| 868 |
-
|
| 869 |
-
|
| 870 |
-
}
|
| 871 |
-
.attachment-file
|
| 872 |
-
.
|
| 873 |
-
.file-
|
| 874 |
-
.file-
|
| 875 |
-
|
| 876 |
-
|
| 877 |
-
white-space: nowrap;
|
| 878 |
-
overflow: hidden;
|
| 879 |
-
text-overflow: ellipsis;
|
| 880 |
-
}
|
| 881 |
-
.file-size { font-size: 0.75rem; color: var(--text-tertiary); }
|
| 882 |
-
.edited-label { font-size: 0.6875rem; font-style: italic; opacity: 0.7; }
|
| 883 |
-
|
| 884 |
-
@keyframes messageSlide {
|
| 885 |
-
from { opacity: 0; transform: translateY(10px); }
|
| 886 |
-
to { opacity: 1; transform: translateY(0); }
|
| 887 |
-
}
|
| 888 |
-
|
| 889 |
-
/* ========== TYPING INDICATOR ========== */
|
| 890 |
.typing-indicator {
|
| 891 |
-
|
| 892 |
-
|
| 893 |
-
|
| 894 |
-
|
| 895 |
-
|
| 896 |
-
|
| 897 |
-
|
| 898 |
-
|
| 899 |
-
|
| 900 |
-
}
|
| 901 |
-
.typing-dots { display: flex; gap: 3px; }
|
| 902 |
.typing-dot {
|
| 903 |
-
|
| 904 |
-
|
| 905 |
-
|
| 906 |
-
|
| 907 |
-
|
| 908 |
-
}
|
| 909 |
-
.typing-dot:nth-child(
|
| 910 |
-
|
| 911 |
-
|
| 912 |
-
|
| 913 |
-
|
| 914 |
-
|
| 915 |
-
.reply-preview {
|
| 916 |
-
flex-shrink: 0;
|
| 917 |
-
border-top: 1px solid var(--border-light);
|
| 918 |
-
}
|
| 919 |
.reply-bar {
|
| 920 |
-
|
| 921 |
-
|
| 922 |
-
|
| 923 |
-
|
| 924 |
-
|
| 925 |
-
|
| 926 |
-
}
|
| 927 |
-
.reply-
|
| 928 |
-
.reply-
|
| 929 |
-
|
| 930 |
-
|
| 931 |
-
font-size: 0.8125rem;
|
| 932 |
-
color: var(--text-secondary);
|
| 933 |
-
display: block;
|
| 934 |
-
overflow: hidden;
|
| 935 |
-
text-overflow: ellipsis;
|
| 936 |
-
white-space: nowrap;
|
| 937 |
-
}
|
| 938 |
-
|
| 939 |
-
/* ========== COMPOSE AREA ========== */
|
| 940 |
.compose-area {
|
| 941 |
-
|
| 942 |
-
|
| 943 |
-
|
| 944 |
-
}
|
| 945 |
-
.
|
| 946 |
-
|
| 947 |
-
|
| 948 |
-
|
| 949 |
-
|
| 950 |
-
|
| 951 |
-
|
| 952 |
-
|
| 953 |
-
|
| 954 |
-
|
| 955 |
-
|
| 956 |
-
}
|
| 957 |
-
.input-area { flex: 1; }
|
| 958 |
.message-input {
|
| 959 |
-
|
| 960 |
-
|
| 961 |
-
|
| 962 |
-
|
| 963 |
-
|
| 964 |
-
|
| 965 |
-
|
| 966 |
-
|
| 967 |
-
|
| 968 |
-
|
| 969 |
-
|
| 970 |
-
|
| 971 |
-
line-height: 1.5;
|
| 972 |
-
transition: all var(--transition-fast);
|
| 973 |
-
overflow-y: auto;
|
| 974 |
}
|
| 975 |
.message-input:focus {
|
| 976 |
-
|
| 977 |
-
|
| 978 |
-
|
| 979 |
-
.message-input::placeholder { color: var(--input-placeholder); }
|
| 980 |
-
|
| 981 |
-
.upload-preview {
|
| 982 |
-
display: flex;
|
| 983 |
-
align-items: center;
|
| 984 |
-
justify-content: space-between;
|
| 985 |
-
padding: var(--space-2) var(--space-4);
|
| 986 |
-
background: var(--bg-secondary);
|
| 987 |
-
border-bottom: 1px solid var(--border-light);
|
| 988 |
-
color: var(--text);
|
| 989 |
-
}
|
| 990 |
-
.upload-info {
|
| 991 |
-
display: flex;
|
| 992 |
-
align-items: center;
|
| 993 |
-
gap: var(--space-2);
|
| 994 |
-
font-size: 0.8125rem;
|
| 995 |
}
|
|
|
|
| 996 |
.upload-progress {
|
| 997 |
-
|
| 998 |
-
|
| 999 |
-
|
| 1000 |
-
|
| 1001 |
-
|
| 1002 |
-
|
| 1003 |
-
}
|
| 1004 |
-
.progress-
|
| 1005 |
-
|
| 1006 |
-
|
| 1007 |
-
|
| 1008 |
-
border-radius: var(--radius-full);
|
| 1009 |
-
overflow: hidden;
|
| 1010 |
-
}
|
| 1011 |
-
.progress-fill {
|
| 1012 |
-
height: 100%;
|
| 1013 |
-
background: var(--primary);
|
| 1014 |
-
border-radius: var(--radius-full);
|
| 1015 |
-
transition: width var(--transition);
|
| 1016 |
-
}
|
| 1017 |
-
.progress-text {
|
| 1018 |
-
font-size: 0.75rem;
|
| 1019 |
-
font-weight: 500;
|
| 1020 |
-
color: var(--text-secondary);
|
| 1021 |
-
min-width: 36px;
|
| 1022 |
-
}
|
| 1023 |
-
|
| 1024 |
-
/* ========== MODALS ========== */
|
| 1025 |
.modal {
|
| 1026 |
-
|
| 1027 |
-
|
| 1028 |
-
|
| 1029 |
-
|
| 1030 |
-
|
| 1031 |
-
justify-content: center;
|
| 1032 |
-
padding: var(--space-4);
|
| 1033 |
-
visibility: hidden;
|
| 1034 |
-
opacity: 0;
|
| 1035 |
-
transition: all var(--transition);
|
| 1036 |
-
}
|
| 1037 |
-
.modal:not(.hidden) { visibility: visible; opacity: 1; }
|
| 1038 |
.modal-backdrop {
|
| 1039 |
-
|
| 1040 |
-
|
| 1041 |
-
|
| 1042 |
-
backdrop-filter: blur(4px);
|
| 1043 |
}
|
| 1044 |
.modal-container {
|
| 1045 |
-
|
| 1046 |
-
|
| 1047 |
-
|
| 1048 |
-
|
| 1049 |
-
|
| 1050 |
-
|
| 1051 |
-
|
| 1052 |
-
|
| 1053 |
-
|
| 1054 |
-
|
| 1055 |
-
|
| 1056 |
-
}
|
| 1057 |
-
.modal-sm { max-width: 400px; }
|
| 1058 |
.modal-header {
|
| 1059 |
-
|
| 1060 |
-
|
| 1061 |
-
|
| 1062 |
-
|
| 1063 |
-
|
| 1064 |
-
}
|
| 1065 |
-
.modal-header h2 {
|
| 1066 |
-
|
| 1067 |
-
font-weight: 600;
|
| 1068 |
-
color: var(--text);
|
| 1069 |
-
}
|
| 1070 |
-
.modal-header h2 i { margin-right: var(--space-2); color: var(--primary); }
|
| 1071 |
-
.modal-body {
|
| 1072 |
-
padding: var(--space-6);
|
| 1073 |
-
overflow-y: auto;
|
| 1074 |
-
flex: 1;
|
| 1075 |
-
}
|
| 1076 |
.modal-footer {
|
| 1077 |
-
|
| 1078 |
-
|
| 1079 |
-
|
| 1080 |
-
|
| 1081 |
-
gap: var(--space-2);
|
| 1082 |
-
background: var(--bg-secondary);
|
| 1083 |
}
|
| 1084 |
|
| 1085 |
-
/* Settings
|
| 1086 |
-
.settings-section {
|
| 1087 |
-
|
| 1088 |
-
}
|
| 1089 |
-
.settings-section:last-child { margin-bottom: 0; }
|
| 1090 |
.settings-section h3 {
|
| 1091 |
-
|
| 1092 |
-
|
| 1093 |
-
|
| 1094 |
-
|
| 1095 |
-
|
| 1096 |
-
|
| 1097 |
-
|
| 1098 |
-
border-bottom: 1px solid var(--border-light);
|
| 1099 |
-
}
|
| 1100 |
-
.settings-row { margin-bottom: var(--space-4); }
|
| 1101 |
.avatar-section {
|
| 1102 |
-
|
| 1103 |
-
|
| 1104 |
-
gap: var(--space-4);
|
| 1105 |
-
margin-bottom: var(--space-4);
|
| 1106 |
}
|
| 1107 |
.settings-avatar {
|
| 1108 |
-
|
| 1109 |
-
|
| 1110 |
-
|
| 1111 |
-
|
| 1112 |
-
|
| 1113 |
-
|
| 1114 |
-
justify-content: center;
|
| 1115 |
-
font-size: 2rem;
|
| 1116 |
-
color: var(--text-secondary);
|
| 1117 |
-
overflow: hidden;
|
| 1118 |
}
|
| 1119 |
.settings-avatar-img {
|
| 1120 |
-
|
| 1121 |
-
|
| 1122 |
-
|
| 1123 |
-
object-fit: cover;
|
| 1124 |
-
}
|
| 1125 |
-
.theme-selector {
|
| 1126 |
-
display: grid;
|
| 1127 |
-
grid-template-columns: repeat(3, 1fr);
|
| 1128 |
-
gap: var(--space-3);
|
| 1129 |
-
margin-top: var(--space-2);
|
| 1130 |
}
|
|
|
|
|
|
|
|
|
|
| 1131 |
.theme-option {
|
| 1132 |
-
|
| 1133 |
-
|
| 1134 |
-
|
| 1135 |
-
|
| 1136 |
-
|
| 1137 |
-
|
| 1138 |
-
|
| 1139 |
-
|
| 1140 |
-
|
| 1141 |
-
|
| 1142 |
-
|
| 1143 |
-
font-weight: 500;
|
| 1144 |
-
text-align: center;
|
| 1145 |
-
color: var(--text);
|
| 1146 |
-
}
|
| 1147 |
-
.theme-option.active {
|
| 1148 |
-
border-color: var(--primary);
|
| 1149 |
-
background: var(--primary-light);
|
| 1150 |
-
}
|
| 1151 |
.theme-preview {
|
| 1152 |
-
|
| 1153 |
-
|
| 1154 |
-
|
| 1155 |
-
|
| 1156 |
-
|
| 1157 |
-
}
|
| 1158 |
-
.theme-preview-
|
| 1159 |
-
.theme-preview-
|
| 1160 |
-
.theme-preview-message {
|
| 1161 |
-
|
| 1162 |
-
|
| 1163 |
-
.theme-preview-light { background:
|
| 1164 |
-
.theme-preview-
|
| 1165 |
-
.theme-preview-light .theme-preview-
|
| 1166 |
-
.theme-preview-
|
| 1167 |
-
|
| 1168 |
-
.theme-preview-dark
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1169 |
|
| 1170 |
.custom-theme-section {
|
| 1171 |
-
|
| 1172 |
-
|
| 1173 |
-
|
| 1174 |
-
|
| 1175 |
-
border: 1px solid var(--border);
|
| 1176 |
-
}
|
| 1177 |
-
.color-picker-row {
|
| 1178 |
-
display: grid;
|
| 1179 |
-
grid-template-columns: repeat(3, 1fr);
|
| 1180 |
-
gap: var(--space-4);
|
| 1181 |
}
|
|
|
|
| 1182 |
.color-picker-group label {
|
| 1183 |
-
|
| 1184 |
-
|
| 1185 |
-
font-weight: 500;
|
| 1186 |
-
margin-bottom: var(--space-2);
|
| 1187 |
-
color: var(--text);
|
| 1188 |
-
}
|
| 1189 |
-
.color-input-wrapper {
|
| 1190 |
-
display: flex;
|
| 1191 |
-
align-items: center;
|
| 1192 |
-
gap: var(--space-2);
|
| 1193 |
}
|
|
|
|
| 1194 |
.color-input-wrapper input[type="color"] {
|
| 1195 |
-
|
| 1196 |
-
|
| 1197 |
-
|
| 1198 |
-
border-radius: var(--radius-sm);
|
| 1199 |
-
padding: 2px;
|
| 1200 |
-
cursor: pointer;
|
| 1201 |
-
background: none;
|
| 1202 |
-
}
|
| 1203 |
-
.color-hex {
|
| 1204 |
-
font-size: 0.75rem;
|
| 1205 |
-
font-family: var(--font-mono);
|
| 1206 |
-
color: var(--text-secondary);
|
| 1207 |
-
}
|
| 1208 |
-
.about-info {
|
| 1209 |
-
display: flex;
|
| 1210 |
-
flex-direction: column;
|
| 1211 |
-
gap: var(--space-3);
|
| 1212 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1213 |
.about-row {
|
| 1214 |
-
|
| 1215 |
-
|
| 1216 |
-
|
| 1217 |
-
|
| 1218 |
-
|
| 1219 |
-
|
| 1220 |
-
|
| 1221 |
-
|
| 1222 |
-
.
|
| 1223 |
-
|
| 1224 |
-
|
| 1225 |
-
.
|
| 1226 |
-
|
| 1227 |
-
|
| 1228 |
-
}
|
| 1229 |
-
.
|
| 1230 |
-
|
| 1231 |
-
|
| 1232 |
-
|
| 1233 |
-
gap: var(--space-2);
|
| 1234 |
-
padding: var(--space-8);
|
| 1235 |
-
color: var(--text-secondary);
|
| 1236 |
-
}
|
| 1237 |
-
.user-item {
|
| 1238 |
-
display: flex;
|
| 1239 |
-
align-items: center;
|
| 1240 |
-
gap: var(--space-3);
|
| 1241 |
-
padding: var(--space-2) var(--space-4);
|
| 1242 |
-
transition: background var(--transition-fast);
|
| 1243 |
-
color: var(--text);
|
| 1244 |
-
}
|
| 1245 |
-
.user-item:hover { background: var(--bg-secondary); }
|
| 1246 |
-
.user-avatar {
|
| 1247 |
-
width: 40px;
|
| 1248 |
-
height: 40px;
|
| 1249 |
-
border-radius: var(--radius-full);
|
| 1250 |
-
background: var(--bg-tertiary);
|
| 1251 |
-
display: flex;
|
| 1252 |
-
align-items: center;
|
| 1253 |
-
justify-content: center;
|
| 1254 |
-
color: var(--text-secondary);
|
| 1255 |
-
font-size: 1rem;
|
| 1256 |
-
overflow: hidden;
|
| 1257 |
-
}
|
| 1258 |
-
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
|
| 1259 |
-
.user-info { flex: 1; }
|
| 1260 |
-
.user-name { font-weight: 500; font-size: 0.875rem; }
|
| 1261 |
-
.user-status-text { font-size: 0.75rem; color: var(--text-secondary); }
|
| 1262 |
-
|
| 1263 |
-
/* Emoji Picker */
|
| 1264 |
.emoji-picker {
|
| 1265 |
-
|
| 1266 |
-
|
| 1267 |
-
|
| 1268 |
-
|
| 1269 |
-
|
| 1270 |
-
|
| 1271 |
-
|
| 1272 |
-
|
| 1273 |
-
|
| 1274 |
-
|
| 1275 |
-
|
| 1276 |
-
|
| 1277 |
-
}
|
| 1278 |
-
.emoji-header {
|
| 1279 |
-
border-bottom: 1px solid var(--border);
|
| 1280 |
-
padding: var(--space-2);
|
| 1281 |
-
}
|
| 1282 |
-
.emoji-categories { display: flex; gap: 2px; }
|
| 1283 |
.emoji-cat {
|
| 1284 |
-
|
| 1285 |
-
|
| 1286 |
-
|
| 1287 |
-
|
| 1288 |
-
|
| 1289 |
-
|
| 1290 |
-
|
| 1291 |
-
font-size: 0.875rem;
|
| 1292 |
-
transition: all var(--transition-fast);
|
| 1293 |
-
}
|
| 1294 |
-
.emoji-cat.active {
|
| 1295 |
-
background: var(--primary-light);
|
| 1296 |
-
color: var(--primary);
|
| 1297 |
-
}
|
| 1298 |
-
.emoji-cat:hover { background: var(--bg-tertiary); }
|
| 1299 |
.emoji-grid {
|
| 1300 |
-
|
| 1301 |
-
|
| 1302 |
-
|
| 1303 |
-
|
| 1304 |
-
max-height: 280px;
|
| 1305 |
-
overflow-y: auto;
|
| 1306 |
}
|
| 1307 |
.emoji-item {
|
| 1308 |
-
|
| 1309 |
-
|
| 1310 |
-
|
| 1311 |
-
|
| 1312 |
-
|
| 1313 |
-
|
| 1314 |
-
cursor: pointer;
|
| 1315 |
-
border-radius: var(--radius-sm);
|
| 1316 |
-
border: none;
|
| 1317 |
-
background: transparent;
|
| 1318 |
-
transition: background var(--transition-fast);
|
| 1319 |
-
}
|
| 1320 |
-
.emoji-item:hover { background: var(--bg-tertiary); }
|
| 1321 |
-
|
| 1322 |
-
/* Toast Notifications */
|
| 1323 |
-
.toast-container {
|
| 1324 |
-
position: fixed;
|
| 1325 |
-
top: var(--space-4);
|
| 1326 |
-
right: var(--space-4);
|
| 1327 |
-
z-index: 200;
|
| 1328 |
-
display: flex;
|
| 1329 |
-
flex-direction: column;
|
| 1330 |
-
gap: var(--space-2);
|
| 1331 |
-
max-width: 360px;
|
| 1332 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1333 |
.toast {
|
| 1334 |
-
|
| 1335 |
-
|
| 1336 |
-
|
| 1337 |
-
|
| 1338 |
-
|
| 1339 |
-
|
| 1340 |
-
|
| 1341 |
-
|
| 1342 |
-
|
| 1343 |
-
|
| 1344 |
-
|
| 1345 |
-
}
|
| 1346 |
-
.toast
|
| 1347 |
-
.toast
|
| 1348 |
-
.toast
|
| 1349 |
-
.toast
|
| 1350 |
-
|
| 1351 |
-
|
| 1352 |
-
|
| 1353 |
-
|
| 1354 |
-
|
| 1355 |
-
|
| 1356 |
-
|
| 1357 |
-
|
| 1358 |
-
|
| 1359 |
-
|
| 1360 |
-
|
| 1361 |
-
|
| 1362 |
-
|
| 1363 |
-
|
| 1364 |
-
|
| 1365 |
-
|
| 1366 |
-
|
| 1367 |
-
|
| 1368 |
-
|
| 1369 |
-
|
| 1370 |
-
}
|
| 1371 |
-
|
| 1372 |
-
@media (min-width: 1024px) {
|
| 1373 |
-
.message-bubble { max-width: 55%; }
|
| 1374 |
-
}
|
|
|
|
| 1 |
+
/* ==============================================
|
| 2 |
+
InfinityChat — Full Design System
|
| 3 |
+
All colours flow from :root variables only.
|
| 4 |
+
No hardcoded light/dark splits on elements.
|
| 5 |
+
============================================== */
|
| 6 |
|
| 7 |
+
/* ---- Light Theme (default on :root) ---- */
|
| 8 |
:root {
|
| 9 |
+
--primary: #2563EB;
|
| 10 |
+
--primary-hover: #1D4ED8;
|
| 11 |
+
--primary-light: #DBEAFE;
|
| 12 |
+
--primary-dark: #1E40AF;
|
| 13 |
+
|
| 14 |
+
--bg: #FFFFFF;
|
| 15 |
+
--bg-secondary: #F9FAFB;
|
| 16 |
+
--bg-tertiary: #F3F4F6;
|
| 17 |
+
--bg-elevated: #FFFFFF;
|
| 18 |
+
|
| 19 |
+
--text: #111827;
|
| 20 |
+
--text-secondary: #4B5563;
|
| 21 |
+
--text-tertiary: #9CA3AF;
|
| 22 |
+
--text-inverse: #FFFFFF;
|
| 23 |
+
|
| 24 |
+
--border: #E5E7EB;
|
| 25 |
+
--border-light: #F3F4F6;
|
| 26 |
+
|
| 27 |
+
--bubble-self: #2563EB;
|
| 28 |
+
--bubble-self-text: #FFFFFF;
|
| 29 |
+
--bubble-other: #F3F4F6;
|
| 30 |
+
--bubble-other-text: #111827;
|
| 31 |
+
|
| 32 |
+
--header-bg: #FFFFFF;
|
| 33 |
+
--header-border: #E5E7EB;
|
| 34 |
+
|
| 35 |
+
--input-bg: #F3F4F6;
|
| 36 |
+
--input-border: #E5E7EB;
|
| 37 |
+
--input-text: #111827;
|
| 38 |
+
--input-placeholder:#9CA3AF;
|
| 39 |
+
|
| 40 |
+
--success: #10B981;
|
| 41 |
+
--warning: #F59E0B;
|
| 42 |
+
--error: #EF4444;
|
| 43 |
+
--info: #3B82F6;
|
| 44 |
+
|
| 45 |
+
--shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
|
| 46 |
+
--shadow-sm: 0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
|
| 47 |
+
--shadow-md: 0 4px 6px -1px rgba(0,0,0,0.10), 0 2px 4px -1px rgba(0,0,0,0.06);
|
| 48 |
+
--shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.10), 0 4px 6px -2px rgba(0,0,0,0.05);
|
| 49 |
+
--shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.10), 0 10px 10px -5px rgba(0,0,0,0.04);
|
| 50 |
+
|
| 51 |
+
--radius-xs: 4px;
|
| 52 |
+
--radius-sm: 6px;
|
| 53 |
+
--radius-md: 8px;
|
| 54 |
+
--radius-lg: 12px;
|
| 55 |
+
--radius-xl: 16px;
|
| 56 |
+
--radius-2xl: 20px;
|
| 57 |
+
--radius-full: 9999px;
|
| 58 |
+
|
| 59 |
+
--transition-fast: 150ms cubic-bezier(0.4,0,0.2,1);
|
| 60 |
+
--transition: 200ms cubic-bezier(0.4,0,0.2,1);
|
| 61 |
+
--transition-slow: 300ms cubic-bezier(0.4,0,0.2,1);
|
| 62 |
+
|
| 63 |
+
--font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
| 64 |
+
--font-mono: 'SF Mono', 'Fira Code', monospace;
|
| 65 |
+
|
| 66 |
+
--header-height: 64px;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
/* ---- Dark Theme ---- */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
[data-theme="dark"] {
|
| 71 |
+
--primary: #60A5FA;
|
| 72 |
+
--primary-hover: #3B82F6;
|
| 73 |
+
--primary-light: #1E3A5F;
|
| 74 |
+
--primary-dark: #1D4ED8;
|
| 75 |
|
| 76 |
+
--bg: #0F172A;
|
| 77 |
+
--bg-secondary: #1E293B;
|
| 78 |
+
--bg-tertiary: #334155;
|
| 79 |
+
--bg-elevated: #1E293B;
|
| 80 |
|
| 81 |
+
--text: #F1F5F9;
|
| 82 |
+
--text-secondary: #94A3B8;
|
| 83 |
+
--text-tertiary: #64748B;
|
| 84 |
+
--text-inverse: #0F172A;
|
| 85 |
|
| 86 |
+
--border: #334155;
|
| 87 |
+
--border-light: #1E293B;
|
| 88 |
|
| 89 |
+
--bubble-self: #3B82F6;
|
| 90 |
+
--bubble-self-text: #FFFFFF;
|
| 91 |
+
--bubble-other: #334155;
|
| 92 |
+
--bubble-other-text: #F1F5F9;
|
| 93 |
|
| 94 |
+
--header-bg: #1E293B;
|
| 95 |
+
--header-border: #334155;
|
|
|
|
| 96 |
|
| 97 |
+
--input-bg: #334155;
|
| 98 |
+
--input-border: #475569;
|
| 99 |
+
--input-text: #F1F5F9;
|
| 100 |
+
--input-placeholder:#64748B;
|
| 101 |
|
| 102 |
+
--shadow-xs: 0 1px 2px rgba(0,0,0,0.4);
|
| 103 |
+
--shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
|
| 104 |
+
--shadow-md: 0 4px 6px rgba(0,0,0,0.5);
|
| 105 |
+
--shadow-lg: 0 10px 15px rgba(0,0,0,0.5);
|
| 106 |
+
--shadow-xl: 0 20px 25px rgba(0,0,0,0.5);
|
| 107 |
}
|
| 108 |
|
| 109 |
+
/* ---- Reset ---- */
|
| 110 |
+
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
|
| 112 |
html {
|
| 113 |
+
font-size: 16px;
|
| 114 |
+
-webkit-text-size-adjust: 100%;
|
| 115 |
+
-webkit-font-smoothing: antialiased;
|
| 116 |
+
-moz-osx-font-smoothing: grayscale;
|
|
|
|
| 117 |
}
|
| 118 |
|
| 119 |
body {
|
| 120 |
+
font-family: var(--font-family);
|
| 121 |
+
font-size: 0.9375rem;
|
| 122 |
+
line-height: 1.5;
|
| 123 |
+
color: var(--text);
|
| 124 |
+
background: var(--bg);
|
| 125 |
+
overflow: hidden;
|
| 126 |
+
height: 100vh;
|
| 127 |
+
height: 100dvh;
|
| 128 |
+
width: 100vw;
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
/* ---- Scrollbar ---- */
|
| 132 |
+
::-webkit-scrollbar { width:6px; height:6px; }
|
| 133 |
+
::-webkit-scrollbar-track { background: transparent; }
|
| 134 |
+
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-full); }
|
| 135 |
+
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }
|
| 136 |
+
|
| 137 |
+
/* ---- Typography ---- */
|
| 138 |
+
h1,h2,h3,h4,h5,h6 { font-weight:600; line-height:1.3; color: var(--text); }
|
| 139 |
+
p { color: var(--text-secondary); }
|
| 140 |
+
a { color: var(--primary); text-decoration:none; }
|
| 141 |
+
a:hover { text-decoration: underline; }
|
|
|
|
|
|
|
|
|
|
|
|
|
| 142 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
.text-secondary { color: var(--text-secondary); }
|
| 144 |
+
.text-success { color: var(--success); }
|
| 145 |
+
.text-error { color: var(--error); }
|
| 146 |
+
.text-warning { color: var(--warning); }
|
| 147 |
+
.text-primary { color: var(--primary); }
|
| 148 |
+
|
| 149 |
+
/* ---- Screens ---- */
|
| 150 |
+
.screen { display:none; width:100%; height:100vh; }
|
| 151 |
+
.screen.active { display:flex; }
|
| 152 |
+
#chat-screen { flex-direction:column; }
|
| 153 |
+
.hidden { display:none !important; }
|
| 154 |
+
|
| 155 |
+
/* ---- Buttons ---- */
|
| 156 |
.btn {
|
| 157 |
+
display: inline-flex;
|
| 158 |
+
align-items: center;
|
| 159 |
+
justify-content: center;
|
| 160 |
+
gap: 0.5rem;
|
| 161 |
+
padding: 0.625rem 1.25rem;
|
| 162 |
+
font-size: 0.875rem;
|
| 163 |
+
font-weight: 500;
|
| 164 |
+
font-family: inherit;
|
| 165 |
+
border: 1px solid transparent;
|
| 166 |
+
border-radius: var(--radius-md);
|
| 167 |
+
cursor: pointer;
|
| 168 |
+
transition: all var(--transition-fast);
|
| 169 |
+
white-space: nowrap;
|
| 170 |
+
line-height: 1.4;
|
| 171 |
+
position: relative;
|
| 172 |
+
overflow: hidden;
|
| 173 |
+
}
|
| 174 |
+
.btn:disabled { opacity:0.6; cursor:not-allowed; pointer-events:none; }
|
| 175 |
+
.btn:active:not(:disabled) { transform: scale(0.98); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
|
| 177 |
.btn-primary {
|
| 178 |
+
background: var(--primary);
|
| 179 |
+
color: var(--text-inverse);
|
| 180 |
+
border-color: var(--primary);
|
| 181 |
+
box-shadow: var(--shadow-xs);
|
| 182 |
}
|
| 183 |
.btn-primary:hover:not(:disabled) {
|
| 184 |
+
background: var(--primary-hover);
|
| 185 |
+
border-color: var(--primary-hover);
|
| 186 |
+
box-shadow: var(--shadow-sm);
|
| 187 |
+
transform: translateY(-1px);
|
| 188 |
}
|
| 189 |
|
| 190 |
.btn-secondary {
|
| 191 |
+
background: var(--bg-elevated);
|
| 192 |
+
color: var(--text);
|
| 193 |
+
border-color: var(--border);
|
| 194 |
+
box-shadow: var(--shadow-xs);
|
| 195 |
}
|
| 196 |
.btn-secondary:hover:not(:disabled) {
|
| 197 |
+
background: var(--bg-tertiary);
|
| 198 |
+
border-color: var(--text-tertiary);
|
| 199 |
}
|
| 200 |
|
| 201 |
.btn-ghost {
|
| 202 |
+
background: transparent;
|
| 203 |
+
color: var(--text-secondary);
|
| 204 |
+
border-color: transparent;
|
| 205 |
}
|
| 206 |
.btn-ghost:hover:not(:disabled) {
|
| 207 |
+
background: var(--bg-tertiary);
|
| 208 |
+
color: var(--text);
|
| 209 |
}
|
| 210 |
|
| 211 |
+
.btn-sm { padding:0.375rem 0.75rem; font-size:0.8125rem; border-radius:var(--radius-sm); }
|
| 212 |
+
.btn-block { width:100%; justify-content:center; }
|
|
|
|
|
|
|
|
|
|
|
|
|
| 213 |
|
| 214 |
.btn-send {
|
| 215 |
+
flex-shrink: 0;
|
| 216 |
+
width: 42px;
|
| 217 |
+
height: 42px;
|
| 218 |
+
padding: 0;
|
| 219 |
+
border-radius: var(--radius-full);
|
| 220 |
+
background: var(--primary);
|
| 221 |
+
color: #fff;
|
| 222 |
+
border: none;
|
| 223 |
+
box-shadow: var(--shadow-sm);
|
| 224 |
}
|
| 225 |
.btn-send:hover:not(:disabled) {
|
| 226 |
+
background: var(--primary-hover);
|
| 227 |
+
box-shadow: var(--shadow-md);
|
| 228 |
+
transform: scale(1.05);
|
| 229 |
}
|
| 230 |
.btn-send:disabled {
|
| 231 |
+
background: var(--bg-tertiary);
|
| 232 |
+
color: var(--text-tertiary);
|
| 233 |
+
box-shadow: none;
|
| 234 |
+
transform: none;
|
| 235 |
}
|
| 236 |
|
|
|
|
| 237 |
.btn-icon {
|
| 238 |
+
display: inline-flex;
|
| 239 |
+
align-items: center;
|
| 240 |
+
justify-content: center;
|
| 241 |
+
width: 40px;
|
| 242 |
+
height: 40px;
|
| 243 |
+
background: transparent;
|
| 244 |
+
border: none;
|
| 245 |
+
border-radius: var(--radius-md);
|
| 246 |
+
color: var(--text-secondary);
|
| 247 |
+
cursor: pointer;
|
| 248 |
+
transition: all var(--transition-fast);
|
| 249 |
+
font-size: 1.0625rem;
|
| 250 |
+
position: relative;
|
| 251 |
+
flex-shrink: 0;
|
| 252 |
+
}
|
| 253 |
+
.btn-icon:hover { background: var(--bg-tertiary); color: var(--text); }
|
| 254 |
+
.btn-icon:active { transform: scale(0.94); }
|
| 255 |
+
.btn-icon-sm { width:32px; height:32px; font-size:0.875rem; }
|
| 256 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 257 |
.badge {
|
| 258 |
+
position: absolute;
|
| 259 |
+
top: 2px; right: 2px;
|
| 260 |
+
min-width: 18px; height: 18px;
|
| 261 |
+
padding: 0 4px;
|
| 262 |
+
background: var(--error);
|
| 263 |
+
color: #fff;
|
| 264 |
+
font-size: 0.6875rem;
|
| 265 |
+
font-weight: 600;
|
| 266 |
+
border-radius: var(--radius-full);
|
| 267 |
+
display: flex;
|
| 268 |
+
align-items: center;
|
| 269 |
+
justify-content: center;
|
| 270 |
+
border: 2px solid var(--header-bg);
|
| 271 |
+
}
|
| 272 |
+
|
| 273 |
+
/* ---- Forms ---- */
|
| 274 |
+
.form-group { margin-bottom: 1rem; }
|
|
|
|
|
|
|
|
|
|
|
|
|
| 275 |
.form-group label {
|
| 276 |
+
display: block;
|
| 277 |
+
margin-bottom: 0.25rem;
|
| 278 |
+
font-size: 0.875rem;
|
| 279 |
+
font-weight: 500;
|
| 280 |
+
color: var(--text);
|
| 281 |
+
}
|
| 282 |
+
.form-group label i { margin-right:0.25rem; color:var(--text-secondary); }
|
| 283 |
+
.input-wrapper { position:relative; display:flex; align-items:center; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 284 |
.form-input {
|
| 285 |
+
width: 100%;
|
| 286 |
+
padding: 0.75rem 1rem;
|
| 287 |
+
font-size: 0.9375rem;
|
| 288 |
+
font-family: inherit;
|
| 289 |
+
color: var(--input-text);
|
| 290 |
+
background: var(--input-bg);
|
| 291 |
+
border: 1.5px solid var(--input-border);
|
| 292 |
+
border-radius: var(--radius-md);
|
| 293 |
+
outline: none;
|
| 294 |
+
transition: all var(--transition-fast);
|
| 295 |
+
line-height: 1.5;
|
| 296 |
}
|
| 297 |
.form-input:focus {
|
| 298 |
+
border-color: var(--primary);
|
| 299 |
+
box-shadow: 0 0 0 3px var(--primary-light);
|
| 300 |
+
background: var(--bg-elevated);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 301 |
}
|
| 302 |
+
.form-input:disabled { opacity:0.6; cursor:not-allowed; }
|
| 303 |
+
.form-input::placeholder { color: var(--input-placeholder); }
|
| 304 |
|
| 305 |
.input-toggle {
|
| 306 |
+
position: absolute;
|
| 307 |
+
right: 0.5rem;
|
| 308 |
+
width: 32px; height: 32px;
|
| 309 |
+
background: transparent;
|
| 310 |
+
border: none;
|
| 311 |
+
color: var(--text-tertiary);
|
| 312 |
+
cursor: pointer;
|
| 313 |
+
font-size: 0.875rem;
|
| 314 |
+
border-radius: var(--radius-sm);
|
| 315 |
+
display: flex; align-items: center; justify-content: center;
|
| 316 |
+
}
|
| 317 |
+
.input-toggle:hover { color: var(--text); background: var(--bg-tertiary); }
|
| 318 |
+
|
| 319 |
+
.form-hint { display:block; margin-top:0.25rem; font-size:0.75rem; color:var(--text-tertiary); }
|
| 320 |
+
.label-hint { font-weight:400; font-size:0.75rem; color:var(--text-tertiary); }
|
| 321 |
+
|
| 322 |
+
/* Password strength */
|
| 323 |
+
.password-strength { display:flex; align-items:center; gap:0.5rem; margin-bottom:1rem; }
|
| 324 |
+
.strength-bar { flex:1; height:4px; background:var(--bg-tertiary); border-radius:var(--radius-full); overflow:hidden; }
|
| 325 |
+
.strength-fill { height:100%; width:0; border-radius:var(--radius-full); transition:all var(--transition); }
|
| 326 |
+
.strength-fill.weak { background:var(--error); width:25%; }
|
| 327 |
+
.strength-fill.fair { background:var(--warning); width:50%; }
|
| 328 |
+
.strength-fill.good { background:var(--info); width:75%; }
|
| 329 |
+
.strength-fill.strong { background:var(--success); width:100%; }
|
| 330 |
+
.strength-text { font-size:0.75rem; font-weight:500; color:var(--text-secondary); min-width:50px; }
|
| 331 |
+
|
| 332 |
+
/* Alert */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 333 |
.alert {
|
| 334 |
+
display: none;
|
| 335 |
+
align-items: center;
|
| 336 |
+
gap: 0.5rem;
|
| 337 |
+
padding: 0.75rem 1rem;
|
| 338 |
+
border-radius: var(--radius-md);
|
| 339 |
+
font-size: 0.875rem;
|
| 340 |
+
margin-top: 1rem;
|
| 341 |
+
}
|
| 342 |
+
.alert.visible { display:flex; }
|
| 343 |
+
.alert-error { background:#FEF2F2; color:#B91C1C; border:1px solid #FECACA; }
|
| 344 |
+
[data-theme="dark"] .alert-error { background:#2D1515; color:#FCA5A5; border-color:#7F1D1D; }
|
| 345 |
+
|
| 346 |
+
/* Spinner */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 347 |
.spinner {
|
| 348 |
+
width:24px; height:24px;
|
| 349 |
+
border:3px solid var(--border);
|
| 350 |
+
border-top-color: var(--primary);
|
| 351 |
+
border-radius:50%;
|
| 352 |
+
animation:spin 0.8s linear infinite;
|
|
|
|
| 353 |
}
|
| 354 |
+
.spinner-sm { width:16px; height:16px; border-width:2px; }
|
| 355 |
+
@keyframes spin { to { transform:rotate(360deg); } }
|
| 356 |
|
| 357 |
+
/* ======= AUTH SCREEN ======= */
|
| 358 |
#auth-screen {
|
| 359 |
+
background: var(--bg-secondary);
|
| 360 |
+
flex-direction: column;
|
| 361 |
+
align-items: center;
|
| 362 |
+
justify-content: center;
|
| 363 |
+
padding: 1rem;
|
| 364 |
+
overflow-y: auto;
|
| 365 |
+
}
|
| 366 |
+
.auth-bg { position:fixed; inset:0; pointer-events:none; overflow:hidden; z-index:0; }
|
|
|
|
|
|
|
|
|
|
|
|
|
| 367 |
.auth-bg-circle {
|
| 368 |
+
position:absolute; border-radius:50%;
|
| 369 |
+
background: var(--primary-light);
|
| 370 |
+
opacity: 0.5; filter:blur(70px);
|
|
|
|
|
|
|
| 371 |
}
|
| 372 |
+
.auth-bg-circle-1 { width:350px; height:350px; top:-120px; right:-80px; }
|
| 373 |
+
.auth-bg-circle-2 { width:250px; height:250px; bottom:-100px; left:-60px; }
|
| 374 |
+
.auth-bg-circle-3 { width:180px; height:180px; top:45%; left:38%; }
|
| 375 |
|
| 376 |
.auth-container {
|
| 377 |
+
position: relative;
|
| 378 |
+
z-index: 1;
|
| 379 |
+
width: 100%;
|
| 380 |
+
max-width: 420px;
|
| 381 |
+
background: var(--bg-elevated);
|
| 382 |
+
border-radius: var(--radius-2xl);
|
| 383 |
+
box-shadow: var(--shadow-xl);
|
| 384 |
+
padding: 2.5rem 2rem;
|
| 385 |
+
border: 1px solid var(--border);
|
| 386 |
+
}
|
| 387 |
+
.auth-header { text-align:center; margin-bottom:2rem; }
|
|
|
|
|
|
|
| 388 |
.auth-logo {
|
| 389 |
+
width:64px; height:64px;
|
| 390 |
+
margin:0 auto 1rem;
|
| 391 |
+
background: var(--primary);
|
| 392 |
+
color: #fff;
|
| 393 |
+
border-radius: var(--radius-xl);
|
| 394 |
+
display:flex; align-items:center; justify-content:center;
|
| 395 |
+
font-size:1.75rem;
|
| 396 |
+
box-shadow: var(--shadow-lg);
|
| 397 |
+
}
|
| 398 |
+
.auth-title { font-size:1.75rem; font-weight:700; color:var(--text); margin-bottom:0.25rem; }
|
| 399 |
+
.auth-subtitle { font-size:0.875rem; color:var(--text-secondary); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 400 |
.auth-tabs {
|
| 401 |
+
display:flex; gap:0.25rem;
|
| 402 |
+
margin-bottom:1.5rem;
|
| 403 |
+
background: var(--bg-tertiary);
|
| 404 |
+
padding:0.25rem;
|
| 405 |
+
border-radius: var(--radius-md);
|
|
|
|
| 406 |
}
|
| 407 |
.auth-tab {
|
| 408 |
+
flex:1;
|
| 409 |
+
display:flex; align-items:center; justify-content:center; gap:0.4rem;
|
| 410 |
+
padding:0.5rem 1rem;
|
| 411 |
+
font-size:0.875rem; font-weight:500;
|
| 412 |
+
color: var(--text-secondary);
|
| 413 |
+
background: transparent;
|
| 414 |
+
border:none; border-radius:var(--radius-sm);
|
| 415 |
+
cursor:pointer;
|
| 416 |
+
transition: all var(--transition-fast);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 417 |
}
|
| 418 |
.auth-tab.active {
|
| 419 |
+
background: var(--bg-elevated);
|
| 420 |
+
color: var(--text);
|
| 421 |
+
box-shadow: var(--shadow-sm);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 422 |
}
|
| 423 |
+
.auth-form { display:none; }
|
| 424 |
+
.auth-form.active { display:block; }
|
| 425 |
+
.auth-form .btn-block { margin-top:0.5rem; }
|
| 426 |
.auth-loading {
|
| 427 |
+
display:flex; align-items:center; justify-content:center;
|
| 428 |
+
gap:0.5rem; margin-top:1rem; color:var(--text-secondary);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 429 |
}
|
| 430 |
+
.auth-loading.hidden { display:none !important; }
|
| 431 |
|
| 432 |
+
/* ======= CHAT HEADER ======= */
|
| 433 |
.chat-header {
|
| 434 |
+
display:flex; align-items:center; justify-content:space-between;
|
| 435 |
+
padding:0 1rem;
|
| 436 |
+
height: var(--header-height);
|
| 437 |
+
background: var(--header-bg);
|
| 438 |
+
border-bottom:1px solid var(--header-border);
|
| 439 |
+
flex-shrink:0;
|
| 440 |
+
z-index:10;
|
| 441 |
+
}
|
| 442 |
+
.header-section { display:flex; align-items:center; gap:0.75rem; }
|
| 443 |
+
.header-avatar-wrap {
|
| 444 |
+
width:40px; height:40px;
|
| 445 |
+
border-radius:var(--radius-full);
|
| 446 |
+
background: var(--bg-tertiary);
|
| 447 |
+
display:flex; align-items:center; justify-content:center;
|
| 448 |
+
color: var(--text-secondary);
|
| 449 |
+
font-size:1.75rem;
|
| 450 |
+
overflow:hidden; flex-shrink:0;
|
| 451 |
}
|
| 452 |
.header-avatar-img {
|
| 453 |
+
width:40px; height:40px;
|
| 454 |
+
border-radius:var(--radius-full);
|
| 455 |
+
object-fit:cover;
|
| 456 |
+
border:2px solid var(--border);
|
| 457 |
+
flex-shrink:0;
|
| 458 |
+
}
|
| 459 |
+
.header-info { display:flex; flex-direction:column; }
|
| 460 |
+
.header-name { font-size:1rem; font-weight:600; color:var(--text); line-height:1.3; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 461 |
.header-status {
|
| 462 |
+
font-size:0.75rem;
|
| 463 |
+
color:var(--text-secondary);
|
| 464 |
+
display:flex; align-items:center; gap:0.25rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 465 |
}
|
| 466 |
+
.status-dot { width:8px; height:8px; border-radius:50%; background:var(--text-tertiary); }
|
| 467 |
+
.status-dot.online { background:var(--success); }
|
| 468 |
|
| 469 |
+
/* ======= CONNECTION STATUS ======= */
|
| 470 |
.connection-status {
|
| 471 |
+
height:28px;
|
| 472 |
+
display:flex; align-items:center; gap:0.5rem;
|
| 473 |
+
padding:0 1rem;
|
| 474 |
+
font-size:0.75rem;
|
| 475 |
+
background: var(--bg-secondary);
|
| 476 |
+
border-bottom:1px solid var(--border-light);
|
| 477 |
+
color: var(--text-secondary);
|
| 478 |
+
flex-shrink:0;
|
| 479 |
+
}
|
| 480 |
+
.connection-status.connected { color:var(--success); }
|
| 481 |
+
.connection-status.reconnecting { color:var(--warning); }
|
| 482 |
+
.connection-status.disconnected { color:var(--error); }
|
| 483 |
+
|
| 484 |
+
/* ======= MESSAGES ======= */
|
|
|
|
| 485 |
.messages-container {
|
| 486 |
+
flex:1; overflow:hidden; position:relative;
|
| 487 |
+
background: var(--bg);
|
|
|
|
|
|
|
| 488 |
}
|
| 489 |
.messages-scroll {
|
| 490 |
+
height:100%; overflow-y:auto;
|
| 491 |
+
padding:1rem 1rem 1.5rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 492 |
}
|
| 493 |
+
.load-more { text-align:center; margin-bottom:1rem; }
|
| 494 |
.messages-list {
|
| 495 |
+
display:flex; flex-direction:column;
|
| 496 |
+
gap:0.25rem; min-height:100%;
|
|
|
|
|
|
|
| 497 |
}
|
| 498 |
.empty-state {
|
| 499 |
+
display:flex; flex-direction:column;
|
| 500 |
+
align-items:center; justify-content:center;
|
| 501 |
+
padding:4rem 1rem; text-align:center;
|
| 502 |
+
color: var(--text-secondary);
|
| 503 |
+
flex:1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 504 |
}
|
| 505 |
+
.empty-icon { font-size:3.5rem; color:var(--text-tertiary); margin-bottom:1.25rem; }
|
| 506 |
+
.empty-state h3 { font-size:1.125rem; color:var(--text); margin-bottom:0.25rem; }
|
| 507 |
+
.empty-state p { color:var(--text-secondary); font-size:0.9rem; }
|
| 508 |
|
| 509 |
.scroll-bottom-btn {
|
| 510 |
+
position:absolute; bottom:1rem; right:1rem;
|
| 511 |
+
width:36px; height:36px;
|
| 512 |
+
background: var(--bg-elevated);
|
| 513 |
+
border:1px solid var(--border);
|
| 514 |
+
border-radius:var(--radius-full);
|
| 515 |
+
box-shadow: var(--shadow-md);
|
| 516 |
+
display:flex; align-items:center; justify-content:center;
|
| 517 |
+
cursor:pointer;
|
| 518 |
+
transition: all var(--transition-fast);
|
| 519 |
+
z-index:5; color:var(--text-secondary);
|
| 520 |
+
}
|
| 521 |
+
.scroll-bottom-btn:hover { background:var(--bg-tertiary); transform:scale(1.05); }
|
| 522 |
+
|
| 523 |
+
/* ======= MESSAGE BUBBLES ======= */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 524 |
.message-wrapper {
|
| 525 |
+
display:flex; flex-direction:column;
|
| 526 |
+
animation: msgIn 0.25s ease;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 527 |
}
|
| 528 |
+
.message-wrapper.self { align-items:flex-end; }
|
| 529 |
+
.message-wrapper.other { align-items:flex-start; }
|
| 530 |
+
|
| 531 |
+
@keyframes msgIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
|
| 532 |
+
|
| 533 |
.message-bubble {
|
| 534 |
+
max-width:72%;
|
| 535 |
+
padding:0.625rem 0.875rem;
|
| 536 |
+
border-radius:var(--radius-lg);
|
| 537 |
+
word-wrap:break-word; overflow-wrap:break-word; white-space:pre-wrap;
|
| 538 |
+
line-height:1.55;
|
| 539 |
+
}
|
| 540 |
+
.message-wrapper.self .message-bubble {
|
| 541 |
+
background: var(--bubble-self);
|
| 542 |
+
color: var(--bubble-self-text);
|
| 543 |
+
border-bottom-right-radius: var(--radius-xs);
|
| 544 |
+
}
|
| 545 |
+
.message-wrapper.other .message-bubble {
|
| 546 |
+
background: var(--bubble-other);
|
| 547 |
+
color: var(--bubble-other-text);
|
| 548 |
+
border-bottom-left-radius: var(--radius-xs);
|
|
|
|
|
|
|
|
|
|
| 549 |
}
|
| 550 |
.message-bubble.deleted {
|
| 551 |
+
opacity:0.55;
|
| 552 |
+
font-style:italic;
|
| 553 |
+
color: var(--text-secondary) !important;
|
| 554 |
+
background: var(--bg-tertiary) !important;
|
|
|
|
|
|
|
| 555 |
}
|
| 556 |
+
.message-text { font-size:0.9375rem; }
|
| 557 |
+
|
| 558 |
.message-meta {
|
| 559 |
+
display:flex; align-items:center; gap:0.35rem;
|
| 560 |
+
margin-top:0.2rem; font-size:0.6875rem;
|
| 561 |
+
}
|
| 562 |
+
.message-wrapper.self .message-meta {
|
| 563 |
+
justify-content:flex-end;
|
| 564 |
+
color: rgba(255,255,255,0.75);
|
| 565 |
+
}
|
| 566 |
+
.message-wrapper.other .message-meta { color:var(--text-tertiary); }
|
| 567 |
+
[data-theme="dark"] .message-wrapper.self .message-meta { color:rgba(255,255,255,0.65); }
|
| 568 |
+
|
| 569 |
+
.message-status { display:inline-flex; align-items:center; }
|
| 570 |
+
.message-status.read { color: #93C5FD; }
|
| 571 |
+
[data-theme="light"] .message-status.read { color: #A5D6A7; }
|
| 572 |
+
|
| 573 |
+
.edited-label { font-style:italic; opacity:0.7; }
|
| 574 |
+
|
| 575 |
.message-actions {
|
| 576 |
+
display:flex; gap:2px;
|
| 577 |
+
margin-top:0.2rem;
|
| 578 |
+
opacity:0;
|
| 579 |
+
transition:opacity var(--transition-fast);
|
|
|
|
| 580 |
}
|
| 581 |
+
.message-wrapper:hover .message-actions { opacity:1; }
|
| 582 |
.message-actions button {
|
| 583 |
+
width:26px; height:26px;
|
| 584 |
+
background:transparent; border:none;
|
| 585 |
+
border-radius:var(--radius-sm);
|
| 586 |
+
cursor:pointer; font-size:0.7rem;
|
| 587 |
+
transition:all var(--transition-fast);
|
| 588 |
+
display:flex; align-items:center; justify-content:center;
|
| 589 |
+
color: var(--text-tertiary);
|
| 590 |
+
}
|
| 591 |
+
.message-wrapper.other .message-actions button:hover {
|
| 592 |
+
background:var(--bg-tertiary); color:var(--text);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 593 |
}
|
| 594 |
+
.message-wrapper.self .message-actions button { color:rgba(255,255,255,0.6); }
|
| 595 |
+
.message-wrapper.self .message-actions button:hover { background:rgba(255,255,255,0.15); color:#fff; }
|
| 596 |
+
|
| 597 |
+
/* Reply indicator */
|
| 598 |
+
.reply-indicator {
|
| 599 |
+
display:flex; align-items:center; gap:0.4rem;
|
| 600 |
+
padding:0.2rem 0.5rem; margin-bottom:0.35rem;
|
| 601 |
+
font-size:0.75rem;
|
| 602 |
+
border-left:3px solid var(--primary);
|
| 603 |
+
border-radius:0 var(--radius-sm) var(--radius-sm) 0;
|
| 604 |
+
background: rgba(0,0,0,0.06);
|
| 605 |
+
color: var(--text-secondary);
|
| 606 |
}
|
| 607 |
+
[data-theme="dark"] .reply-indicator { background:rgba(255,255,255,0.07); }
|
| 608 |
+
.message-wrapper.self .reply-indicator { color:rgba(255,255,255,0.8); background:rgba(255,255,255,0.12); }
|
| 609 |
|
| 610 |
/* Attachments */
|
| 611 |
+
.attachment { margin-top:0.4rem; border-radius:var(--radius-md); overflow:hidden; }
|
| 612 |
+
.attachment img { max-width:100%; max-height:280px; object-fit:cover; border-radius:var(--radius-md); cursor:pointer; display:block; }
|
| 613 |
+
.attachment video { max-width:100%; max-height:280px; border-radius:var(--radius-md); }
|
| 614 |
+
.attachment audio { width:100%; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 615 |
.attachment-file {
|
| 616 |
+
display:flex; align-items:center; gap:0.5rem;
|
| 617 |
+
padding:0.5rem 0.75rem;
|
| 618 |
+
background:var(--bg-secondary);
|
| 619 |
+
border:1px solid var(--border);
|
| 620 |
+
border-radius:var(--radius-md);
|
| 621 |
+
cursor:pointer;
|
| 622 |
+
transition:all var(--transition-fast);
|
| 623 |
+
color:var(--text);
|
| 624 |
+
}
|
| 625 |
+
.attachment-file:hover { background:var(--bg-tertiary); border-color:var(--primary); }
|
| 626 |
+
.attachment-file .fa-file-alt { font-size:1.4rem; color:var(--primary); }
|
| 627 |
+
.file-info { flex:1; min-width:0; }
|
| 628 |
+
.file-name { font-size:0.875rem; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--text); }
|
| 629 |
+
.file-size { font-size:0.75rem; color:var(--text-tertiary); }
|
| 630 |
+
|
| 631 |
+
/* ======= TYPING INDICATOR ======= */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 632 |
.typing-indicator {
|
| 633 |
+
display:flex; align-items:center; gap:0.5rem;
|
| 634 |
+
padding:0 1rem;
|
| 635 |
+
height:32px;
|
| 636 |
+
background: var(--bg-secondary);
|
| 637 |
+
border-top:1px solid var(--border-light);
|
| 638 |
+
flex-shrink:0;
|
| 639 |
+
color: var(--text-secondary);
|
| 640 |
+
}
|
| 641 |
+
.typing-dots { display:flex; gap:3px; }
|
|
|
|
|
|
|
| 642 |
.typing-dot {
|
| 643 |
+
width:6px; height:6px;
|
| 644 |
+
border-radius:50%;
|
| 645 |
+
background: var(--text-tertiary);
|
| 646 |
+
animation: typeBounce 1.4s infinite ease-in-out both;
|
| 647 |
+
}
|
| 648 |
+
.typing-dot:nth-child(1) { animation-delay:-0.32s; }
|
| 649 |
+
.typing-dot:nth-child(2) { animation-delay:-0.16s; }
|
| 650 |
+
@keyframes typeBounce { 0%,80%,100%{transform:scale(0);}40%{transform:scale(1);} }
|
| 651 |
+
.typing-text { font-size:0.8125rem; color:var(--text-secondary); }
|
| 652 |
+
|
| 653 |
+
/* ======= REPLY PREVIEW ======= */
|
| 654 |
+
.reply-preview { flex-shrink:0; border-top:1px solid var(--border-light); }
|
|
|
|
|
|
|
|
|
|
|
|
|
| 655 |
.reply-bar {
|
| 656 |
+
display:flex; align-items:center; gap:0.75rem;
|
| 657 |
+
padding:0.5rem 1rem;
|
| 658 |
+
background: var(--bg-secondary);
|
| 659 |
+
color:var(--text);
|
| 660 |
+
}
|
| 661 |
+
.reply-icon { color:var(--primary); flex-shrink:0; }
|
| 662 |
+
.reply-content { flex:1; min-width:0; }
|
| 663 |
+
.reply-label { font-size:0.75rem; font-weight:600; color:var(--primary); display:block; }
|
| 664 |
+
.reply-text { font-size:0.8125rem; color:var(--text-secondary); display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
| 665 |
+
|
| 666 |
+
/* ======= COMPOSE ======= */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 667 |
.compose-area {
|
| 668 |
+
flex-shrink:0;
|
| 669 |
+
border-top:1px solid var(--border);
|
| 670 |
+
background: var(--bg-elevated);
|
| 671 |
+
}
|
| 672 |
+
.upload-preview {
|
| 673 |
+
display:flex; align-items:center; justify-content:space-between;
|
| 674 |
+
padding:0.4rem 1rem;
|
| 675 |
+
background: var(--bg-secondary);
|
| 676 |
+
border-bottom:1px solid var(--border-light);
|
| 677 |
+
color:var(--text);
|
| 678 |
+
}
|
| 679 |
+
.upload-info { display:flex; align-items:center; gap:0.5rem; font-size:0.8125rem; color:var(--text-secondary); }
|
| 680 |
+
.compose-form { display:flex; align-items:flex-end; gap:0.5rem; padding:0.5rem 0.75rem; }
|
| 681 |
+
.compose-tools { display:flex; gap:2px; padding-bottom:0.1rem; }
|
| 682 |
+
.input-area { flex:1; }
|
|
|
|
|
|
|
| 683 |
.message-input {
|
| 684 |
+
width:100%; resize:none;
|
| 685 |
+
padding:0.625rem 1rem;
|
| 686 |
+
font-size:0.9375rem; font-family:inherit;
|
| 687 |
+
color: var(--input-text);
|
| 688 |
+
background: var(--input-bg);
|
| 689 |
+
border:1.5px solid var(--input-border);
|
| 690 |
+
border-radius:var(--radius-xl);
|
| 691 |
+
outline:none;
|
| 692 |
+
min-height:42px; max-height:120px;
|
| 693 |
+
line-height:1.5;
|
| 694 |
+
transition:all var(--transition-fast);
|
| 695 |
+
overflow-y:auto;
|
|
|
|
|
|
|
|
|
|
| 696 |
}
|
| 697 |
.message-input:focus {
|
| 698 |
+
border-color: var(--primary);
|
| 699 |
+
box-shadow:0 0 0 3px var(--primary-light);
|
| 700 |
+
background: var(--bg-elevated);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 701 |
}
|
| 702 |
+
.message-input::placeholder { color:var(--input-placeholder); }
|
| 703 |
.upload-progress {
|
| 704 |
+
display:flex; align-items:center; gap:0.75rem;
|
| 705 |
+
padding:0.5rem 1rem;
|
| 706 |
+
background:var(--bg-secondary);
|
| 707 |
+
border-top:1px solid var(--border-light);
|
| 708 |
+
color:var(--text);
|
| 709 |
+
}
|
| 710 |
+
.progress-track { flex:1; height:4px; background:var(--border); border-radius:var(--radius-full); overflow:hidden; }
|
| 711 |
+
.progress-fill { height:100%; background:var(--primary); border-radius:var(--radius-full); transition:width var(--transition); }
|
| 712 |
+
.progress-text { font-size:0.75rem; font-weight:500; color:var(--text-secondary); min-width:36px; }
|
| 713 |
+
|
| 714 |
+
/* ======= MODALS ======= */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 715 |
.modal {
|
| 716 |
+
position:fixed; inset:0; z-index:100;
|
| 717 |
+
display:flex; align-items:center; justify-content:center;
|
| 718 |
+
padding:1rem;
|
| 719 |
+
}
|
| 720 |
+
.modal.hidden { display:none !important; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 721 |
.modal-backdrop {
|
| 722 |
+
position:absolute; inset:0;
|
| 723 |
+
background:rgba(0,0,0,0.55);
|
| 724 |
+
backdrop-filter:blur(4px);
|
|
|
|
| 725 |
}
|
| 726 |
.modal-container {
|
| 727 |
+
position:relative; width:100%;
|
| 728 |
+
max-width:520px; max-height:90vh;
|
| 729 |
+
background: var(--bg-elevated);
|
| 730 |
+
border-radius:var(--radius-xl);
|
| 731 |
+
box-shadow: var(--shadow-xl);
|
| 732 |
+
overflow:hidden;
|
| 733 |
+
display:flex; flex-direction:column;
|
| 734 |
+
border:1px solid var(--border);
|
| 735 |
+
color:var(--text);
|
| 736 |
+
}
|
| 737 |
+
.modal-sm { max-width:400px; }
|
|
|
|
|
|
|
| 738 |
.modal-header {
|
| 739 |
+
display:flex; align-items:center; justify-content:space-between;
|
| 740 |
+
padding:1rem 1.5rem;
|
| 741 |
+
border-bottom:1px solid var(--border);
|
| 742 |
+
background: var(--bg-elevated);
|
| 743 |
+
}
|
| 744 |
+
.modal-header h2 { font-size:1.0625rem; font-weight:600; color:var(--text); }
|
| 745 |
+
.modal-header h2 i { margin-right:0.5rem; color:var(--primary); }
|
| 746 |
+
.modal-body { padding:1.5rem; overflow-y:auto; flex:1; background:var(--bg-elevated); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 747 |
.modal-footer {
|
| 748 |
+
display:flex; justify-content:flex-end; gap:0.5rem;
|
| 749 |
+
padding:1rem 1.5rem;
|
| 750 |
+
border-top:1px solid var(--border);
|
| 751 |
+
background: var(--bg-secondary);
|
|
|
|
|
|
|
| 752 |
}
|
| 753 |
|
| 754 |
+
/* Settings sections */
|
| 755 |
+
.settings-section { margin-bottom:2rem; }
|
| 756 |
+
.settings-section:last-child { margin-bottom:0; }
|
|
|
|
|
|
|
| 757 |
.settings-section h3 {
|
| 758 |
+
font-size:0.75rem; font-weight:600;
|
| 759 |
+
text-transform:uppercase; letter-spacing:0.05em;
|
| 760 |
+
color:var(--text-secondary);
|
| 761 |
+
margin-bottom:1rem;
|
| 762 |
+
padding-bottom:0.5rem;
|
| 763 |
+
border-bottom:1px solid var(--border-light);
|
| 764 |
+
}
|
|
|
|
|
|
|
|
|
|
| 765 |
.avatar-section {
|
| 766 |
+
display:flex; align-items:center; gap:1rem;
|
| 767 |
+
margin-bottom:1rem;
|
|
|
|
|
|
|
| 768 |
}
|
| 769 |
.settings-avatar {
|
| 770 |
+
width:72px; height:72px;
|
| 771 |
+
border-radius:var(--radius-full);
|
| 772 |
+
background: var(--bg-tertiary);
|
| 773 |
+
display:flex; align-items:center; justify-content:center;
|
| 774 |
+
font-size:2rem; color:var(--text-secondary);
|
| 775 |
+
overflow:hidden; flex-shrink:0;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 776 |
}
|
| 777 |
.settings-avatar-img {
|
| 778 |
+
width:72px; height:72px;
|
| 779 |
+
border-radius:var(--radius-full);
|
| 780 |
+
object-fit:cover; flex-shrink:0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 781 |
}
|
| 782 |
+
|
| 783 |
+
/* Theme selector */
|
| 784 |
+
.theme-selector { display:grid; grid-template-columns:repeat(3,1fr); gap:0.75rem; }
|
| 785 |
.theme-option {
|
| 786 |
+
display:flex; flex-direction:column; align-items:center; gap:0.5rem;
|
| 787 |
+
padding:0.75rem; font-size:0.8rem; font-weight:500;
|
| 788 |
+
color:var(--text);
|
| 789 |
+
background:var(--bg-secondary);
|
| 790 |
+
border:2px solid var(--border);
|
| 791 |
+
border-radius:var(--radius-md);
|
| 792 |
+
cursor:pointer;
|
| 793 |
+
transition:all var(--transition-fast);
|
| 794 |
+
}
|
| 795 |
+
.theme-option:hover { border-color:var(--text-tertiary); }
|
| 796 |
+
.theme-option.active { border-color:var(--primary); background:var(--primary-light); color:var(--primary); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 797 |
.theme-preview {
|
| 798 |
+
width:56px; height:38px;
|
| 799 |
+
border-radius:var(--radius-sm);
|
| 800 |
+
overflow:hidden; border:1px solid var(--border);
|
| 801 |
+
}
|
| 802 |
+
.theme-preview-header { height:8px; }
|
| 803 |
+
.theme-preview-body { padding:3px; display:flex; flex-direction:column; gap:2px; }
|
| 804 |
+
.theme-preview-message { height:6px; border-radius:3px; }
|
| 805 |
+
.theme-preview-message.self { width:65%; align-self:flex-end; }
|
| 806 |
+
.theme-preview-message.other { width:55%; }
|
| 807 |
+
|
| 808 |
+
/* Light preview colours */
|
| 809 |
+
.theme-preview-light { background:#FFFFFF; }
|
| 810 |
+
.theme-preview-light .theme-preview-header { background:#F9FAFB; }
|
| 811 |
+
.theme-preview-light .theme-preview-message.self { background:#2563EB; }
|
| 812 |
+
.theme-preview-light .theme-preview-message.other { background:#F3F4F6; }
|
| 813 |
+
/* Dark preview colours */
|
| 814 |
+
.theme-preview-dark { background:#0F172A; }
|
| 815 |
+
.theme-preview-dark .theme-preview-header { background:#1E293B; }
|
| 816 |
+
.theme-preview-dark .theme-preview-message.self { background:#3B82F6; }
|
| 817 |
+
.theme-preview-dark .theme-preview-message.other { background:#334155; }
|
| 818 |
+
/* Custom preview */
|
| 819 |
+
.theme-preview-custom { background: linear-gradient(135deg,#6366F1,#EC4899); }
|
| 820 |
+
.theme-preview-custom .theme-preview-header { background:rgba(0,0,0,0.2); }
|
| 821 |
+
.theme-preview-custom .theme-preview-message.self { background:#F9FAFB; }
|
| 822 |
+
.theme-preview-custom .theme-preview-message.other { background:rgba(255,255,255,0.4); }
|
| 823 |
|
| 824 |
.custom-theme-section {
|
| 825 |
+
margin-top:0.75rem; padding:1rem;
|
| 826 |
+
background:var(--bg-secondary);
|
| 827 |
+
border-radius:var(--radius-md);
|
| 828 |
+
border:1px solid var(--border);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 829 |
}
|
| 830 |
+
.color-picker-row { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
|
| 831 |
.color-picker-group label {
|
| 832 |
+
display:block; font-size:0.75rem; font-weight:500;
|
| 833 |
+
margin-bottom:0.4rem; color:var(--text);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 834 |
}
|
| 835 |
+
.color-input-wrapper { display:flex; align-items:center; gap:0.4rem; }
|
| 836 |
.color-input-wrapper input[type="color"] {
|
| 837 |
+
width:36px; height:36px;
|
| 838 |
+
border:1px solid var(--border); border-radius:var(--radius-sm);
|
| 839 |
+
padding:2px; cursor:pointer; background:none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 840 |
}
|
| 841 |
+
.color-hex { font-size:0.75rem; font-family:var(--font-mono); color:var(--text-secondary); }
|
| 842 |
+
|
| 843 |
+
/* About rows */
|
| 844 |
+
.about-info { display:flex; flex-direction:column; gap:0; }
|
| 845 |
.about-row {
|
| 846 |
+
display:flex; justify-content:space-between; align-items:center;
|
| 847 |
+
padding:0.625rem 0;
|
| 848 |
+
border-bottom:1px solid var(--border-light);
|
| 849 |
+
font-size:0.875rem; color:var(--text);
|
| 850 |
+
}
|
| 851 |
+
.about-row:last-child { border-bottom:none; }
|
| 852 |
+
|
| 853 |
+
/* Online users modal */
|
| 854 |
+
.online-users-list { max-height:300px; overflow-y:auto; background:var(--bg-elevated); }
|
| 855 |
+
.loading-state { display:flex; align-items:center; justify-content:center; gap:0.5rem; padding:2rem; color:var(--text-secondary); }
|
| 856 |
+
.user-item { display:flex; align-items:center; gap:0.75rem; padding:0.6rem 1.25rem; transition:background var(--transition-fast); color:var(--text); }
|
| 857 |
+
.user-item:hover { background:var(--bg-secondary); }
|
| 858 |
+
.user-avatar { width:40px; height:40px; border-radius:var(--radius-full); background:var(--bg-tertiary); display:flex; align-items:center; justify-content:center; color:var(--text-secondary); font-size:1.2rem; overflow:hidden; flex-shrink:0; }
|
| 859 |
+
.user-avatar img { width:100%; height:100%; object-fit:cover; }
|
| 860 |
+
.user-info { flex:1; }
|
| 861 |
+
.user-name { font-size:0.875rem; font-weight:500; color:var(--text); }
|
| 862 |
+
.user-status-text { font-size:0.75rem; color:var(--text-secondary); }
|
| 863 |
+
|
| 864 |
+
/* ======= EMOJI PICKER ======= */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 865 |
.emoji-picker {
|
| 866 |
+
position:fixed; bottom:80px; left:60px;
|
| 867 |
+
z-index:200;
|
| 868 |
+
background:var(--bg-elevated);
|
| 869 |
+
border:1px solid var(--border);
|
| 870 |
+
border-radius:var(--radius-lg);
|
| 871 |
+
box-shadow:var(--shadow-xl);
|
| 872 |
+
width:300px; max-height:320px;
|
| 873 |
+
overflow:hidden;
|
| 874 |
+
display:flex; flex-direction:column;
|
| 875 |
+
}
|
| 876 |
+
.emoji-header { border-bottom:1px solid var(--border); padding:0.4rem; background:var(--bg-secondary); }
|
| 877 |
+
.emoji-categories { display:flex; gap:2px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 878 |
.emoji-cat {
|
| 879 |
+
width:34px; height:34px; border:none;
|
| 880 |
+
background:transparent; border-radius:var(--radius-sm);
|
| 881 |
+
cursor:pointer; color:var(--text-secondary);
|
| 882 |
+
font-size:0.8rem; transition:all var(--transition-fast);
|
| 883 |
+
}
|
| 884 |
+
.emoji-cat:hover { background:var(--bg-tertiary); color:var(--text); }
|
| 885 |
+
.emoji-cat.active { background:var(--primary-light); color:var(--primary); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 886 |
.emoji-grid {
|
| 887 |
+
padding:0.4rem;
|
| 888 |
+
display:grid; grid-template-columns:repeat(8,1fr);
|
| 889 |
+
gap:1px; overflow-y:auto; flex:1;
|
| 890 |
+
background:var(--bg-elevated);
|
|
|
|
|
|
|
| 891 |
}
|
| 892 |
.emoji-item {
|
| 893 |
+
width:34px; height:34px;
|
| 894 |
+
display:flex; align-items:center; justify-content:center;
|
| 895 |
+
font-size:1.2rem; cursor:pointer;
|
| 896 |
+
border-radius:var(--radius-sm);
|
| 897 |
+
border:none; background:transparent;
|
| 898 |
+
transition:background var(--transition-fast);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 899 |
}
|
| 900 |
+
.emoji-item:hover { background:var(--bg-tertiary); }
|
| 901 |
+
|
| 902 |
+
/* ======= TOASTS ======= */
|
| 903 |
+
.toast-container { position:fixed; top:1rem; right:1rem; z-index:300; display:flex; flex-direction:column; gap:0.5rem; max-width:340px; pointer-events:none; }
|
| 904 |
.toast {
|
| 905 |
+
padding:0.75rem 1rem;
|
| 906 |
+
background:var(--bg-elevated);
|
| 907 |
+
border:1px solid var(--border);
|
| 908 |
+
border-radius:var(--radius-md);
|
| 909 |
+
box-shadow:var(--shadow-lg);
|
| 910 |
+
display:flex; align-items:center; gap:0.75rem;
|
| 911 |
+
font-size:0.875rem; color:var(--text);
|
| 912 |
+
animation:toastIn 0.3s ease;
|
| 913 |
+
pointer-events:auto;
|
| 914 |
+
}
|
| 915 |
+
.toast-success { border-left:4px solid var(--success); }
|
| 916 |
+
.toast-error { border-left:4px solid var(--error); }
|
| 917 |
+
.toast-warning { border-left:4px solid var(--warning); }
|
| 918 |
+
.toast-info { border-left:4px solid var(--info); }
|
| 919 |
+
.toast-success i { color:var(--success); }
|
| 920 |
+
.toast-error i { color:var(--error); }
|
| 921 |
+
.toast-warning i { color:var(--warning); }
|
| 922 |
+
.toast-info i { color:var(--info); }
|
| 923 |
+
@keyframes toastIn { from{transform:translateX(100%);opacity:0;} to{transform:translateX(0);opacity:1;} }
|
| 924 |
+
|
| 925 |
+
/* ======= RESPONSIVE ======= */
|
| 926 |
+
@media (max-width:640px) {
|
| 927 |
+
.auth-container { padding:1.5rem 1.25rem; border-radius:var(--radius-xl); }
|
| 928 |
+
.message-bubble { max-width:88%; }
|
| 929 |
+
.compose-form { padding:0.4rem 0.5rem; }
|
| 930 |
+
.modal { padding:0; align-items:flex-end; }
|
| 931 |
+
.modal-container { max-height:88vh; border-radius:var(--radius-xl) var(--radius-xl) 0 0; max-width:100%; }
|
| 932 |
+
.color-picker-row { grid-template-columns:1fr; }
|
| 933 |
+
.theme-selector { grid-template-columns:repeat(3,1fr); }
|
| 934 |
+
.emoji-picker { left:8px; right:8px; bottom:72px; width:auto; }
|
| 935 |
+
}
|
| 936 |
+
@media (min-width:768px) {
|
| 937 |
+
.message-bubble { max-width:65%; }
|
| 938 |
+
.compose-form { padding:0.6rem 1rem; }
|
| 939 |
+
}
|
| 940 |
+
@media (min-width:1024px) { .message-bubble { max-width:55%; } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|