Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
|
@@ -1,28 +1,95 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
font-size: 15px;
|
| 14 |
-
margin-bottom: 10px;
|
| 15 |
-
margin-top: 5px;
|
| 16 |
-
}
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
|
|
|
| 24 |
}
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
:root{
|
| 2 |
+
--bg-dark: #071029;
|
| 3 |
+
--panel-dark: #0b1220;
|
| 4 |
+
--glass: rgba(255,255,255,0.04);
|
| 5 |
+
--muted: #9aa6b2;
|
| 6 |
+
--accent: #7c3aed;
|
| 7 |
+
--accent-2:#5b21b6;
|
| 8 |
+
--success: #22c55e;
|
| 9 |
+
--danger: #ef4444;
|
| 10 |
+
--text: #e6eef8;
|
| 11 |
+
--glass-border: rgba(255,255,255,0.06);
|
| 12 |
}
|
| 13 |
|
| 14 |
+
/* Reset */
|
| 15 |
+
*{box-sizing:border-box}
|
| 16 |
+
html,body{height:100%;margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;}
|
| 17 |
+
body{background:linear-gradient(180deg,#071029 0%, #081226 100%);color:var(--text);-webkit-font-smoothing:antialiased}
|
| 18 |
|
| 19 |
+
/* Theme wrapper */
|
| 20 |
+
#root{max-width:1200px;margin:18px auto;border-radius:14px;overflow:hidden;display:flex;flex-direction:column;min-height:calc(100vh - 36px);}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
+
/* glass base */
|
| 23 |
+
.glass{
|
| 24 |
+
background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
|
| 25 |
+
border: 1px solid var(--glass-border);
|
| 26 |
+
backdrop-filter: blur(8px) saturate(120%);
|
| 27 |
+
border-radius:12px;
|
| 28 |
+
box-shadow: 0 8px 28px rgba(2,6,23,0.6);
|
| 29 |
}
|
| 30 |
|
| 31 |
+
/* Topbar */
|
| 32 |
+
.topbar{display:flex;justify-content:space-between;align-items:center;padding:14px 18px}
|
| 33 |
+
.brand{display:flex;gap:12px;align-items:center}
|
| 34 |
+
.logo{width:48px;height:48px;border-radius:12px;background:linear-gradient(135deg,var(--accent),var(--accent-2));display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700}
|
| 35 |
+
.titles .title{font-weight:700;font-size:16px}
|
| 36 |
+
.titles .subtitle{font-size:12px;color:var(--muted)}
|
| 37 |
+
.actions{display:flex;gap:12px;align-items:center}
|
| 38 |
+
.status{padding:8px 10px;border-radius:10px;font-weight:700}
|
| 39 |
+
.status.connected{background:rgba(34,197,94,0.08);color:var(--success)}
|
| 40 |
+
.status.disconnected{background:rgba(239,68,68,0.06);color:var(--danger)}
|
| 41 |
+
|
| 42 |
+
/* Layout */
|
| 43 |
+
.main{display:flex;gap:16px;padding:18px;flex:1;min-height:0}
|
| 44 |
+
.side{width:300px;padding:14px;display:flex;flex-direction:column;gap:12px}
|
| 45 |
+
.chat{flex:1;display:flex;flex-direction:column;padding:14px;min-width:0}
|
| 46 |
+
|
| 47 |
+
/* panels */
|
| 48 |
+
.panel{padding:12px;border-radius:12px}
|
| 49 |
+
.panel-head{display:flex;justify-content:space-between;gap:12px}
|
| 50 |
+
.panel-body{margin-top:12px}
|
| 51 |
+
.quick-title{font-weight:700;margin-bottom:6px}
|
| 52 |
+
.rows{display:flex;flex-direction:column;gap:8px;margin-top:8px}
|
| 53 |
+
.controls-vertical{display:flex;flex-direction:column;gap:8px;margin-top:12px}
|
| 54 |
+
|
| 55 |
+
/* messages */
|
| 56 |
+
.messages{flex:1;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:10px;background-image: linear-gradient(180deg, rgba(255,255,255,0.007) 1px, transparent 1px);background-size: 100% 56px}
|
| 57 |
+
.msg{max-width:78%;padding:10px 12px;border-radius:10px;background:rgba(255,255,255,0.02);font-size:14px;line-height:1.35;word-break:break-word}
|
| 58 |
+
.msg.system{color:var(--muted);font-weight:600;background:transparent}
|
| 59 |
+
.msg.me{margin-left:auto;background:linear-gradient(90deg, rgba(124,58,237,0.12), rgba(59,130,246,0.06));border:1px solid rgba(124,58,237,0.06)}
|
| 60 |
+
.meta{font-size:12px;color:var(--muted);margin-bottom:8px}
|
| 61 |
+
.msg .img-wrap{display:block;border-radius:8px;overflow:hidden;max-width:360px}
|
| 62 |
+
.msg img{display:block;max-width:100%;height:auto;border-radius:8px}
|
| 63 |
+
|
| 64 |
+
/* composer */
|
| 65 |
+
.composer{display:flex;gap:8px;align-items:center;padding-top:12px}
|
| 66 |
+
.input{flex:1;padding:12px;border-radius:12px;border:0;background:rgba(255,255,255,0.02);color:var(--text);font-size:15px}
|
| 67 |
+
.btn{padding:10px 14px;border-radius:12px;border:0;cursor:pointer;font-weight:700;background:rgba(255,255,255,0.03);color:var(--text)}
|
| 68 |
+
.btn.primary{background:linear-gradient(90deg,var(--accent),var(--accent-2));box-shadow:0 8px 20px rgba(124,58,237,0.12)}
|
| 69 |
+
.btn.ghost{background:transparent;border:1px solid rgba(255,255,255,0.03)}
|
| 70 |
+
.icon-btn{padding:10px;border-radius:10px;background:rgba(255,255,255,0.02);border:0;cursor:pointer;font-size:18px}
|
| 71 |
+
|
| 72 |
+
/* footer */
|
| 73 |
+
.footer{padding:12px;text-align:center;font-size:13px}
|
| 74 |
+
|
| 75 |
+
/* login overlay */
|
| 76 |
+
.overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg, rgba(3,6,12,0.45), rgba(3,6,12,0.55));z-index:60}
|
| 77 |
+
.login-card{width:92%;max-width:420px;padding:18px;border-radius:14px}
|
| 78 |
+
.login-header{display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:10px}
|
| 79 |
+
.login-logo{width:64px;height:64px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:28px;background:linear-gradient(135deg,var(--accent),var(--accent-2))}
|
| 80 |
+
.login-form .field{display:flex;flex-direction:column;margin:8px 0}
|
| 81 |
+
.login-form input{padding:12px;border-radius:10px;border:0;background:rgba(255,255,255,0.02);color:var(--text)}
|
| 82 |
+
.login-row{display:flex;gap:8px;justify-content:space-between;margin-top:10px}
|
| 83 |
+
.login-foot{margin-top:12px;text-align:center}
|
| 84 |
+
|
| 85 |
+
/* small */
|
| 86 |
+
.small{font-size:13px}
|
| 87 |
+
.muted{color:var(--muted)}
|
| 88 |
+
.mono{font-family:ui-monospace,monospace;background:rgba(255,255,255,0.02);padding:6px;border-radius:8px;display:inline-block}
|
| 89 |
+
|
| 90 |
+
/* responsive */
|
| 91 |
+
@media (max-width:900px){
|
| 92 |
+
.side{display:none}
|
| 93 |
+
.login-card{max-width:92%}
|
| 94 |
+
.msg{max-width:92%}
|
| 95 |
+
}
|