-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
487 lines (445 loc) · 38.9 KB
/
styles.css
File metadata and controls
487 lines (445 loc) · 38.9 KB
1
2
3
4
5
6
7
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
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
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
/* ============================================================
yes the CSS is ENTIRELY vibe coded. i am extremely lazy with CSS and
wanted to clean everything up so i vibecoded it to make the life of me
and others easier. hate me or enjoy.
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap');
@import url('./Themes/Default.css');
/* ============================================================
RESET & BASE
============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Rubik', sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
height: 100vh;
overflow: hidden;
}
#app { height: 100vh; }
/* ============================================================
SCROLLBAR
============================================================ */
::-webkit-scrollbar { width: 16px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border: 4px solid var(--scrollbar-border); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }
/* ============================================================
SCREENS
============================================================ */
.screen { display: none; height: 100%; }
.screen.active { display: flex; flex-direction: column; }
#login-screen { justify-content: center; align-items: center; background: var(--bg-primary); }
#chat-screen { opacity: 0; transition: opacity 0.5s ease; }
#chat-screen.active { opacity: 1; }
/* ============================================================
LOADING SCREEN
============================================================ */
.loading-screen {
position: fixed; inset: 0; background: var(--bg-primary);
display: none; align-items: center; justify-content: center;
z-index: 10000; opacity: 1; transition: opacity 0.5s ease;
}
.loading-screen.active { display: flex; }
.loading-screen.fade-out { opacity: 0; }
.loading-content { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.loading-logo { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }
.loading-logo svg { filter: drop-shadow(0 0 20px var(--accent-muted2)); }
.loading-text { color: var(--text-bright); font-size: 24px; font-weight: 600; margin: 0; letter-spacing: -0.5px; }
.loading-subtext { color: var(--text-muted); font-size: 14px; margin: 0; }
/* ============================================================
LOGIN
============================================================ */
.login-container {
background: var(--bg-secondary);
padding: 40px; border-radius: 5px;
box-shadow: 0 2px 10px 0 rgba(0,0,0,0.2);
width: 100%; max-width: 480px;
}
.login-container h1 { margin-bottom: 10px; color: var(--text-bright); text-align: center; font-size: 24px; font-weight: 600; }
.subtitle { text-align: center; color: var(--text-muted); margin-bottom: 30px; font-size: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input { width: 100%; padding: 10px; background: var(--bg-tertiary); border: 1px solid var(--bg-tertiary); border-radius: 3px; color: var(--text-primary); font-size: 16px; }
.form-group input:focus { outline: none; border-color: var(--accent); }
.form-group small { display: block; margin-top: 5px; color: var(--text-faint); font-size: 12px; }
.status-message { margin-top: 20px; padding: 12px; border-radius: 3px; text-align: center; font-size: 14px; }
.status-message.error { background: var(--danger-muted); border: 1px solid var(--danger); color: var(--danger); }
.status-message.success { background: var(--accent-muted); border: 1px solid var(--accent); color: var(--accent); }
/* ============================================================
BUTTONS
============================================================ */
.btn { padding: 12px 24px; border: none; border-radius: 3px; font-size: 16px; font-weight: 500; cursor: pointer; transition: all 0.17s ease; }
.btn-primary { background: var(--accent); color: var(--text-bright); width: 100%; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { background: var(--bg-active); cursor: not-allowed; }
.btn-small { padding: 2px 8px; font-size: 12px; background: transparent; color: var(--text-muted); border-radius: 3px; }
.btn-small:hover { background: var(--bg-active); }
.retry-btn { margin-left: 8px; padding: 4px 12px; background: var(--danger); color: var(--text-bright); border: none; border-radius: 3px; font-size: 12px; cursor: pointer; transition: background 0.15s ease; }
.retry-btn:hover { background: var(--danger-hover); }
/* ============================================================
LAYOUT
============================================================ */
.chat-container { display: flex; height: 100%; background: var(--bg-primary); }
.main-content { flex: 1; display: flex; flex-direction: column; background: var(--bg-primary); min-width: 0; }
/* ============================================================
SERVERS / SPACES BAR
============================================================ */
.servers-bar { width: 72px; background: var(--bg-tertiary); display: flex; flex-direction: column; align-items: center; padding: 12px 0; gap: 8px; overflow-y: auto; flex-shrink: 0; }
.servers-bar::-webkit-scrollbar { display: none; }
#spaces-list { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.server-icon {
width: 48px; height: 48px; border-radius: 50%; background: var(--bg-primary);
display: flex; align-items: center; justify-content: center; cursor: pointer;
transition: border-radius 0.2s ease, background 0.2s ease;
color: var(--text-primary); font-size: 18px; font-weight: 700;
position: relative; flex-shrink: 0; user-select: none;
}
.server-icon:hover, .server-icon.active { border-radius: 16px; background: var(--accent); color: var(--text-bright); }
.server-icon::before { content: ''; position: absolute; left: -12px; width: 4px; background: var(--text-bright); border-radius: 0 4px 4px 0; transition: height 0.2s ease; height: 0; }
.server-icon:hover::before { height: 20px; }
.server-icon.active::before { height: 40px; }
.server-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.server-divider { width: 32px; height: 2px; background: var(--bg-primary); border-radius: 1px; flex-shrink: 0; }
.home-icon { background: var(--bg-primary); }
.home-icon.active, .home-icon:hover { background: var(--accent); }
/* ============================================================
SIDEBAR
============================================================ */
.sidebar { width: 240px; background: var(--bg-secondary); display: flex; flex-direction: column; }
.sidebar-header { padding: 12px 16px; background: var(--bg-secondary); border-bottom: 1px solid var(--border-secondary); display: flex; justify-content: space-between; align-items: center; height: 48px; }
.sidebar-header h2 { color: var(--text-bright); font-size: 17px; font-weight: 400; flex: 1; }
.rooms-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.room-category { padding: 16px 8px 4px 8px; font-size: 11px; font-weight: 600; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.5px; cursor: default; user-select: none; }
.room-item { padding: 5px 8px; margin: 0 8px; cursor: pointer; border-radius: 4px; transition: background 0.17s ease; display: flex; align-items: center; gap: 8px; }
.room-item:hover { background: var(--bg-hover); }
.room-item.active { background: var(--bg-active); }
.room-item::before { content: "#"; color: var(--text-faint); font-size: 20px; font-weight: 300; }
.room-item.active::before { color: var(--text-bright); }
.room-name { font-weight: 300; color: var(--text-sidebar); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-item.active .room-name { color: var(--text-bright); }
.room-last-message { display: none; }
/* ============================================================
HOME NAV
============================================================ */
.home-nav { display: none; flex-direction: column; padding: 8px 8px 4px 8px; gap: 2px; }
.home-nav.visible { display: flex; }
.home-nav-btn { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: none; border-radius: 4px; background: transparent; color: var(--text-sidebar); font-size: 15px; font-family: 'Rubik', sans-serif; font-weight: 400; cursor: pointer; width: 100%; text-align: left; transition: background 0.15s ease, color 0.15s ease; }
.home-nav-btn svg { flex-shrink: 0; opacity: 0.6; }
.home-nav-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.home-nav-btn:hover svg { opacity: 1; }
.home-nav-btn.active { background: var(--bg-active); color: var(--text-bright); }
.home-nav-btn.active svg { opacity: 1; }
/* ============================================================
SPACE CATEGORIES
============================================================ */
.space-category { margin: 4px 0; }
.space-category-header { display: flex; align-items: center; gap: 4px; padding: 6px 8px; cursor: pointer; user-select: none; border-radius: 4px; transition: background 0.15s ease; }
.space-category-header:hover { background: var(--bg-hover); }
.space-category-arrow { color: var(--text-faint); transition: transform 0.2s ease; transform: rotate(0deg); flex-shrink: 0; }
.space-category-arrow.expanded { transform: rotate(90deg); }
.space-category-name { font-size: 11px; font-weight: 600; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.5px; }
.space-category-rooms { max-height: 0; overflow: hidden; transition: max-height 0.2s ease; }
.space-category-rooms.expanded { max-height: 1000px; }
.space-category-rooms .room-item { margin-left: 8px; }
/* ============================================================
USER INFO
============================================================ */
.user-info { padding: 10px; background: var(--bg-quaternary); display: flex; align-items: center; gap: 8px; margin-top: auto; height: 52px; border-top: 1px solid var(--bg-tertiary); }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; color: var(--text-bright); font-weight: 600; font-size: 14px; flex-shrink: 0; overflow: hidden; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-details { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.user-name { color: var(--text-bright); font-size: 15px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-tag { color: var(--text-faint); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-settings-btn { width: 32px; height: 32px; border: none; background: transparent; color: var(--text-muted); border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; padding: 0; flex-shrink: 0; }
.user-settings-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.user-settings-btn svg { width: 20px; height: 20px; }
/* ============================================================
CHAT HEADER
============================================================ */
.chat-header { padding: 0 16px; background: var(--bg-primary); border-bottom: 1px solid var(--border-tertiary); display: flex; justify-content: space-between; align-items: center; height: 48px; }
.chat-header h2 { color: var(--text-bright); font-size: 16px; font-weight: 300; margin: 0; display: flex; align-items: center; gap: 8px; }
.chat-header h2::before { content: "#"; color: var(--text-faint); font-size: 24px; font-weight: 300; }
.chat-header-actions { display: flex; align-items: center; gap: 4px; }
.header-btn { width: 32px; height: 32px; background: transparent; border: none; color: var(--text-muted); border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; }
.header-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.header-btn.active { color: var(--text-bright); }
.member-count { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
/* ============================================================
MESSAGES
============================================================ */
.messages-container { flex: 1; overflow-y: auto; overflow-anchor: none; padding: 16px 0; display: flex; flex-direction: column; }
.empty-state { display: flex; justify-content: center; align-items: center; height: 100%; color: var(--text-faint); font-size: 16px; flex-direction: column; gap: 8px; }
.empty-state::before { content: "#"; font-size: 80px; color: #3f4147; font-weight: 300; }
.loading { padding: 20px; text-align: center; color: var(--text-faint); font-size: 14px; }
.loading-history { text-align: center; padding: 12px; color: var(--text-faint); font-size: 13px; animation: pulse 1.5s ease-in-out infinite; }
.message { display: flex; flex-direction: column; padding: 2px 16px; margin-top: 17px; position: relative; max-width: 100%; }
.message:hover { background: var(--bg-message-hover); }
.message::before { display: none; }
.message, .date-divider { overflow-anchor: auto;}
.message-grouped { padding: 0 16px; margin-top: 0; position: relative; }
.message-grouped-content { position: relative; padding-left: 52px; }
.message-row { display: flex; align-items: flex-start; gap: 12px; }
.message-body { flex: 1; min-width: 0; }
.message-header { display: flex; align-items: baseline; margin-bottom: 2px; }
.message-sender { font-weight: 300; color: var(--text-bright); margin-right: 8px; cursor: pointer; }
.message-sender:hover { text-decoration: underline; }
.message-time { color: var(--text-faint); font-size: 12px; }
.message-time-hover { position: absolute; left: 4px; top: 2px; color: var(--text-faint); font-size: 11px; opacity: 0; transition: opacity 0.1s ease; pointer-events: none; white-space: nowrap; }
.message-grouped:hover .message-time-hover { opacity: 1; }
.message-content { background: transparent; padding: 0; border-radius: 0; border-left: none; word-wrap: break-word; color: var(--text-primary); font-size: 16px; line-height: 1.375; margin-top: 2px; }
.message-content img.emoji { width: 1.2em; height: 1.2em; vertical-align: -0.2em; display: inline; }
.message-content a:not([data-mention]) { color: var(--link); text-decoration: none; word-break: break-all; }
.message-content a:not([data-mention]):hover { text-decoration: underline; }
.message-content code { background: var(--bg-code); border: 1px solid var(--border-primary); border-radius: 3px; padding: 0 4px; font-family: 'Consolas','Monaco',monospace; font-size: 14px; color: var(--text-primary); }
.message-content pre { border: 1px solid var(--border-primary); border-radius: 4px; margin: 4px 0; overflow-x: auto; }
.message-content pre code { border: none; padding: 8px 12px; font-size: 13px; border-radius: 4px; display: block; }
.message-content h1 { font-size: 22px; margin: 6px 0 0; }
.message-content h2 { font-size: 18px; margin: 4px 0 0; }
.message-content h3 { font-size: 15px; margin: 2px 0 0; }
.message-content ul, .message-content ol { padding-left: 20px; margin: 8px 0 0; }
.message-content blockquote { border-left: 3px solid var(--bg-active); margin: 2px 0; padding-left: 10px; color: var(--text-muted); }
.message-content .spoiler { background: var(--bg-tertiary); color: transparent; border-radius: 3px; padding: 0 3px; cursor: pointer; transition: all 0.1s ease; user-select: none; }
.message-content .spoiler.revealed { background: var(--bg-input); color: inherit; user-select: text; }
.message-edited { font-size: 11px; color: var(--text-faint); margin-left: 4px; }
.message-link { color: var(--link); text-decoration: none; word-break: break-all; }
.message-link:hover { text-decoration: underline; }
/* Mentions */
.message-mention { background: var(--mention-bg); border-left: 2px solid var(--mention-border); padding-left: 14px; }
.message-mention:hover { background: var(--mention-bg-hover); }
.message-content a[data-mention] { color: var(--mention-tag-text); background: var(--mention-tag-bg); border-radius: 3px; padding: 0 3px; text-decoration: none; cursor: pointer; pointer-events: auto; font-weight: 500; }
.message-content a[data-mention]:hover { background: var(--accent-muted3); color: var(--text-bright); }
.message-mention .message-content a[data-mention] { color: var(--mention-tag-gold-text); background: var(--mention-tag-gold-bg); }
.message-mention .message-content a[data-mention]:hover { background: rgba(250, 168, 26, 0.45); }
/* ============================================================
AVATARS
============================================================ */
.message-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; position: relative; }
.message-avatar img, .member-avatar img, .dm-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.dm-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--text-bright); flex-shrink: 0; font-size: 14px; overflow: hidden; }
.avatar-fallback { width: 100%; height: 100%; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; color: var(--text-bright); font-weight: 600; font-size: 16px; }
/* ============================================================
MESSAGE ACTIONS
============================================================ */
.message-actions { position: absolute; top: -16px; right: 16px; background: var(--bg-secondary); border: 1px solid var(--border-primary); border-radius: 6px; display: none; align-items: center; gap: 2px; padding: 2px 4px; box-shadow: var(--shadow-sm); z-index: 100; }
.message:hover .message-actions, .message-grouped:hover .message-actions { display: flex; }
.message-action-btn { width: 28px; height: 28px; background: transparent; border: none; color: var(--text-muted); border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.1s ease; }
.message-action-btn:hover { background: var(--bg-primary); color: var(--text-primary); }
.message-action-btn.action-danger:hover { background: var(--danger-muted); color: var(--danger); }
@keyframes messageHighlight { 0% { background: var(--accent-muted3); } 100% { background: transparent; } }
.message-highlight { animation: messageHighlight 2s ease-out forwards; border-radius: 4px; }
/* ============================================================
REPLY
============================================================ */
.reply-bar { padding: 8px 16px 6px; background: var(--bg-secondary); border-radius: 6px 6px 0 0; border-bottom: 2px solid var(--bg-input); }
.reply-bar-inner { display: flex; align-items: center; justify-content: space-between; }
.reply-bar-left { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; }
.reply-bar-icon { color: var(--text-muted); flex-shrink: 0; }
.reply-bar-text { font-size: 13px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.reply-bar-text strong { color: var(--text-bright); }
.reply-bar-preview { font-size: 13px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-bar-close { background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: 16px; padding: 2px 4px; border-radius: 3px; flex-shrink: 0; }
.reply-bar-close:hover { color: var(--text-primary); }
.reply-quote { display: flex; align-items: center; gap: 4px; padding-left: 52px; margin-bottom: 4px; cursor: pointer; max-width: 100%; overflow: hidden; position: relative; }
.reply-quote:hover .reply-preview, .reply-quote:hover .reply-sender { opacity: 0.8; }
.reply-line { position: absolute; left: 26px; top: 50%; width: 18px; height: 14px; border-left: 2px solid var(--bg-active); border-top: 2px solid var(--bg-active); border-top-left-radius: 6px; pointer-events: none; }
.reply-avatar { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.reply-avatar-letter { background: var(--accent); color: var(--text-bright); font-size: 8px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.reply-sender { font-size: 13px; font-weight: 500; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.reply-preview { font-size: 13px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ============================================================
EDIT BOX
============================================================ */
.edit-box { margin-top: 4px; }
.edit-input { width: 100%; background: var(--bg-input); border: 1px solid var(--accent); border-radius: 6px; color: var(--text-primary); font-size: 15px; font-family: 'Rubik', sans-serif; padding: 10px 12px; resize: none; outline: none; line-height: 1.375; min-height: 44px; max-height: 200px; overflow-y: auto; box-sizing: border-box; }
.edit-hint { font-size: 12px; color: var(--text-faint); margin-top: 4px; padding-left: 2px; }
.edit-cancel-link, .edit-save-link { color: var(--link); cursor: pointer; }
.edit-cancel-link:hover, .edit-save-link:hover { text-decoration: underline; }
/* ============================================================
REACTIONS
============================================================ */
.reactions-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 0 2px; margin-left: 52px; }
.message-grouped .reactions-bar { margin-left: 0; }
.reaction-pill { display: flex; align-items: center; gap: 8px; padding: 4px 8px; background: var(--reaction-bg); border: 1px solid var(--reaction-border); border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text-muted); transition: all 0.1s ease; }
.reaction-pill:hover { background: var(--reaction-bg-hover); border-color: var(--accent); }
.reaction-pill.reaction-mine { background: var(--reaction-mine-bg); border-color: var(--accent); color: var(--reaction-mine-text); }
.reaction-pill.reaction-mine:hover { background: var(--accent-muted3); }
.reaction-emoji { font-size: 15px; line-height: 1; }
.reaction-emoji img { width: 16px; height: 16px; }
.reaction-count { font-size: 14px; font-weight: 600; }
/* ============================================================
MESSAGE INPUT
============================================================ */
.message-input-container { padding: 0 16px 3px 16px; background: var(--bg-primary); display: flex; flex-direction: column; }
#message-form { display: flex; background: var(--bg-input); border-radius: 8px; padding: 4px 8px; width: 100%; align-items: center; gap: 2px; }
#message-form button[type="submit"] { display: none; }
#message-input { flex: 1; padding: 11px 8px; background: transparent; border: none; color: var(--text-primary); font-size: 15px; width: 100%; min-width: 0; font-family: 'Rubik', sans-serif; resize: none; overflow-y: hidden; max-height: 200px; line-height: 1.375; }
#message-input::placeholder { color: var(--text-faint); }
#message-input:focus { outline: none; }
.attach-btn { width: 36px; height: 36px; background: transparent; border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.15s ease; flex-shrink: 0; padding: 0; }
.attach-btn:hover { color: var(--text-primary); }
.attach-btn svg { width: 22px; height: 22px; }
.input-actions-right { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
/* ============================================================
IMAGES
============================================================ */
.message-image-container { margin-top: 4px; max-width: 400px; }
.message-image { max-width: 100%; height: auto; border-radius: 4px; cursor: pointer; transition: all 0.1s ease; }
.message-image:active { transform: scale(0.98); }
.image-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); display: flex; align-items: center; justify-content: center; z-index: 9999; cursor: pointer; }
.image-lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; }
/* ============================================================
STATUS ROW
============================================================ */
.status-row { display: flex; justify-content: space-between; align-items: center; padding: 2px 16px 4px; min-height: 24px; }
.typing-indicator { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.typing-dots { display: flex; gap: 3px; align-items: center; }
.typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: typingPulse 1.4s ease-in-out infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
.receipts-bar { display: flex; justify-content: flex-end; align-items: center; }
.receipts-stack { display: flex; flex-direction: row; cursor: pointer; align-items: center; gap: 2px; }
.receipt-avatar { width: 20px; height: 20px; min-width: 20px; border-radius: 50%; border: 2px solid var(--bg-primary); margin-left: -4px; font-size: 8px; font-weight: 600; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--text-bright); }
.receipt-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.receipt-more { background: var(--bg-active); color: var(--text-bright); display: flex; align-items: center; justify-content: center; font-size: 7px; }
.receipt-popup { background: var(--bg-secondary); border: 1px solid var(--border-primary); border-radius: 6px; box-shadow: var(--shadow-md); z-index: 2000; min-width: 180px; overflow: hidden; }
.receipt-popup-title { padding: 8px 12px 4px; font-size: 11px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.6px; }
.receipt-popup-list { max-height: 160px; overflow-y: auto; }
.receipt-popup-item { display: flex; align-items: center; gap: 8px; padding: 6px 12px; cursor: pointer; transition: background 0.1s; }
.receipt-popup-item:hover { background: var(--bg-input); }
.receipt-popup-avatar { width: 24px; height: 24px; border-radius: 50%; font-size: 10px; font-weight: 600; flex-shrink: 0; overflow: hidden; }
.receipt-popup-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
/* ============================================================
MEMBERS SIDEBAR
============================================================ */
.members-sidebar { width: 240px; background: var(--bg-secondary); display: flex; flex-direction: column; flex-shrink: 0; }
.members-header { padding: 12px 16px; border-bottom: 1px solid var(--border-secondary); display: flex; justify-content: space-between; align-items: center; height: 48px; }
.members-header h3 { color: var(--text-bright); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin: 0; }
.members-list { flex: 1; overflow-y: auto; padding: 0; border-left: 1px solid var(--border-tertiary); position: relative; }
.member-item { padding: 1px 8px; display: flex; align-items: center; gap: 8px; border-radius: 4px; transition: background 0.17s ease; margin-bottom: 1px; cursor: pointer; height: 42px; }
.member-item:hover { background: var(--bg-hover); }
.member-item.profile-open { background: var(--bg-active); }
.member-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--text-bright); flex-shrink: 0; font-size: 14px; position: relative; }
.member-avatar::after { content: ""; position: absolute; bottom: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--status-online); border: 2px solid var(--bg-secondary); display: none; }
.member-item.online .member-avatar::after { display: block; }
.member-item.idle .member-avatar::after { display: block; background: var(--status-idle); }
.member-info { flex: 1; min-width: 0; }
.member-name { color: var(--text-muted); font-size: 14px; font-weight: 300; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ============================================================
PINNED MESSAGES
============================================================ */
.pinned-popup { background: var(--bg-secondary); border: 1px solid var(--border-primary); border-radius: 8px; box-shadow: var(--shadow-lg); width: 480px; max-height: 600px; display: flex; flex-direction: column; z-index: 2000; overflow: hidden; }
.pinned-header { display: flex; justify-content: space-between; align-items: center; padding: 14px; font-weight: 500; font-size: 17px; border-bottom: 1px solid var(--border-primary); }
.pinned-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; padding: 4px; border-radius: 4px; }
.pinned-close:hover { color: var(--text-bright); background: var(--bg-hover); }
.pinned-list { overflow-y: auto; flex: 1; padding: 8px; background-color: var(--bg-primary); }
.pinned-empty { text-align: center; color: var(--text-faint); padding: 32px; font-size: 14px; }
.pinned-item { display: flex; gap: 12px; padding: 12px; border-radius: 6px; }
.pinned-item:hover { background: var(--bg-primary); }
.pinned-item-inner { flex: 1; min-width: 0; }
.pinned-item-header { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.pinned-sender { font-weight: 300; color: var(--text-bright); cursor: pointer; font-size: 90%; }
.pinned-time { font-size: 11px; color: var(--text-faint); }
.pinned-body { font-size: 15px; color: var(--text-primary); word-break: break-word; }
.pinned-image { max-width: 300px; max-height: 200px; border-radius: 4px; margin-top: 4px; object-fit: cover; }
.pinned-divider { height: 1px; background: var(--border-primary); margin: 4px 8px; }
.pinned-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; font-size: 16px; font-weight: 600; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--text-bright); }
.pinned-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pinned-jump { margin-left: auto; background: var(--bg-active); border: none; color: var(--text-bright); font-size: 12px; padding: 2px 8px; border-radius: 4px; cursor: pointer; opacity: 0; transition: opacity 0.15s; }
.pinned-item:hover .pinned-jump { opacity: 1; }
.pinned-jump:hover { background: var(--accent); }
/* ============================================================
PROFILE POPUP
============================================================ */
.profile-popup { position: fixed; inset: 0; background: transparent; display: none; z-index: 10000; pointer-events: none; }
.profile-popup.active { display: block; pointer-events: none; }
.profile-popup-content { background: var(--profile-bg); border-radius: 8px; min-width: 300px; max-width: 450px; width: fit-content; position: absolute; overflow: hidden; box-shadow: var(--shadow-xl); animation: popIn 0.02s ease; pointer-events: auto; }
.profile-banner { width: 100%; height: 60px; background: var(--accent); position: relative; }
.profile-avatar-container { position: absolute; top: 16px; left: 16px; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--accent); border: 6px solid var(--profile-bg); display: flex; align-items: center; justify-content: center; color: var(--text-bright); font-size: 28px; font-weight: 600; overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.profile-info { padding: 52px 16px 16px 16px; background: var(--profile-info-bg); border-radius: 0 0 8px 8px; }
.profile-display-name { font-size: 20px; font-weight: 600; color: var(--text-bright); margin-bottom: 2px; white-space: nowrap; }
.profile-username { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.profile-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(0,0,0,0.3); color: var(--text-muted); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; padding: 0; }
.profile-close:hover { background: rgba(0,0,0,0.5); color: var(--text-bright); }
.profile-status-badge { position: absolute; width: 24px; height: 24px; border-radius: 50%; border: 4px solid var(--profile-bg); bottom: 0; right: 0; display: none; }
.profile-status-badge.online { display: block; background: var(--status-online); }
.profile-status-badge.idle { display: block; background: var(--status-idle); }
.profile-status-badge.offline { display: block; background: var(--status-offline); }
/* ============================================================
EMOJI & GIF PICKERS
============================================================ */
.emoji-picker { position: fixed; background: var(--bg-secondary); border: 1px solid var(--border-primary); border-radius: 10px; box-shadow: var(--shadow-lg); width: 352px; z-index: 3000; overflow: hidden; display: flex; flex-direction: column; }
.emoji-tabs { display: flex; padding: 6px 8px 0; gap: 2px; border-bottom: 1px solid var(--border-primary); overflow-x: auto; }
.emoji-tabs::-webkit-scrollbar { display: none; }
.emoji-tab { background: none; border: none; font-size: 18px; padding: 6px 8px; cursor: pointer; border-radius: 6px 6px 0 0; opacity: 0.5; transition: opacity 0.1s, background 0.1s; flex-shrink: 0; }
.emoji-tab img { width: 20px; height: 20px; pointer-events: none; }
.emoji-tab:hover { opacity: 0.8; background: var(--bg-hover); }
.emoji-tab.active { opacity: 1; background: var(--bg-active); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); max-height: 300px; overflow-y: auto; }
.emoji-btn-item { background: none; border: none; font-size: 22px; padding: 4px; cursor: pointer; border-radius: 6px; line-height: 1; transition: background 0.1s; text-align: center; }
.emoji-btn-item img { width: 18px; height: 18px; pointer-events: none; }
.emoji-btn-item:hover { background: var(--bg-active); }
.gif-picker { position: fixed; background: var(--bg-secondary); border: 1px solid var(--border-primary); border-radius: 10px; box-shadow: var(--shadow-lg); width: 320px; height: 400px; z-index: 3000; display: flex; flex-direction: column; overflow: hidden; }
.gif-search-bar { padding: 8px; border-bottom: 1px solid var(--border-primary); flex-shrink: 0; }
.gif-search-input { width: 100%; background: var(--bg-tertiary); border: 1px solid var(--border-primary); border-radius: 6px; color: var(--text-primary); font-size: 14px; font-family: 'Rubik', sans-serif; padding: 7px 10px; outline: none; }
.gif-search-input:focus { border-color: var(--accent); }
.gif-grid { flex: 1; overflow-y: auto; padding: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; align-content: start; }
.gif-item { width: 100%; height: 100px; object-fit: cover; border-radius: 4px; cursor: pointer; transition: opacity 0.15s; }
.gif-item:hover { opacity: 0.8; }
.gif-loading { grid-column: 1 / -1; text-align: center; color: var(--text-faint); font-size: 13px; padding: 20px; }
/* ============================================================
MENTION PICKER
============================================================ */
.mention-picker { position: fixed; background: var(--bg-secondary); border: 1px solid var(--border-primary); border-radius: 6px; box-shadow: var(--shadow-md); z-index: 2000; overflow: hidden; padding-bottom: 8px; }
.mention-picker-header { padding: 10px 12px 6px; font-size: 11px; font-weight: 300; color: var(--text-faint); letter-spacing: 0.6px; }
.mention-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; margin: 2px 8px; border-radius: 4px; cursor: pointer; transition: background 0.1s ease; gap: 8px; }
.mention-item:hover, .mention-item.selected { background: var(--bg-input); }
.mention-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mention-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--text-bright); flex-shrink: 0; overflow: hidden; }
.mention-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.mention-name { color: var(--text-bright); font-size: 15px; font-weight: 300; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mention-id { color: var(--text-faint); font-size: 13px; flex-shrink: 0; white-space: nowrap; }
/* ============================================================
MISC
============================================================ */
.upload-status { padding: 12px 16px; background: var(--accent-muted); border-left: 3px solid var(--accent); margin: 8px 16px; border-radius: 4px; color: var(--accent); font-size: 14px; animation: pulse 1.5s ease-in-out infinite; }
.encryption-notice { text-align: center; color: #eae9e9; font-size: 13px; font-weight: 400; padding: 12px; margin: 8px 16px; background: var(--warning-muted); border: 1px solid var(--warning-border); border-radius: 6px; }
.encryption-indicator { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.encryption-indicator.encrypted { background: var(--status-online); box-shadow: 0 0 4px rgba(67, 181, 129, 0.5); }
.encryption-indicator.unencrypted { background: var(--danger); box-shadow: 0 0 4px rgba(237, 66, 69, 0.5); }
/* ============================================================
ANIMATIONS
============================================================ */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes typingPulse { 0%, 100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes popIn { from { opacity: 0.8; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
/* ============================================================
RESPONSIVE
============================================================ */
@media (max-width: 1000px) { .members-sidebar { width: 200px; } .sidebar { width: 200px; } }
@media (max-width: 800px) { .members-sidebar { display: none !important; } }
/* ── Date Dividers ─────────────────────────────────────── */
.date-divider {
display: flex;
align-items: center;
margin: 4px 16px -8px;
gap: 12px;
user-select: none;
}
.date-divider::before,
.date-divider::after {
content: '';
flex: 1;
height: 1px;
background: var(--border-primary);
}
.date-divider-text {
font-size: 11px;
font-weight: 500;
color: var(--text-faint);
white-space: nowrap;
padding: 0 4px;
letter-spacing: 0.04em;
}