-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
728 lines (652 loc) · 18.5 KB
/
style.css
File metadata and controls
728 lines (652 loc) · 18.5 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
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
/*
* @file style.css
* @description Global styles for the AirChat application, including base typography,
* layout helpers, and custom component styles not directly covered by Tailwind CSS.
* This file consolidates all custom CSS from various HTML snippets provided.
*/
/* --- Base Styles --- */
body {
font-family: 'Inter', sans-serif; /* Consistent font across the app */
direction: rtl; /* Right-to-left for Arabic language support */
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-font-smoothing: antialiased; /* Smoother font rendering */
-moz-osx-font-smoothing: grayscale; /* Smoother font rendering */
transition: background-color 0.3s ease, color 0.3s ease; /* Smooth dark mode transition */
}
/* Ensure all elements inherit box-sizing for consistent layout */
*, *::before, *::after {
box-sizing: inherit;
}
/* --- Utility Classes (can be complemented by Tailwind) --- */
.container {
padding: 20px;
max-width: 1200px; /* Max width for content containers */
margin-left: auto;
margin-right: auto;
}
/* =================================
Unified Button System
================================= */
/* Base button style */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.8rem 1.5rem;
border-radius: 1.5rem;
font-size: 1rem;
font-weight: 700;
border: none;
cursor: pointer;
transition: all 0.3s ease;
text-shadow: 0 1px 3px rgba(0,0,0,0.2);
box-shadow: 0 4px 10px rgba(0,0,0,0.3);
min-height: 48px; /* For mobile touch targets */
}
.btn:hover {
transform: translateY(-3px);
box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}
.btn:active {
transform: translateY(-1px);
box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
/* Primary Button (Cyan/Blue Gradient) */
.btn-primary {
background: linear-gradient(45deg, #00E5FF, #007ACC);
color: white;
}
.btn-primary:hover {
background: linear-gradient(45deg, #00F0FF, #0088DD);
}
/* Success Button (Green Gradient) */
.btn-success {
background: linear-gradient(45deg, #34D399, #10B981);
color: white;
}
.btn-success:hover {
background: linear-gradient(45deg, #4ADE80, #22C55E);
}
/* Danger Button (Red Gradient) */
.btn-danger {
background: linear-gradient(45deg, #EF4444, #DC2626);
color: white;
}
.btn-danger:hover {
background: linear-gradient(45deg, #F87171, #EF4444);
}
/* Purple Button */
.btn-purple {
background: linear-gradient(45deg, #8B5CF6, #6D28D9);
color: white;
}
.btn-purple:hover {
background: linear-gradient(45deg, #A78BFA, #8B5CF6);
}
/* =================================
Unified Panel & Popup System
================================= */
/* Base panel style (from index.html's .glass-panel) */
.panel {
background-color: rgba(255, 255, 255, 0.03);
backdrop-filter: blur(70px) saturate(400%);
border: 2px solid rgba(255, 255, 255, 0.15);
border-radius: 3.5rem;
box-shadow: 0 50px 150px 0 rgba(0, 0, 0, 1.5);
transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1.2);
position: relative;
overflow: hidden;
}
.panel:hover {
transform: translateY(-8px);
box-shadow: 0 60px 180px 0 rgba(0, 0, 0, 1.8);
}
.panel::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(45deg, rgba(0, 255, 255, 0.05), rgba(150, 0, 255, 0.05));
opacity: 0.8;
z-index: -1;
filter: blur(5px);
}
/* Input and Textarea base styles */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
background-color: #ffffff; /* White background for light mode */
border: 1px solid #e5e7eb; /* Light gray border */
border-radius: 0.75rem; /* Rounded corners */
color: #333; /* Dark text for light mode */
padding: 1rem;
font-size: 1rem;
outline: none;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
text-align: right; /* Default for Arabic input */
}
input:focus,
textarea:focus,
select:focus {
border-color: #4f46e5; /* Primary purple border on focus */
box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2); /* Subtle shadow on focus */
}
/* --- Dark Mode Styles --- */
/* These styles will override light mode styles when 'dark-mode' class is applied to body */
body.dark-mode {
background-color: #1a1a1a !important; /* Dark background */
color: #f0f0f0 !important; /* Light text */
}
body.dark-mode .bg-white { /* Ensure white backgrounds also turn dark */
background-color: #2a2a2a !important;
}
body.dark-mode .text-gray-800,
body.dark-mode .text-gray-600,
body.dark-mode .text-gray-500 {
color: #e0e0e0 !important; /* Lighter text for dark mode */
}
body.dark-mode button {
background-color: #3a3a3a !important; /* Darker buttons */
color: #f0f0f0 !important; /* Lighter text on buttons */
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4) !important;
}
body.dark-mode button:hover {
background-color: #4a4a4a !important;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5) !important;
}
body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="password"],
body.dark-mode textarea,
body.dark-mode select {
background-color: #2c2c2c !important; /* Darker input background */
color: #f0f0f0 !important; /* Lighter input text */
border: 1px solid #444 !important; /* Darker border */
}
body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
border-color: #6a6a6a !important; /* Lighter border on focus */
box-shadow: 0 0 0 2px rgba(100, 100, 100, 0.3) !important; /* Darker shadow on focus */
}
/* Specific component styles (from various HTML snippets) */
/* --- Mic Circle (for room.html) --- */
.mic-circle {
width: 80px; /* Larger size for better tap target */
height: 80px;
border-radius: 50%;
background: radial-gradient(#00e5ff, #007acc); /* Blue gradient */
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 0 15px rgba(0, 229, 255, 0.5); /* Glowing effect */
position: relative; /* For badges/status */
cursor: grab;
transition: all 0.3s ease;
flex-shrink: 0; /* Prevent shrinking in flex containers */
}
.mic-circle:hover {
transform: scale(1.05);
box-shadow: 0 0 20px rgba(0, 229, 255, 0.7);
}
.mic-circle.active {
box-shadow: 0 0 0 5px #00e676, 0 0 20px #00e676; /* Green glow for active mic */
animation: pulse-mic 1s infinite;
}
@keyframes pulse-mic {
0% { box-shadow: 0 0 0 5px #00e676; }
50% { box-shadow: 0 0 0 10px #00e676; }
100% { box-shadow: 0 0 0 5px #00e676; }
}
.mic-circle.muted {
filter: grayscale(100%);
opacity: 0.6;
border: 2px dashed red;
}
.mic-circle.admin::after {
content: "👑"; /* Crown for admin */
position: absolute;
top: -10px;
right: -10px;
font-size: 20px;
z-index: 10;
}
.mic-circle.moderator::after {
content: "🛡️"; /* Shield for moderator */
position: absolute;
top: -10px;
right: -5px;
font-size: 24px;
z-index: 10;
}
.mic-circle.vip {
border: 3px solid gold !important;
box-shadow: 0 0 10px gold !important;
}
.mic-circle.king-glow {
color: gold !important;
text-shadow: 0 0 8px gold, 0 0 12px orange;
font-weight: bold;
}
/* User status indicator on mic circles */
.user-status {
position: absolute;
bottom: 4px;
right: 4px;
width: 15px; /* Larger status indicator */
height: 15px;
border-radius: 50%;
border: 2px solid white;
z-index: 5;
}
.online {
background-color: #28a745; /* Green for online */
}
.offline {
background-color: #6c757d; /* Gray for offline */
}
/* --- Chat Box Styles (for room.html) --- */
.chat-box {
background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
border-radius: 1.5rem;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
padding: 1.5rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
overflow-y: auto; /* Scroll for messages */
max-height: 300px; /* Max height for chat history */
color: #333; /* Default text color for chat messages */
}
.chat-message {
background-color: #f0f2f5; /* Light background for messages */
padding: 0.75rem 1rem;
border-radius: 0.75rem;
word-wrap: break-word; /* Break long words */
max-width: 95%; /* Limit message width */
align-self: flex-start; /* Default alignment */
}
.chat-message strong {
color: #4f46e5; /* Username color */
}
.chat-message.system {
font-style: italic;
color: #6b7280;
text-align: center;
background-color: #e5e7eb;
}
.chat-message.bot {
background-color: #eef0f4;
border-left: 4px solid #3498db;
padding: 0.75rem 1rem;
margin: 0.5rem 0;
border-radius: 0.75rem;
}
.chat-message.private {
background-color: #ffe0b2; /* Light orange for private messages */
border-left: 4px solid #ff9800;
}
/* --- Popups and Modals --- */
.popup {
/* Inherits from .panel */
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 10000;
display: none; /* Hidden by default */
text-align: center;
max-width: 90%;
width: 400px; /* Default width */
padding: 2.5rem; /* Default padding */
animation: fadeIn 0.3s ease-out;
}
.popup.show {
display: block;
}
@keyframes fadeIn {
from { opacity: 0; transform: translate(-50%, -60%); }
to { opacity: 1; transform: translate(-50%, -50%); }
}
/* --- Gift Animation --- */
.gift-animation {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 60px;
animation: pop 1s ease-out forwards;
z-index: 9999;
pointer-events: none; /* Allows clicks to pass through */
}
@keyframes pop {
0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.5; }
50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
/* --- Toast Notifications --- */
#toast {
visibility: hidden;
min-width: 280px;
background-color: #333;
color: #fff;
text-align: center;
border-radius: 10px;
padding: 12px;
position: fixed;
z-index: 9999;
left: 50%;
transform: translateX(-50%);
bottom: 30px;
font-size: 1rem;
box-shadow: 0 0 15px rgba(0,0,0,0.3);
transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
opacity: 0;
}
#toast.show {
visibility: visible;
opacity: 1;
transition: opacity 0.5s ease-in-out;
}
/* --- Specific Room Elements (from room.html) --- */
#room-container {
width: 100vw;
height: 100vh;
background-size: cover;
background-position: center;
display: flex;
flex-direction: column;
justify-content: flex-end; /* Pushes chat box to bottom */
align-items: center;
position: relative;
overflow: hidden; /* Hide overflow from draggable elements */
}
#controls {
position: absolute;
top: 20px;
left: 20px;
background-color: rgba(255, 255, 255, 0.8);
padding: 15px;
border-radius: 1rem;
display: flex;
gap: 15px;
z-index: 100;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
flex-wrap: wrap; /* Allow wrapping */
}
#chat-input-container {
display: flex;
width: 95%;
max-width: 500px;
margin-bottom: 20px;
gap: 0.75rem;
}
/* Mic Grid for room.html (the "غراف" layout) */
.mic-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* Responsive grid */
gap: 1.5rem;
padding: 20px;
justify-content: center;
align-items: center;
width: 100%;
max-width: 900px; /* Max width for the grid */
margin-top: 20px; /* Space from top controls */
margin-bottom: 20px; /* Space from chat */
}
/* --- Other specific elements --- */
.stats, #stayTimer, #entryLog, #pinnedMessage, #online-counter,
#moderatorList, #userDisplay, #topUsersList, #honorBoard, #giftCounter,
#levelDisplay, #xpCounter, #topUsersPanel, #vote-bar, #achievements-box,
#welcome-popup, #welcomeBanner, #welcome-msg, #status-bar, #clock {
background-color: rgba(255, 255, 255, 0.9);
color: #333;
padding: 15px;
border-radius: 1rem;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
z-index: 999;
}
body.dark-mode .stats,
body.dark-mode #stayTimer,
body.dark-mode #entryLog,
body.dark-mode #pinnedMessage,
body.dark-mode #online-counter,
body.dark-mode #moderatorList,
body.dark-mode #userDisplay,
body.dark-mode #topUsersList,
body.dark-mode #honorBoard,
body.dark-mode #giftCounter,
body.dark-mode #levelDisplay,
body.dark-mode #xpCounter,
body.dark-mode #topUsersPanel,
body.dark-mode #vote-bar,
body.dark-mode #achievements-box,
body.dark-mode #welcome-popup,
body.dark-mode #welcomeBanner,
body.dark-mode #welcome-msg,
body.dark-mode #status-bar,
body.dark-mode #clock {
background-color: rgba(40, 40, 40, 0.9) !important;
color: #f0f0f0 !important;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4) !important;
}
/* Specific styles for lists within panels */
#logList, #exitList, #honorList, #topUsersList ol {
list-style: none;
padding: 0;
margin: 0;
}
#logList li, #exitList li, #honorList li, #topUsersList li {
padding: 5px 0;
border-bottom: 1px solid #eee;
}
body.dark-mode #logList li, body.dark-mode #exitList li, body.dark-mode #honorList li, body.dark-mode #topUsersList li {
border-bottom-color: #333;
}
/* User profile card (from profile.html) */
.profile-container, .login-container, .settings-container {
background-color: #ffffff;
border-radius: 1.5rem;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
padding: 2.5rem;
width: 100%;
max-width: 450px;
text-align: center;
display: flex;
flex-direction: column;
gap: 1.5rem;
position: relative;
z-index: 1;
}
.profile-info {
background-color: #f9fafb;
border-radius: 1rem;
padding: 1.5rem;
text-align: right;
display: flex;
flex-direction: column;
gap: 0.75rem;
}
body.dark-mode .profile-info {
background-color: #333 !important;
}
.avatar {
width: 120px;
height: 120px;
border-radius: 50%;
object-fit: cover;
border: 4px solid #4f46e5;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
margin: 0 auto 1rem auto; /* Center avatar */
}
/* Responsive adjustments */
@media (max-width: 768px) {
#controls {
flex-direction: column;
align-items: center;
width: calc(100% - 40px); /* Full width with padding */
left: 20px;
right: 20px;
}
.mic-grid {
grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); /* Smaller mics on small screens */
gap: 1rem;
}
.mic-circle {
width: 60px;
height: 60px;
font-size: 1.5rem;
}
#chat-input-container {
width: 95%;
}
.popup {
width: 95%;
padding: 1.5rem;
}
/* Adjust fixed elements for better mobile view */
#stayTimer, #entryLog, #pinnedMessage, #online-counter,
#moderatorList, #userDisplay, #topUsersList, #honorBoard, #giftCounter,
#levelDisplay, #xpCounter, #topUsersPanel, #vote-bar, #achievements-box,
#welcome-popup, #welcomeBanner, #welcome-msg, #status-bar, #clock {
position: static !important; /* Make them flow with content */
margin: 10px auto !important;
width: 95% !important;
transform: none !important;
}
.button-link {
padding: 1rem 2rem;
font-size: 1.1rem;
}
h1 {
font-size: 2.5rem;
}
}
/* Specific styles for the "Rooms List" page */
.rooms-list-container {
background-color: #ffffff;
border-radius: 1.5rem;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
padding: 2.5rem;
width: 100%;
max-width: 600px;
text-align: center;
display: flex;
flex-direction: column;
gap: 1.5rem;
margin-top: 20px;
}
.rooms-list-container ul {
list-style: none;
padding: 0;
display: flex;
flex-direction: column;
gap: 1rem;
}
.rooms-list-container li {
background-color: #f9fafb;
padding: 1.25rem 1.5rem;
border-radius: 0.75rem;
font-size: 1.1rem;
color: #555;
display: flex;
justify-content: space-between;
align-items: center;
transition: all 0.3s ease;
cursor: pointer;
}
.rooms-list-container li:hover {
background-color: #eef2ff;
color: #4f46e5;
transform: translateX(5px);
box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}
.rooms-list-container li a {
text-decoration: none;
color: inherit;
font-weight: 500;
flex-grow: 1;
text-align: right;
}
.rooms-list-container li span {
font-size: 0.9rem;
color: #999;
margin-right: 1rem; /* Space between room name and user count */
}
body.dark-mode .rooms-list-container {
background-color: #2a2a2a;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
body.dark-mode .rooms-list-container li {
background-color: #333;
color: #e0e0e0;
}
body.dark-mode .rooms-list-container li:hover {
background-color: #444;
color: #a0a0ff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
body.dark-mode .rooms-list-container li span {
color: #bbb;
}
/* Universal Box Sizing */
*, *::before, *::after {
box-sizing: border-box;
}
/* Responsive Adjustments for a Native App-Like Feel */
@media (max-width: 768px) {
html {
font-size: 16px; /* Set a consistent root font size */
}
body {
-webkit-tap-highlight-color: transparent;
}
/* Adjust typography in room.html */
.stage-mic-slot .mic-name, .general-mic-circle .mic-name, #chat-messages {
font-size: 0.9rem; /* ~14.4px */
}
#top-bar {
font-size: 0.95rem;
}
/* Ensure touch targets are large enough (min 48x48px) in room.html */
.stage-mic-slot, .general-mic-circle, #bottom-controls .control-button, #request-mic-btn {
min-height: 48px;
}
.stage-mic-slot {
width: 100px; height: 100px;
}
.general-mic-circle {
width: 65px; height: 65px;
}
#bottom-controls .control-button {
padding-top: 8px; padding-bottom: 8px;
}
/* Adjust layout and spacing in room.html */
#stage-mics-grid {
grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
gap: 1rem;
margin-top: 70px;
}
#general-mics-grid {
grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
gap: 0.8rem;
margin-bottom: 70px;
}
#chat-box-container, #gift-panel-container, #floating-panels-container {
width: 95%;
max-width: 400px;
left: 50%;
transform: translateX(-50%);
bottom: 70px;
max-height: 50vh; /* Use viewport height */
}
#user-info-popup {
width: 90%;
}
}