-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
313 lines (295 loc) · 12.1 KB
/
Copy pathstyle.css
File metadata and controls
313 lines (295 loc) · 12.1 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
/* ============================================================
style.css — Neural Interface Chatbot
All visual styling for the Streamlit Groq chatbot app
============================================================ */
/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');
/* ── CSS Variables ── */
:root {
--neon-cyan: #00f5ff;
--neon-pink: #ff00c8;
--neon-green: #00ff88;
--neon-purple: #a855f7;
--dark-bg: #04050d;
--sidebar-bg: #060813;
--card-bg: rgba(0, 20, 35, 0.85);
}
/* ── Animations ── */
@keyframes flicker {
0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
20%, 24%, 55% { opacity: 0.4; }
}
@keyframes inputPulse {
0%, 100% { box-shadow: 0 0 8px rgba(0,245,255,0.3), 0 0 25px rgba(0,245,255,0.1); }
50% { box-shadow: 0 0 16px rgba(0,245,255,0.6), 0 0 42px rgba(0,245,255,0.2); }
}
@keyframes statusBlink {
0%, 100% { opacity: 1; }
50% { opacity: 0.25; }
}
@keyframes fadeSlideUp {
from { opacity: 0; transform: translateY(14px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes sidebarGlow {
0%, 100% { box-shadow: 4px 0 20px rgba(0,245,255,0.05); }
50% { box-shadow: 4px 0 30px rgba(168,85,247,0.12); }
}
/* ═══════════════════════════════════════════════
GLOBAL
═══════════════════════════════════════════════ */
.stApp {
background-color: var(--dark-bg);
background-image:
radial-gradient(ellipse at 20% 20%, rgba(0,60,80,0.2) 0%, transparent 50%),
radial-gradient(ellipse at 80% 80%, rgba(60,0,80,0.15) 0%, transparent 50%),
linear-gradient(rgba(0,245,255,0.025) 1px, transparent 1px),
linear-gradient(90deg, rgba(0,245,255,0.025) 1px, transparent 1px);
background-size: 100% 100%, 100% 100%, 28px 28px, 28px 28px;
color: #c8eaf0;
font-family: 'Share Tech Mono', monospace;
}
/* ═══════════════════════════════════════════════
PAGE HEADER
═══════════════════════════════════════════════ */
.hero-container { text-align: center; padding: 10px 0 20px; }
.main-header {
font-family: 'Orbitron', sans-serif;
font-size: 3rem;
font-weight: 900;
letter-spacing: 8px;
text-transform: uppercase;
background: linear-gradient(90deg, var(--neon-cyan), #fff, var(--neon-pink));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
animation: flicker 6s infinite;
margin: 0;
}
.sub-header {
color: var(--neon-cyan);
font-size: 0.78rem;
letter-spacing: 3px;
margin-top: 6px;
text-shadow: 0 0 10px var(--neon-cyan);
}
.divider-line {
height: 1px;
background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
margin: 12px auto;
width: 60%;
}
/* ═══════════════════════════════════════════════
SIDEBAR — Full Redesign
═══════════════════════════════════════════════ */
[data-testid="stSidebar"] {
background: linear-gradient(160deg, #0a0d1a 0%, #05060f 60%, #0a0618 100%) !important;
border-right: 1px solid rgba(168, 85, 247, 0.3);
animation: sidebarGlow 5s ease-in-out infinite;
}
[data-testid="stSidebar"] > div:first-child { padding-top: 1.2rem; }
/* Brand logo at the top */
.sidebar-logo {
font-family: 'Orbitron', sans-serif;
font-size: 1.05rem;
font-weight: 900;
color: #fff;
text-align: center;
letter-spacing: 5px;
padding: 8px 0 2px;
background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.sidebar-tagline {
font-size: 0.58rem;
color: rgba(168,85,247,0.5);
text-align: center;
letter-spacing: 3px;
margin-bottom: 14px;
text-transform: uppercase;
}
.sidebar-divider {
height: 1px;
background: linear-gradient(90deg, transparent, rgba(168,85,247,0.4), transparent);
margin: 12px 0;
}
/* Status Card */
.status-card {
background: rgba(10, 5, 30, 0.7);
border: 1px solid rgba(168, 85, 247, 0.2);
border-radius: 8px;
padding: 12px 14px;
margin-bottom: 10px;
box-shadow: inset 0 0 20px rgba(168,85,247,0.03);
}
.status-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.status-label { font-size: 0.65rem; color: rgba(168,85,247,0.55); letter-spacing: 1.5px; text-transform: uppercase; }
.status-value { font-size: 0.72rem; color: var(--neon-green); font-weight: bold; }
.status-dot {
display: inline-block; width: 7px; height: 7px; border-radius: 50%;
background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green);
margin-right: 5px; animation: statusBlink 1.8s infinite;
}
.model-badge {
background: rgba(168,85,247,0.1); border: 1px solid rgba(168,85,247,0.3);
border-radius: 4px; padding: 5px 10px; font-size: 0.68rem;
color: var(--neon-purple); text-align: center; margin-top: 5px; letter-spacing: 1px;
}
/* Session Stats boxes */
.session-stats { display: flex; gap: 8px; margin-bottom: 12px; }
.stat-box {
flex: 1; background: rgba(10, 5, 30, 0.6);
border: 1px solid rgba(168,85,247,0.2); border-radius: 6px;
padding: 8px; text-align: center;
}
.stat-num { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; color: var(--neon-purple); line-height: 1; }
.stat-label { font-size: 0.56rem; color: rgba(168,85,247,0.45); letter-spacing: 1px; text-transform: uppercase; margin-top: 3px; }
/* History section title */
.history-section-title {
font-size: 0.6rem; color: rgba(168,85,247,0.5);
letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 10px; padding-left: 2px;
}
/* ── NEW CHAT button ── */
div[data-testid="stButton"] button[kind="secondary"]:has(+ div) {
background: transparent;
}
/* Session title buttons in history */
.session-btn button, .active-session-btn button {
display: block !important;
}
/* Target all sidebar buttons */
[data-testid="stSidebar"] .stButton > button {
background: rgba(10, 5, 30, 0.5) !important;
color: rgba(200, 234, 240, 0.65) !important;
border: 1px solid rgba(168, 85, 247, 0.15) !important;
border-radius: 6px !important;
font-family: 'Share Tech Mono', monospace !important;
font-size: 0.7rem !important;
letter-spacing: 0.5px;
text-align: left !important;
padding: 8px 10px !important;
transition: all 0.2s ease;
white-space: pre-line !important;
line-height: 1.4 !important;
width: 100%;
}
[data-testid="stSidebar"] .stButton > button:hover {
background: rgba(168, 85, 247, 0.12) !important;
border-color: rgba(168, 85, 247, 0.5) !important;
color: var(--neon-purple) !important;
box-shadow: 0 0 10px rgba(168,85,247,0.2);
transform: translateX(3px);
}
/* New Chat Button — override to look special */
[data-testid="stSidebar"] .stButton > button[kind="secondary"]:first-of-type,
[data-testid="stSidebar"] div:first-child .stButton > button {
background: rgba(0, 245, 255, 0.07) !important;
color: var(--neon-cyan) !important;
border: 1px solid rgba(0, 245, 255, 0.4) !important;
letter-spacing: 3px;
font-size: 0.72rem !important;
text-align: center !important;
}
[data-testid="stSidebar"] div:first-child .stButton > button:hover {
background: rgba(0, 245, 255, 0.15) !important;
box-shadow: 0 0 15px rgba(0, 245, 255, 0.25);
transform: translateY(-1px);
}
/* Active session button */
.active-session-btn .stButton > button {
background: rgba(168, 85, 247, 0.15) !important;
border: 1px solid rgba(168, 85, 247, 0.55) !important;
color: var(--neon-purple) !important;
box-shadow: 0 0 10px rgba(168,85,247,0.15), inset 0 0 8px rgba(168,85,247,0.05) !important;
}
/* Delete (✕) button */
.del-btn .stButton > button {
background: transparent !important;
color: rgba(255, 0, 200, 0.4) !important;
border: 1px solid rgba(255, 0, 200, 0.15) !important;
border-radius: 5px !important;
padding: 6px 4px !important;
font-size: 0.65rem !important;
letter-spacing: 0 !important;
}
.del-btn .stButton > button:hover {
background: rgba(255, 0, 200, 0.12) !important;
color: var(--neon-pink) !important;
border-color: rgba(255, 0, 200, 0.5) !important;
box-shadow: 0 0 8px rgba(255,0,200,0.2) !important;
transform: scale(1.1) !important;
}
/* ═══════════════════════════════════════════════
CHAT MESSAGES
═══════════════════════════════════════════════ */
[data-testid="stChatMessage"] {
background: var(--card-bg) !important;
border: 1px solid rgba(0, 245, 255, 0.15);
border-left: 3px solid var(--neon-cyan);
border-radius: 6px !important;
padding: 12px 16px !important;
margin-bottom: 10px !important;
backdrop-filter: blur(6px);
animation: fadeSlideUp 0.4s ease-out;
box-shadow: 0 2px 14px rgba(0,0,0,0.4);
}
/* ═══════════════════════════════════════════════
CHAT INPUT
═══════════════════════════════════════════════ */
[data-testid="stChatInputContainer"] {
background: rgba(0, 8, 18, 0.95) !important;
border: 1px solid rgba(0, 245, 255, 0.5) !important;
border-radius: 8px !important;
padding: 6px 10px !important;
animation: inputPulse 3s ease-in-out infinite;
backdrop-filter: blur(10px);
}
[data-testid="stChatInput"] textarea {
background: transparent !important;
border: none !important;
color: var(--neon-cyan) !important;
font-family: 'Share Tech Mono', monospace !important;
font-size: 0.9rem !important;
letter-spacing: 1px;
caret-color: var(--neon-cyan);
}
[data-testid="stChatInput"] textarea::placeholder {
color: rgba(0, 245, 255, 0.3) !important;
letter-spacing: 2px;
font-style: italic;
}
[data-testid="stChatInputSubmitButton"] button {
background: linear-gradient(135deg, rgba(0,245,255,0.12), rgba(0,245,255,0.04)) !important;
border: 1px solid rgba(0,245,255,0.45) !important;
border-radius: 6px !important;
color: var(--neon-cyan) !important;
transition: all 0.25s ease;
}
[data-testid="stChatInputSubmitButton"] button:hover {
background: var(--neon-cyan) !important;
color: #000 !important;
box-shadow: 0 0 20px var(--neon-cyan), 0 0 40px rgba(0,245,255,0.3);
transform: scale(1.08);
}
.input-label {
font-size: 0.62rem; color: rgba(0,245,255,0.3);
letter-spacing: 3px; text-align: center;
margin-bottom: 6px; text-transform: uppercase;
}
/* ═══════════════════════════════════════════════
ALERTS & SCROLLBAR
═══════════════════════════════════════════════ */
.stAlert {
background: rgba(168,85,247,0.07) !important;
border: 1px solid rgba(168,85,247,0.25) !important;
border-radius: 4px !important;
color: var(--neon-purple) !important;
font-family: 'Share Tech Mono', monospace !important;
font-size: 0.75rem !important;
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #04050d; }
::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-purple); }