nicolaydef commited on
Commit
8770bb3
·
verified ·
1 Parent(s): 3455ee3

Update static/styles.css

Browse files
Files changed (1) hide show
  1. static/styles.css +267 -75
static/styles.css CHANGED
@@ -1,124 +1,316 @@
 
 
 
1
  :root {
 
2
  --bg-primary: #0f0c29;
 
 
 
 
 
 
3
  --glass-bg: rgba(20, 20, 35, 0.6);
4
  --glass-border: rgba(255, 255, 255, 0.08);
5
- --accent: #00f2ea;
6
- --danger: #ff0055;
7
- --warning: #f1c40f; /* Yellow Beta */
8
- --sidebar-w: 280px;
 
 
 
 
 
9
  }
10
 
11
  body {
12
  background: var(--bg-primary);
13
  font-family: 'Inter', sans-serif;
14
  color: white;
15
- overflow: hidden;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  }
17
 
18
- /* Background Animation */
19
- .blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; z-index: -1; animation: float 10s infinite ease-in-out; }
20
- .blob-1 { width: 400px; height: 400px; background: #4facfe; top: -100px; left: -100px; }
21
- .blob-2 { width: 300px; height: 300px; background: #764ba2; bottom: -50px; right: -50px; animation-delay: 2s; }
 
 
 
 
22
 
23
- @keyframes float { 0% { transform: translate(0,0); } 50% { transform: translate(30px, -30px); } 100% { transform: translate(0,0); } }
 
 
 
 
24
 
25
- /* Layout Grid */
 
 
26
  .app-grid {
27
- display: grid;
28
- grid-template-columns: var(--sidebar-w) 1fr;
29
- height: 100vh;
30
- width: 100vw;
31
  }
32
 
33
- /* Sidebar */
34
- .sidebar {
35
- background: rgba(0, 0, 0, 0.3);
 
 
 
 
36
  backdrop-filter: blur(20px);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  border-right: 1px solid var(--glass-border);
38
  display: flex;
39
  flex-direction: column;
 
 
 
 
 
 
 
40
  }
41
 
42
- .channel-list { flex: 1; overflow-y: auto; padding: 1rem; }
43
  .channel-item {
44
- padding: 10px; margin-bottom: 5px; border-radius: 8px; cursor: pointer;
45
- transition: 0.2s; display: flex; align-items: center; gap: 10px;
 
 
 
 
 
 
 
 
46
  }
47
- .channel-item:hover, .channel-item.active { background: rgba(255,255,255,0.1); }
48
- .channel-item.active { border-left: 3px solid var(--accent); }
49
 
50
- /* User Mini Profile */
 
 
 
 
 
 
 
 
 
 
 
51
  .user-panel {
52
- padding: 1rem; background: rgba(0,0,0,0.4); border-top: 1px solid var(--glass-border);
53
- display: flex; align-items: center; gap: 10px;
 
 
 
 
54
  }
55
- .avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(45deg, #4facfe, #00f2ea); }
56
- .user-info { flex: 1; }
57
- .username { font-weight: bold; font-size: 0.9rem; }
 
 
 
 
58
  .user-tag {
59
- font-size: 0.6rem; /* Маленький шрифт */
60
- font-weight: 700; /* Жирный */
61
- letter-spacing: 1px;
62
  text-transform: uppercase;
63
 
64
- /* Делаем "нормальную" кнопку */
65
  color: rgba(255, 255, 255, 0.9);
66
- background: rgba(0, 0, 0, 0.3); /* Темный фон */
67
- border: 1px solid rgba(255, 255, 255, 0.2); /* Четкая рамка */
68
- padding: 4px 8px; /* Отступы внутри */
69
- border-radius: 4px; /* Скругление */
70
 
71
  cursor: pointer;
72
  transition: all 0.2s ease-in-out;
73
  display: inline-block;
74
- margin-top: 6px;
 
75
  }
76
 
77
  .user-tag:hover {
78
- /* При наведении - яркая вспышка */
79
- background: var(--accent); /* Голубой фон */
80
- color: black; /* Черный текст для контраста */
81
- border-color: var(--accent);
82
- box-shadow: 0 0 15px rgba(0, 242, 234, 0.5); /* Неоновое свечение */
83
  transform: translateY(-1px);
84
  }
85
 
86
- /* Main Chat */
87
- .chat-area { display: flex; flex-direction: column; position: relative; }
88
- .chat-header {
89
- height: 60px; border-bottom: 1px solid var(--glass-border); display: flex;
90
- align-items: center; padding: 0 1.5rem; justify-content: space-between;
91
- background: rgba(255,255,255,0.02);
 
 
 
92
  }
93
 
94
- .messages-container { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
95
-
96
- /* Messages */
97
- .message { display: flex; gap: 1rem; animation: slideIn 0.2s ease; max-width: 90%; }
98
- .message-content { background: rgba(255,255,255,0.05); padding: 10px 15px; border-radius: 0 12px 12px 12px; border: 1px solid rgba(255,255,255,0.05); }
99
- .message.system { align-self: center; opacity: 0.7; font-size: 0.8rem; border: 1px solid var(--danger); background: rgba(255, 0, 85, 0.1); border-radius: 8px; padding: 5px 10px; }
100
- .badge-beta { background: var(--warning); color: black; font-size: 0.6rem; padding: 1px 4px; border-radius: 4px; font-weight: bold; margin-left: 5px; vertical-align: middle; }
 
 
 
101
 
102
- @keyframes slideIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
 
 
 
 
 
 
103
 
104
- /* Modals */
 
 
105
  .modal-overlay {
106
- position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
107
- z-index: 100; display: flex; justify-content: center; align-items: center;
108
- opacity: 0; pointer-events: none; transition: 0.3s;
 
 
 
 
 
 
 
 
109
  }
110
- .modal-overlay.open { opacity: 1; pointer-events: all; }
 
 
 
 
 
111
  .modal-box {
112
- background: #1a1a2e; border: 1px solid var(--glass-border); padding: 2rem;
113
- border-radius: 16px; width: 400px; box-shadow: 0 0 30px rgba(0,242,234,0.1);
114
- transform: scale(0.9); transition: 0.3s;
115
- }
116
- .modal-overlay.open .modal-box { transform: scale(1); }
117
-
118
- /* Voice Status */
119
- .voice-status { font-size: 0.8rem; display: flex; align-items: center; gap: 5px; }
120
- .status-dot { width: 8px; height: 8px; border-radius: 50%; background: gray; }
121
- .status-dot.connecting { background: yellow; animation: pulse 1s infinite; }
122
- .status-dot.connected { background: #00f2ea; box-shadow: 0 0 10px #00f2ea; }
123
- .status-dot.error { background: var(--danger); }
124
- @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* =========================================
2
+ 1. VARIABLES & BASE SETUP
3
+ ========================================= */
4
  :root {
5
+ /* Colors */
6
  --bg-primary: #0f0c29;
7
+ --accent-cyan: #00f2ea;
8
+ --accent-blue: #4facfe;
9
+ --accent-red: #ff0055;
10
+ --accent-green: #22c55e;
11
+
12
+ /* Glass Effect */
13
  --glass-bg: rgba(20, 20, 35, 0.6);
14
  --glass-border: rgba(255, 255, 255, 0.08);
15
+ --glass-highlight: rgba(255, 255, 255, 0.1);
16
+
17
+ /* Layout */
18
+ --nav-width: 70px;
19
+ --sidebar-width: 260px;
20
+ }
21
+
22
+ * {
23
+ box-sizing: border-box;
24
  }
25
 
26
  body {
27
  background: var(--bg-primary);
28
  font-family: 'Inter', sans-serif;
29
  color: white;
30
+ margin: 0;
31
+ padding: 0;
32
+ overflow: hidden; /* App-like feel */
33
+ height: 100vh;
34
+ width: 100vw;
35
+ }
36
+
37
+ /* =========================================
38
+ 2. BACKGROUND ANIMATIONS
39
+ ========================================= */
40
+ .blob {
41
+ position: absolute;
42
+ border-radius: 50%;
43
+ filter: blur(80px);
44
+ opacity: 0.5;
45
+ z-index: -1;
46
+ animation: float 10s infinite ease-in-out;
47
+ }
48
+
49
+ .blob-1 {
50
+ width: 500px;
51
+ height: 500px;
52
+ background: var(--accent-blue);
53
+ top: -100px;
54
+ left: -100px;
55
  }
56
 
57
+ .blob-2 {
58
+ width: 400px;
59
+ height: 400px;
60
+ background: #764ba2;
61
+ bottom: -50px;
62
+ right: -50px;
63
+ animation-delay: 2s;
64
+ }
65
 
66
+ @keyframes float {
67
+ 0% { transform: translate(0, 0); }
68
+ 50% { transform: translate(30px, -30px); }
69
+ 100% { transform: translate(0, 0); }
70
+ }
71
 
72
+ /* =========================================
73
+ 3. LAYOUT GRID
74
+ ========================================= */
75
  .app-grid {
76
+ display: flex;
77
+ height: 100%;
78
+ width: 100%;
 
79
  }
80
 
81
+ /* =========================================
82
+ 4. NAVIGATION RAIL (Leftmost Strip)
83
+ ========================================= */
84
+ nav {
85
+ width: var(--nav-width);
86
+ background: rgba(0, 0, 0, 0.4);
87
+ border-right: 1px solid var(--glass-border);
88
  backdrop-filter: blur(20px);
89
+ display: flex;
90
+ flex-direction: column;
91
+ align-items: center;
92
+ padding-top: 20px;
93
+ gap: 15px;
94
+ z-index: 20;
95
+ }
96
+
97
+ .nav-btn {
98
+ width: 48px;
99
+ height: 48px;
100
+ border-radius: 14px;
101
+ display: flex;
102
+ align-items: center;
103
+ justify-content: center;
104
+ color: rgba(255, 255, 255, 0.4);
105
+ transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
106
+ cursor: pointer;
107
+ border: none;
108
+ background: transparent;
109
+ }
110
+
111
+ .nav-btn:hover {
112
+ background: rgba(255, 255, 255, 0.1);
113
+ color: white;
114
+ transform: translateY(-2px);
115
+ }
116
+
117
+ .nav-btn.active {
118
+ background: var(--accent-cyan);
119
+ color: #000;
120
+ box-shadow: 0 0 20px rgba(0, 242, 234, 0.4);
121
+ }
122
+
123
+ /* =========================================
124
+ 5. SIDEBAR (Channels / Friends)
125
+ ========================================= */
126
+ .sidebar {
127
+ width: var(--sidebar-width);
128
+ background: rgba(0, 0, 0, 0.2);
129
  border-right: 1px solid var(--glass-border);
130
  display: flex;
131
  flex-direction: column;
132
+ transition: width 0.3s ease;
133
+ }
134
+
135
+ .channel-list {
136
+ flex: 1;
137
+ overflow-y: auto;
138
+ padding: 10px;
139
  }
140
 
 
141
  .channel-item {
142
+ padding: 10px 12px;
143
+ margin-bottom: 4px;
144
+ border-radius: 8px;
145
+ cursor: pointer;
146
+ transition: 0.2s;
147
+ display: flex;
148
+ align-items: center;
149
+ gap: 10px;
150
+ color: rgba(255, 255, 255, 0.6);
151
+ font-size: 0.95rem;
152
  }
 
 
153
 
154
+ .channel-item:hover {
155
+ background: rgba(255, 255, 255, 0.05);
156
+ color: white;
157
+ }
158
+
159
+ .channel-item.active {
160
+ background: rgba(255, 255, 255, 0.1);
161
+ color: white;
162
+ border-left: 3px solid var(--accent-cyan);
163
+ }
164
+
165
+ /* User Profile Panel (Bottom of Sidebar) */
166
  .user-panel {
167
+ padding: 12px;
168
+ background: rgba(0, 0, 0, 0.3);
169
+ border-top: 1px solid var(--glass-border);
170
+ display: flex;
171
+ align-items: center;
172
+ gap: 10px;
173
  }
174
+
175
+ .user-info {
176
+ flex: 1;
177
+ overflow: hidden;
178
+ }
179
+
180
+ /* === ADMIN ACCESS BUTTON (The "Chip") === */
181
  .user-tag {
182
+ font-size: 0.6rem;
183
+ font-weight: 800;
184
+ letter-spacing: 0.05em;
185
  text-transform: uppercase;
186
 
187
+ /* Visuals */
188
  color: rgba(255, 255, 255, 0.9);
189
+ background: rgba(0, 0, 0, 0.4);
190
+ border: 1px solid rgba(255, 255, 255, 0.2);
191
+ padding: 4px 8px;
192
+ border-radius: 6px;
193
 
194
  cursor: pointer;
195
  transition: all 0.2s ease-in-out;
196
  display: inline-block;
197
+ margin-top: 4px;
198
+ user-select: none;
199
  }
200
 
201
  .user-tag:hover {
202
+ background: var(--accent-cyan);
203
+ color: #000;
204
+ border-color: var(--accent-cyan);
205
+ box-shadow: 0 0 15px rgba(0, 242, 234, 0.6);
 
206
  transform: translateY(-1px);
207
  }
208
 
209
+ /* =========================================
210
+ 6. MAIN CHAT AREA
211
+ ========================================= */
212
+ .chat-area {
213
+ flex: 1;
214
+ display: flex;
215
+ flex-direction: column;
216
+ position: relative;
217
+ background: rgba(0, 0, 0, 0.1);
218
  }
219
 
220
+ .chat-header {
221
+ height: 64px;
222
+ border-bottom: 1px solid var(--glass-border);
223
+ display: flex;
224
+ align-items: center;
225
+ justify-content: space-between;
226
+ padding: 0 24px;
227
+ background: rgba(255, 255, 255, 0.02);
228
+ backdrop-filter: blur(10px);
229
+ }
230
 
231
+ .messages-container {
232
+ flex: 1;
233
+ overflow-y: auto;
234
+ padding: 20px 24px;
235
+ display: flex;
236
+ flex-direction: column;
237
+ }
238
 
239
+ /* =========================================
240
+ 7. MODALS (Login, Admin, Settings)
241
+ ========================================= */
242
  .modal-overlay {
243
+ position: fixed;
244
+ inset: 0;
245
+ background: rgba(0, 0, 0, 0.85);
246
+ backdrop-filter: blur(12px);
247
+ z-index: 100;
248
+ display: flex;
249
+ justify-content: center;
250
+ align-items: center;
251
+ opacity: 0;
252
+ pointer-events: none;
253
+ transition: opacity 0.3s ease;
254
  }
255
+
256
+ .modal-overlay.open {
257
+ opacity: 1;
258
+ pointer-events: all;
259
+ }
260
+
261
  .modal-box {
262
+ background: #151520;
263
+ border: 1px solid var(--glass-border);
264
+ padding: 2.5rem;
265
+ border-radius: 20px;
266
+ width: 400px;
267
+ max-width: 90%;
268
+ box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
269
+ transform: scale(0.95);
270
+ transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
271
+ }
272
+
273
+ .modal-overlay.open .modal-box {
274
+ transform: scale(1);
275
+ }
276
+
277
+ /* Admin Specifics */
278
+ #admin-modal .modal-box {
279
+ border-color: rgba(255, 0, 85, 0.3);
280
+ box-shadow: 0 0 30px rgba(255, 0, 85, 0.1);
281
+ }
282
+
283
+ /* =========================================
284
+ 8. UTILITIES & ANIMATIONS
285
+ ========================================= */
286
+
287
+ /* Voice Status Dots */
288
+ .status-dot {
289
+ width: 8px;
290
+ height: 8px;
291
+ border-radius: 50%;
292
+ background: #666;
293
+ }
294
+ .status-dot.connecting { background: #fbbf24; animation: pulse 1s infinite; }
295
+ .status-dot.connected { background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }
296
+ @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }
297
+
298
+ /* Custom Scrollbar */
299
+ .custom-scrollbar::-webkit-scrollbar {
300
+ width: 6px;
301
+ }
302
+ .custom-scrollbar::-webkit-scrollbar-track {
303
+ background: transparent;
304
+ }
305
+ .custom-scrollbar::-webkit-scrollbar-thumb {
306
+ background: rgba(255, 255, 255, 0.1);
307
+ border-radius: 3px;
308
+ }
309
+ .custom-scrollbar::-webkit-scrollbar-thumb:hover {
310
+ background: rgba(255, 255, 255, 0.2);
311
+ }
312
+
313
+ /* Input Focus Glow */
314
+ input:focus {
315
+ box-shadow: 0 0 0 2px rgba(0, 242, 234, 0.2);
316
+ }