Commit
·
7cbeb3d
1
Parent(s):
8756da7
Fix EOF newline in style.css
Browse files- frontend/style.css +97 -33
frontend/style.css
CHANGED
|
@@ -4,19 +4,23 @@
|
|
| 4 |
--glass-bg: rgba(255, 255, 255, 0.65);
|
| 5 |
--glass-border: rgba(255, 255, 255, 0.4);
|
| 6 |
--glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
|
| 7 |
-
|
| 8 |
-
--primary: #6366f1;
|
|
|
|
| 9 |
--primary-hover: #4f46e5;
|
| 10 |
-
--secondary: #0ea5e9;
|
| 11 |
-
|
| 12 |
-
--text-
|
|
|
|
|
|
|
|
|
|
| 13 |
--accent-glow: rgba(99, 102, 241, 0.2);
|
| 14 |
-
|
| 15 |
--sidebar-bg: rgba(255, 255, 255, 0.5);
|
| 16 |
--input-bg: rgba(255, 255, 255, 0.8);
|
| 17 |
--user-bubble: linear-gradient(135deg, #6366f1, #8b5cf6);
|
| 18 |
--ai-bubble: rgba(255, 255, 255, 0.7);
|
| 19 |
-
|
| 20 |
/* Scrollbar */
|
| 21 |
--scroll-thumb: #cbd5e1;
|
| 22 |
}
|
|
@@ -27,19 +31,22 @@
|
|
| 27 |
--glass-bg: rgba(30, 41, 59, 0.6);
|
| 28 |
--glass-border: rgba(255, 255, 255, 0.08);
|
| 29 |
--glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
|
| 30 |
-
|
| 31 |
-
--primary: #818cf8;
|
|
|
|
| 32 |
--primary-hover: #6366f1;
|
| 33 |
--secondary: #38bdf8;
|
| 34 |
-
--text-main: #f1f5f9;
|
| 35 |
-
|
|
|
|
|
|
|
| 36 |
--accent-glow: rgba(129, 140, 248, 0.15);
|
| 37 |
-
|
| 38 |
--sidebar-bg: rgba(15, 23, 42, 0.6);
|
| 39 |
--input-bg: rgba(30, 41, 59, 0.6);
|
| 40 |
--user-bubble: linear-gradient(135deg, #4f46e5, #7c3aed);
|
| 41 |
--ai-bubble: rgba(30, 41, 59, 0.7);
|
| 42 |
-
|
| 43 |
--scroll-thumb: #475569;
|
| 44 |
}
|
| 45 |
|
|
@@ -52,7 +59,8 @@ body {
|
|
| 52 |
margin: 0;
|
| 53 |
font-family: 'Inter', sans-serif;
|
| 54 |
background: var(--bg-gradient);
|
| 55 |
-
background-attachment: fixed;
|
|
|
|
| 56 |
color: var(--text-main);
|
| 57 |
height: 100vh;
|
| 58 |
overflow: hidden;
|
|
@@ -163,15 +171,20 @@ body {
|
|
| 163 |
.top-bar {
|
| 164 |
padding: 1.5rem 2rem;
|
| 165 |
display: flex;
|
| 166 |
-
justify-content: flex-end;
|
|
|
|
| 167 |
align-items: center;
|
| 168 |
position: absolute;
|
| 169 |
top: 0;
|
| 170 |
right: 0;
|
| 171 |
width: 100%;
|
| 172 |
-
pointer-events: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 173 |
}
|
| 174 |
-
.top-bar > * { pointer-events: auto; }
|
| 175 |
|
| 176 |
.theme-toggle {
|
| 177 |
background: var(--glass-bg);
|
|
@@ -188,6 +201,7 @@ body {
|
|
| 188 |
backdrop-filter: blur(4px);
|
| 189 |
transition: background 0.2s;
|
| 190 |
}
|
|
|
|
| 191 |
.theme-toggle:hover {
|
| 192 |
background: var(--accent-glow);
|
| 193 |
}
|
|
@@ -196,7 +210,8 @@ body {
|
|
| 196 |
.chat-container {
|
| 197 |
flex: 1;
|
| 198 |
overflow-y: auto;
|
| 199 |
-
padding: 2rem 15% 10rem 15%;
|
|
|
|
| 200 |
scroll-behavior: smooth;
|
| 201 |
}
|
| 202 |
|
|
@@ -207,10 +222,26 @@ body {
|
|
| 207 |
opacity: 0;
|
| 208 |
animation: slideIn 0.3s forwards;
|
| 209 |
}
|
| 210 |
-
@keyframes slideIn { to { opacity: 1; transform: translateY(0); } from { opacity: 0; transform: translateY(10px); } }
|
| 211 |
|
| 212 |
-
|
| 213 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 214 |
|
| 215 |
.bubble {
|
| 216 |
max-width: 80%;
|
|
@@ -264,14 +295,16 @@ textarea {
|
|
| 264 |
background: var(--input-bg);
|
| 265 |
border: 1px solid var(--glass-border);
|
| 266 |
border-radius: 14px;
|
| 267 |
-
padding: 1rem 3rem 1rem 1rem;
|
|
|
|
| 268 |
color: var(--text-main);
|
| 269 |
font-family: inherit;
|
| 270 |
resize: none;
|
| 271 |
min-height: 60px;
|
| 272 |
max-height: 200px;
|
| 273 |
-
box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
|
| 274 |
}
|
|
|
|
| 275 |
textarea:focus {
|
| 276 |
outline: none;
|
| 277 |
border-color: var(--primary);
|
|
@@ -294,7 +327,11 @@ textarea:focus {
|
|
| 294 |
cursor: pointer;
|
| 295 |
transition: all 0.2s;
|
| 296 |
}
|
| 297 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 298 |
|
| 299 |
.file-row {
|
| 300 |
display: flex;
|
|
@@ -311,9 +348,16 @@ textarea:focus {
|
|
| 311 |
color: var(--text-muted);
|
| 312 |
cursor: pointer;
|
| 313 |
}
|
| 314 |
-
.file-upload-label:hover { color: var(--primary); }
|
| 315 |
|
| 316 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 317 |
|
| 318 |
/* Progress Bar */
|
| 319 |
.progress-container {
|
|
@@ -324,6 +368,7 @@ textarea:focus {
|
|
| 324 |
overflow: hidden;
|
| 325 |
display: none;
|
| 326 |
}
|
|
|
|
| 327 |
.progress-bar {
|
| 328 |
height: 100%;
|
| 329 |
background: var(--success, #10b981);
|
|
@@ -332,8 +377,15 @@ textarea:focus {
|
|
| 332 |
}
|
| 333 |
|
| 334 |
/* Citations & Analytics Links inside bubbles */
|
| 335 |
-
a {
|
| 336 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 337 |
|
| 338 |
.confidence-badge {
|
| 339 |
display: inline-flex;
|
|
@@ -348,7 +400,7 @@ a:hover { text-decoration: underline; }
|
|
| 348 |
}
|
| 349 |
|
| 350 |
.citation-box {
|
| 351 |
-
background: rgba(0,0,0,0.03);
|
| 352 |
border-left: 3px solid var(--primary);
|
| 353 |
padding: 8px 12px;
|
| 354 |
margin-top: 8px;
|
|
@@ -357,7 +409,19 @@ a:hover { text-decoration: underline; }
|
|
| 357 |
}
|
| 358 |
|
| 359 |
/* Scrollbar Styling */
|
| 360 |
-
::-webkit-scrollbar {
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
--glass-bg: rgba(255, 255, 255, 0.65);
|
| 5 |
--glass-border: rgba(255, 255, 255, 0.4);
|
| 6 |
--glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
|
| 7 |
+
|
| 8 |
+
--primary: #6366f1;
|
| 9 |
+
/* Indigo 500 */
|
| 10 |
--primary-hover: #4f46e5;
|
| 11 |
+
--secondary: #0ea5e9;
|
| 12 |
+
/* Sky 500 */
|
| 13 |
+
--text-main: #1e293b;
|
| 14 |
+
/* Slate 800 */
|
| 15 |
+
--text-muted: #64748b;
|
| 16 |
+
/* Slate 500 */
|
| 17 |
--accent-glow: rgba(99, 102, 241, 0.2);
|
| 18 |
+
|
| 19 |
--sidebar-bg: rgba(255, 255, 255, 0.5);
|
| 20 |
--input-bg: rgba(255, 255, 255, 0.8);
|
| 21 |
--user-bubble: linear-gradient(135deg, #6366f1, #8b5cf6);
|
| 22 |
--ai-bubble: rgba(255, 255, 255, 0.7);
|
| 23 |
+
|
| 24 |
/* Scrollbar */
|
| 25 |
--scroll-thumb: #cbd5e1;
|
| 26 |
}
|
|
|
|
| 31 |
--glass-bg: rgba(30, 41, 59, 0.6);
|
| 32 |
--glass-border: rgba(255, 255, 255, 0.08);
|
| 33 |
--glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
|
| 34 |
+
|
| 35 |
+
--primary: #818cf8;
|
| 36 |
+
/* Indigo 400 */
|
| 37 |
--primary-hover: #6366f1;
|
| 38 |
--secondary: #38bdf8;
|
| 39 |
+
--text-main: #f1f5f9;
|
| 40 |
+
/* Slate 100 */
|
| 41 |
+
--text-muted: #94a3b8;
|
| 42 |
+
/* Slate 400 */
|
| 43 |
--accent-glow: rgba(129, 140, 248, 0.15);
|
| 44 |
+
|
| 45 |
--sidebar-bg: rgba(15, 23, 42, 0.6);
|
| 46 |
--input-bg: rgba(30, 41, 59, 0.6);
|
| 47 |
--user-bubble: linear-gradient(135deg, #4f46e5, #7c3aed);
|
| 48 |
--ai-bubble: rgba(30, 41, 59, 0.7);
|
| 49 |
+
|
| 50 |
--scroll-thumb: #475569;
|
| 51 |
}
|
| 52 |
|
|
|
|
| 59 |
margin: 0;
|
| 60 |
font-family: 'Inter', sans-serif;
|
| 61 |
background: var(--bg-gradient);
|
| 62 |
+
background-attachment: fixed;
|
| 63 |
+
/* Keep heavy gradient fixed */
|
| 64 |
color: var(--text-main);
|
| 65 |
height: 100vh;
|
| 66 |
overflow: hidden;
|
|
|
|
| 171 |
.top-bar {
|
| 172 |
padding: 1.5rem 2rem;
|
| 173 |
display: flex;
|
| 174 |
+
justify-content: flex-end;
|
| 175 |
+
/* Just the theme toggle here */
|
| 176 |
align-items: center;
|
| 177 |
position: absolute;
|
| 178 |
top: 0;
|
| 179 |
right: 0;
|
| 180 |
width: 100%;
|
| 181 |
+
pointer-events: none;
|
| 182 |
+
/* Let clicks pass through to chat */
|
| 183 |
+
}
|
| 184 |
+
|
| 185 |
+
.top-bar>* {
|
| 186 |
+
pointer-events: auto;
|
| 187 |
}
|
|
|
|
| 188 |
|
| 189 |
.theme-toggle {
|
| 190 |
background: var(--glass-bg);
|
|
|
|
| 201 |
backdrop-filter: blur(4px);
|
| 202 |
transition: background 0.2s;
|
| 203 |
}
|
| 204 |
+
|
| 205 |
.theme-toggle:hover {
|
| 206 |
background: var(--accent-glow);
|
| 207 |
}
|
|
|
|
| 210 |
.chat-container {
|
| 211 |
flex: 1;
|
| 212 |
overflow-y: auto;
|
| 213 |
+
padding: 2rem 15% 10rem 15%;
|
| 214 |
+
/* Bottom padding for input area */
|
| 215 |
scroll-behavior: smooth;
|
| 216 |
}
|
| 217 |
|
|
|
|
| 222 |
opacity: 0;
|
| 223 |
animation: slideIn 0.3s forwards;
|
| 224 |
}
|
|
|
|
| 225 |
|
| 226 |
+
@keyframes slideIn {
|
| 227 |
+
to {
|
| 228 |
+
opacity: 1;
|
| 229 |
+
transform: translateY(0);
|
| 230 |
+
}
|
| 231 |
+
|
| 232 |
+
from {
|
| 233 |
+
opacity: 0;
|
| 234 |
+
transform: translateY(10px);
|
| 235 |
+
}
|
| 236 |
+
}
|
| 237 |
+
|
| 238 |
+
.user-message {
|
| 239 |
+
justify-content: flex-end;
|
| 240 |
+
}
|
| 241 |
+
|
| 242 |
+
.ai-message {
|
| 243 |
+
justify-content: flex-start;
|
| 244 |
+
}
|
| 245 |
|
| 246 |
.bubble {
|
| 247 |
max-width: 80%;
|
|
|
|
| 295 |
background: var(--input-bg);
|
| 296 |
border: 1px solid var(--glass-border);
|
| 297 |
border-radius: 14px;
|
| 298 |
+
padding: 1rem 3rem 1rem 1rem;
|
| 299 |
+
/* Space for send button */
|
| 300 |
color: var(--text-main);
|
| 301 |
font-family: inherit;
|
| 302 |
resize: none;
|
| 303 |
min-height: 60px;
|
| 304 |
max-height: 200px;
|
| 305 |
+
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
|
| 306 |
}
|
| 307 |
+
|
| 308 |
textarea:focus {
|
| 309 |
outline: none;
|
| 310 |
border-color: var(--primary);
|
|
|
|
| 327 |
cursor: pointer;
|
| 328 |
transition: all 0.2s;
|
| 329 |
}
|
| 330 |
+
|
| 331 |
+
.send-btn:hover {
|
| 332 |
+
background: var(--primary-hover);
|
| 333 |
+
transform: scale(1.05);
|
| 334 |
+
}
|
| 335 |
|
| 336 |
.file-row {
|
| 337 |
display: flex;
|
|
|
|
| 348 |
color: var(--text-muted);
|
| 349 |
cursor: pointer;
|
| 350 |
}
|
|
|
|
| 351 |
|
| 352 |
+
.file-upload-label:hover {
|
| 353 |
+
color: var(--primary);
|
| 354 |
+
}
|
| 355 |
+
|
| 356 |
+
#files {
|
| 357 |
+
display: none;
|
| 358 |
+
}
|
| 359 |
+
|
| 360 |
+
/* Hide default file input */
|
| 361 |
|
| 362 |
/* Progress Bar */
|
| 363 |
.progress-container {
|
|
|
|
| 368 |
overflow: hidden;
|
| 369 |
display: none;
|
| 370 |
}
|
| 371 |
+
|
| 372 |
.progress-bar {
|
| 373 |
height: 100%;
|
| 374 |
background: var(--success, #10b981);
|
|
|
|
| 377 |
}
|
| 378 |
|
| 379 |
/* Citations & Analytics Links inside bubbles */
|
| 380 |
+
a {
|
| 381 |
+
color: var(--primary);
|
| 382 |
+
text-decoration: none;
|
| 383 |
+
font-weight: 500;
|
| 384 |
+
}
|
| 385 |
+
|
| 386 |
+
a:hover {
|
| 387 |
+
text-decoration: underline;
|
| 388 |
+
}
|
| 389 |
|
| 390 |
.confidence-badge {
|
| 391 |
display: inline-flex;
|
|
|
|
| 400 |
}
|
| 401 |
|
| 402 |
.citation-box {
|
| 403 |
+
background: rgba(0, 0, 0, 0.03);
|
| 404 |
border-left: 3px solid var(--primary);
|
| 405 |
padding: 8px 12px;
|
| 406 |
margin-top: 8px;
|
|
|
|
| 409 |
}
|
| 410 |
|
| 411 |
/* Scrollbar Styling */
|
| 412 |
+
::-webkit-scrollbar {
|
| 413 |
+
width: 8px;
|
| 414 |
+
}
|
| 415 |
+
|
| 416 |
+
::-webkit-scrollbar-track {
|
| 417 |
+
background: transparent;
|
| 418 |
+
}
|
| 419 |
+
|
| 420 |
+
::-webkit-scrollbar-thumb {
|
| 421 |
+
background: var(--scroll-thumb);
|
| 422 |
+
border-radius: 4px;
|
| 423 |
+
}
|
| 424 |
+
|
| 425 |
+
::-webkit-scrollbar-thumb:hover {
|
| 426 |
+
background: var(--text-muted);
|
| 427 |
+
}
|