Spaces:
Sleeping
Sleeping
Update static/styles.css
Browse files- static/styles.css +99 -18
static/styles.css
CHANGED
|
@@ -1,18 +1,99 @@
|
|
| 1 |
-
:root {
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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; } }
|