nicolaydef commited on
Commit
4a31b37
·
verified ·
1 Parent(s): c95b94f

Update static/styles.css

Browse files
Files changed (1) hide show
  1. static/styles.css +99 -18
static/styles.css CHANGED
@@ -1,18 +1,99 @@
1
- :root { --dynamic-bg-color: #4facfe; --glass-border: rgba(255, 255, 255, 0.1); --glass-bg: rgba(255, 255, 255, 0.05); }
2
- body { background: #0f0c29; font-family: 'Inter', sans-serif; transition: background 1s ease; }
3
- .background-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; filter: blur(80px); }
4
- .blob { position: absolute; border-radius: 50%; opacity: 0.6; animation: float 10s infinite ease-in-out; }
5
- .blob-1 { width: 500px; height: 500px; background: var(--dynamic-bg-color); top: -100px; left: -100px; transition: background 1s ease; }
6
- .blob-2 { width: 400px; height: 400px; background: #764ba2; bottom: -50px; right: -50px; animation-delay: 2s; }
7
- .blob-3 { width: 300px; height: 300px; background: #00f2ea; top: 40%; left: 40%; animation-delay: 4s; }
8
- @keyframes float { 0% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -50px) scale(1.1); } 66% { transform: translate(-20px, 20px) scale(0.9); } 100% { transform: translate(0, 0) scale(1); } }
9
- #particle-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
10
- .glass-panel { background: var(--glass-bg); backdrop-filter: blur(16px); border: 1px solid var(--glass-border); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); }
11
- .message { padding: 10px 16px; border-radius: 12px; max-width: 80%; animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; word-break: break-word; }
12
- .message img { max-width: 100%; border-radius: 8px; margin-top: 5px; border: 1px solid rgba(255,255,255,0.2); }
13
- .message a.file-link { display: block; margin-top: 5px; color: #00f2ea; text-decoration: underline; font-size: 0.9em; }
14
- .message.own { background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05)); align-self: flex-end; margin-left: auto; border: 1px solid rgba(255,255,255,0.2); }
15
- .message.other { background: rgba(0, 0, 0, 0.2); align-self: flex-start; margin-right: auto; border: 1px solid rgba(255,255,255,0.05); }
16
- @keyframes popIn { 0% { opacity: 0; transform: scale(0.8) translateY(10px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
17
- .custom-scrollbar::-webkit-scrollbar { width: 6px; }
18
- .custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 { font-size: 0.7rem; color: rgba(255,255,255,0.5); cursor: pointer; transition: 0.3s; }
59
+ .user-tag:hover { color: var(--accent); text-shadow: 0 0 8px var(--accent); }
60
+
61
+ /* Main Chat */
62
+ .chat-area { display: flex; flex-direction: column; position: relative; }
63
+ .chat-header {
64
+ height: 60px; border-bottom: 1px solid var(--glass-border); display: flex;
65
+ align-items: center; padding: 0 1.5rem; justify-content: space-between;
66
+ background: rgba(255,255,255,0.02);
67
+ }
68
+
69
+ .messages-container { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
70
+
71
+ /* Messages */
72
+ .message { display: flex; gap: 1rem; animation: slideIn 0.2s ease; max-width: 90%; }
73
+ .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); }
74
+ .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; }
75
+ .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; }
76
+
77
+ @keyframes slideIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
78
+
79
+ /* Modals */
80
+ .modal-overlay {
81
+ position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
82
+ z-index: 100; display: flex; justify-content: center; align-items: center;
83
+ opacity: 0; pointer-events: none; transition: 0.3s;
84
+ }
85
+ .modal-overlay.open { opacity: 1; pointer-events: all; }
86
+ .modal-box {
87
+ background: #1a1a2e; border: 1px solid var(--glass-border); padding: 2rem;
88
+ border-radius: 16px; width: 400px; box-shadow: 0 0 30px rgba(0,242,234,0.1);
89
+ transform: scale(0.9); transition: 0.3s;
90
+ }
91
+ .modal-overlay.open .modal-box { transform: scale(1); }
92
+
93
+ /* Voice Status */
94
+ .voice-status { font-size: 0.8rem; display: flex; align-items: center; gap: 5px; }
95
+ .status-dot { width: 8px; height: 8px; border-radius: 50%; background: gray; }
96
+ .status-dot.connecting { background: yellow; animation: pulse 1s infinite; }
97
+ .status-dot.connected { background: #00f2ea; box-shadow: 0 0 10px #00f2ea; }
98
+ .status-dot.error { background: var(--danger); }
99
+ @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }