Spaces:
Sleeping
Sleeping
File size: 9,141 Bytes
471f166 |
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 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 |
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
/* KaTeX styles */
@import 'katex/dist/katex.min.css';
/* =========================================
DESIGN SYSTEM & TOKENS
========================================= */
:root {
/* --- LIGHT THEME (Clean, Airy, Professional) --- */
/* Brand Colors - Indigo/Violet fused for modern tech feel */
--brand-primary: #6366f1;
--brand-primary-rgb: 99, 102, 241;
/* Indigo 500 */
--brand-hover: #4f46e5;
/* Indigo 600 */
--brand-light: #e0e7ff;
/* Indigo 100 */
--brand-text: #ffffff;
/* Backgrounds */
--bg-canvas: #ffffff;
--bg-canvas-rgb: 255, 255, 255;
--bg-surface: #f8fafc;
--bg-surface-rgb: 248, 250, 252;
/* Slate 50 */
--bg-surface-hover: #eaeff3;
/* Balanced hover: slightly darker than Slate 100, lighter than Slate 200 */
--bg-modal: rgba(255, 255, 255, 0.95);
/* Text */
--text-primary: #0f172a;
/* Slate 900 */
--text-secondary: #64748b;
/* Slate 500 */
--text-tertiary: #94a3b8;
/* Slate 400 */
/* Borders */
--border-light: #e2e8f0;
/* Slate 200 */
--border-medium: #cbd5e1;
/* Slate 300 */
/* Status */
--status-success: #10b981;
--status-error: #ef4444;
--status-warning: #f59e0b;
/* Shadows */
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
--shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
/* Legacy variable mapping for compatibility */
--bg-primary: var(--bg-canvas);
--bg-secondary: var(--bg-surface);
--border-color: var(--border-light);
--accent: var(--brand-primary);
}
.dark {
/* --- DARK THEME (Deep, Rich, Premium) --- */
/* Brand Colors - Slightly desaturated for dark mode legibility */
--brand-primary: #818cf8;
--brand-primary-rgb: 129, 140, 248;
/* Indigo 400 */
--brand-hover: #6366f1;
/* Indigo 500 */
--brand-light: rgba(99, 102, 241, 0.15);
--brand-text: #ffffff;
/* Backgrounds - Zinc scale for a rich "Obsidian" feel */
--bg-canvas: #09090b;
--bg-canvas-rgb: 9, 9, 11;
/* Zinc 950 */
--bg-surface: #18181b;
--bg-surface-rgb: 24, 24, 27;
/* Zinc 900 */
--bg-surface-hover: #27272a;
/* Zinc 800 */
--bg-modal: rgba(24, 24, 27, 0.96);
/* More solid for better text contrast */
/* Text */
--text-primary: #f4f4f5;
/* Zinc 100 */
--text-secondary: #a1a1aa;
/* Zinc 400 */
--text-tertiary: #52525b;
/* Zinc 600 */
/* Borders */
--border-light: #27272a;
/* Zinc 800 */
--border-medium: #3f3f46;
/* Zinc 700 */
/* Shadows */
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.5);
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
--shadow-glow: 0 0 25px rgba(129, 140, 248, 0.15);
/* Legacy mapping */
--bg-primary: var(--bg-canvas);
--bg-secondary: var(--bg-surface);
--border-color: var(--border-light);
--accent: var(--brand-primary);
}
/* =========================================
GLOBAL RESET & BASE
========================================= */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
height: 100%;
overflow: hidden;
/* App-like feel */
overscroll-behavior: none;
/* Prevent bounce/rubber-band effect */
}
body {
font-family: 'Outfit', 'Inter', system-ui, sans-serif;
/* Outfit for headings, Inter for body */
background-color: var(--bg-canvas);
color: var(--text-primary);
/* Removed transition on color/background to prevent flickering on theme switch */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Selection Highlight */
::selection {
background-color: var(--brand-primary);
color: white;
}
/* Scrollbar Styling - Minimalist */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--border-light);
border-radius: 10px;
transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover {
background: var(--text-tertiary);
}
/* =========================================
UTILITIES & COMPONENTS
========================================= */
@layer utilities {
/* Modern Glassmorphism */
.glass {
background: rgba(255, 255, 255, 0.65);
backdrop-filter: blur(16px) saturate(180%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
border: 1px solid rgba(255, 255, 255, 0.3);
}
.dark .glass {
background: rgba(10, 10, 12, 0.65);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-panel {
background: var(--bg-modal);
backdrop-filter: blur(20px);
border: 1px solid var(--border-light);
}
/* Text Gradients */
.text-gradient {
background: linear-gradient(135deg, var(--brand-primary), #a855f7);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
}
/* Markdown / Message Content Styling */
.message-content {
line-height: 1.7;
font-size: 0.95rem;
}
.message-content p {
margin-bottom: 0.85rem;
}
.message-content p:last-child {
margin-bottom: 0;
}
.message-content strong {
font-weight: 600;
color: var(--text-primary);
}
.message-content a {
color: var(--brand-primary);
text-decoration: none;
border-bottom: 1px dashed var(--brand-primary);
transition: all 0.2s;
}
.message-content a:hover {
border-style: solid;
}
/* Code Blocks */
.message-content pre {
background: var(--bg-surface);
border: 1px solid var(--border-light);
border-radius: 0.75rem;
padding: 1.25rem;
overflow-x: auto;
margin: 1.25rem 0;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}
.message-content code {
font-family: 'JetBrains Mono', monospace;
font-size: 0.85em;
padding: 0.2em 0.4em;
border-radius: 0.25rem;
background: var(--bg-surface-hover);
color: var(--brand-primary);
}
.message-content pre code {
background: transparent;
padding: 0;
color: inherit;
font-size: 0.9em;
}
/* Lists */
.message-content ul,
.message-content ol {
padding-left: 1.5rem;
margin: 0.75rem 0;
}
.message-content li {
margin: 0.4rem 0;
padding-left: 0.5rem;
}
/* KaTeX Override (Math) - Minimalist Integrated Look */
.katex-display {
margin: 1.5rem 0;
padding: 0.5rem 0;
background: transparent;
border: none;
border-radius: 0;
overflow-x: auto;
box-shadow: none;
position: relative;
transition: color 0.3s ease;
}
.katex-display:hover {
border-color: transparent;
box-shadow: none;
}
.katex {
font-size: 1.1em;
color: var(--text-primary);
}
.katex-error {
color: var(--status-error);
background: rgba(239, 68, 68, 0.1);
padding: 2px 6px;
border-radius: 4px;
}
/* =========================================
ANIMATIONS
========================================= */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(5px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes popIn {
0% {
transform: scale(0.9);
opacity: 0;
}
100% {
transform: scale(1);
opacity: 1;
}
}
@keyframes messageSlideUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-msg-slide-up {
animation: messageSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
/* Agent Tracking UI Refinements */
.agent-status-badge {
display: inline-flex;
align-items: center;
background: var(--brand-light);
color: var(--brand-primary);
padding: 0.35rem 0.85rem;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 700;
margin-bottom: 0.75rem;
border: 1px solid rgba(var(--brand-primary-rgb), 0.2);
text-transform: uppercase;
letter-spacing: 0.08em;
box-shadow: 0 4px 10px rgba(99, 102, 241, 0.1);
position: relative;
overflow: hidden;
}
.agent-status-badge::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 50%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
animation: badgeShine 2s infinite;
}
@keyframes badgeShine {
0% {
left: -100%;
}
100% {
left: 200%;
}
}
.agent-steps {
margin-bottom: 1.25rem;
font-size: 0.85rem;
border: 1px solid var(--border-light);
border-radius: 0.75rem;
overflow: hidden;
background: var(--bg-surface);
box-shadow: var(--shadow-sm);
}
.agent-steps summary {
padding: 0.75rem 1rem;
cursor: pointer;
font-weight: 500;
color: var(--text-secondary);
transition: color 0.2s;
background: var(--bg-secondary);
}
.agent-steps summary:hover {
color: var(--brand-primary);
}
.steps-list {
padding: 0.75rem;
gap: 0.75rem;
}
.step-item {
background: var(--bg-canvas);
border: 1px solid var(--border-light);
border-radius: 0.5rem;
padding: 0.75rem;
}
.step-tool {
color: var(--brand-primary);
} |