Spaces:
Sleeping
Sleeping
| :root { | |
| --primary: #0066ff; | |
| --primary-dark: #0052cc; | |
| --accent: #00d4aa; | |
| --background: #000000; | |
| --surface: #111111; | |
| --surface-elevated: #1a1a1a; | |
| --text: #ffffff; | |
| --text-secondary: #a0a0a0; | |
| --text-muted: #666666; | |
| --border: rgba(255, 255, 255, 0.08); | |
| --border-focus: rgba(0, 102, 255, 0.3); | |
| --shadow: rgba(0, 0, 0, 0.4); | |
| --success: #00d4aa; | |
| --warning: #ffa726; | |
| --error: #f44336; | |
| } | |
| [data-theme="light"] { | |
| --background: #ffffff; | |
| --surface: #f8f9fa; | |
| --surface-elevated: #ffffff; | |
| --text: #1a1a1a; | |
| --text-secondary: #4a5568; | |
| --text-muted: #718096; | |
| --border: rgba(0, 0, 0, 0.08); | |
| --border-focus: rgba(0, 102, 255, 0.3); | |
| --shadow: rgba(0, 0, 0, 0.1); | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; | |
| } | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif; | |
| background: var(--background); | |
| color: var(--text); | |
| line-height: 1.5; | |
| min-height: 100vh; | |
| font-weight: 400; | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| } | |
| .container { | |
| max-width: 1000px; | |
| margin: 0 auto; | |
| padding: 2rem 1.5rem; | |
| } | |
| .header { | |
| text-align: center; | |
| margin-bottom: 2.5rem; | |
| } | |
| .header-content { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| max-width: 100%; | |
| } | |
| .header-text { | |
| flex: 1; | |
| text-align: center; | |
| } | |
| .header-controls { | |
| display: flex; | |
| align-items: center; | |
| gap: 1rem; | |
| } | |
| /* LLM Toggle Switch Styles */ | |
| .llm-toggle { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .toggle-label { | |
| font-size: 0.875rem; | |
| color: var(--text-secondary); | |
| font-weight: 500; | |
| } | |
| .switch { | |
| position: relative; | |
| display: inline-block; | |
| width: 80px; | |
| height: 32px; | |
| } | |
| .switch input { | |
| opacity: 0; | |
| width: 0; | |
| height: 0; | |
| } | |
| .slider { | |
| position: absolute; | |
| cursor: pointer; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background-color: var(--surface); | |
| border: 1px solid var(--border); | |
| transition: .4s; | |
| overflow: hidden; | |
| } | |
| .slider:before { | |
| position: absolute; | |
| content: ""; | |
| height: 24px; | |
| width: 24px; | |
| left: 3px; | |
| bottom: 3px; | |
| background-color: var(--primary); | |
| transition: .4s; | |
| border-radius: 50%; | |
| z-index: 2; | |
| } | |
| .slider-text-off, .slider-text-on { | |
| position: absolute; | |
| color: var(--text-secondary); | |
| font-size: 0.7rem; | |
| font-weight: 500; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| transition: .4s; | |
| pointer-events: none; | |
| z-index: 1; | |
| } | |
| .slider-text-off { | |
| left: 8px; | |
| } | |
| .slider-text-on { | |
| right: 8px; | |
| opacity: 0; | |
| } | |
| input:checked + .slider { | |
| background-color: var(--accent); | |
| border-color: var(--accent); | |
| } | |
| input:checked + .slider .slider-text-off { | |
| opacity: 0; | |
| } | |
| input:checked + .slider .slider-text-on { | |
| opacity: 1; | |
| } | |
| input:checked + .slider:before { | |
| transform: translateX(48px); | |
| } | |
| .slider.round { | |
| border-radius: 20px; | |
| } | |
| .slider.round:before { | |
| border-radius: 50%; | |
| } | |
| .theme-toggle { | |
| background: var(--surface); | |
| border: 1px solid var(--border); | |
| border-radius: 8px; | |
| padding: 0.75rem; | |
| color: var(--text); | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| font-size: 1.1rem; | |
| min-width: 44px; | |
| height: 44px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .theme-toggle:hover { | |
| background: var(--surface-elevated); | |
| border-color: var(--primary); | |
| transform: translateY(-1px); | |
| } | |
| .header h1 { | |
| font-size: 2.25rem; | |
| font-weight: 600; | |
| color: var(--text); | |
| margin-bottom: 0.5rem; | |
| letter-spacing: -0.025em; | |
| } | |
| .header .brand { | |
| color: var(--primary); | |
| } | |
| .header p { | |
| color: var(--text-secondary); | |
| font-size: 1rem; | |
| font-weight: 400; | |
| } | |
| .status { | |
| background: var(--surface); | |
| border: 1px solid var(--border); | |
| border-radius: 12px; | |
| padding: 1rem 1.5rem; | |
| margin-bottom: 2rem; | |
| text-align: center; | |
| transition: all 0.2s ease; | |
| } | |
| .status.online { | |
| border-color: var(--success); | |
| background: linear-gradient(135deg, rgba(0, 212, 170, 0.05), rgba(0, 212, 170, 0.02)); | |
| } | |
| .status.offline { | |
| border-color: var(--error); | |
| background: linear-gradient(135deg, rgba(244, 67, 54, 0.05), rgba(244, 67, 54, 0.02)); | |
| } | |
| .status.checking { | |
| border-color: var(--warning); | |
| background: linear-gradient(135deg, rgba(255, 167, 38, 0.05), rgba(255, 167, 38, 0.02)); | |
| animation: pulse 2s infinite; | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: 0.8; } | |
| } | |
| .chat-interface { | |
| background: var(--surface); | |
| border: 1px solid var(--border); | |
| border-radius: 16px; | |
| overflow: hidden; | |
| margin-bottom: 2rem; | |
| backdrop-filter: blur(20px); | |
| } | |
| .chat-messages { | |
| height: 480px; | |
| overflow-y: auto; | |
| padding: 2rem; | |
| background: linear-gradient(180deg, var(--background), var(--surface)); | |
| } | |
| .chat-messages::-webkit-scrollbar { | |
| width: 3px; | |
| } | |
| .chat-messages::-webkit-scrollbar-track { | |
| background: transparent; | |
| } | |
| .chat-messages::-webkit-scrollbar-thumb { | |
| background: var(--border); | |
| border-radius: 2px; | |
| } | |
| .message { | |
| margin-bottom: 2rem; | |
| opacity: 0; | |
| animation: messageSlide 0.4s cubic-bezier(0.2, 0, 0.2, 1) forwards; | |
| } | |
| @keyframes messageSlide { | |
| from { | |
| opacity: 0; | |
| transform: translateY(20px) scale(0.98); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0) scale(1); | |
| } | |
| } | |
| .message.user { | |
| text-align: right; | |
| } | |
| .message.assistant { | |
| text-align: left; | |
| } | |
| .message-content { | |
| display: inline-block; | |
| max-width: 75%; | |
| padding: 1.25rem 1.5rem; | |
| border-radius: 24px; | |
| font-size: 0.95rem; | |
| line-height: 1.6; | |
| position: relative; | |
| } | |
| .message.user .message-content { | |
| background: linear-gradient(135deg, var(--primary), var(--primary-dark)); | |
| color: #ffffff; | |
| border-bottom-right-radius: 8px; | |
| box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2); | |
| } | |
| .message.assistant .message-content { | |
| background: var(--surface-elevated); | |
| color: var(--text); | |
| border-bottom-left-radius: 8px; | |
| border: 1px solid var(--border); | |
| } | |
| .message-content h1, .message-content h2, .message-content h3, .message-content h4 { | |
| color: var(--accent); | |
| margin: 1.25rem 0 0.5rem 0; | |
| font-weight: 600; | |
| line-height: 1.3; | |
| text-shadow: 0 1px 2px rgba(0, 212, 170, 0.1); | |
| } | |
| .message-content h1 { | |
| font-size: 1.35rem; | |
| background: linear-gradient(135deg, var(--accent), #00b894); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| } | |
| .message-content h2 { | |
| font-size: 1.2rem; | |
| color: #00b894; | |
| } | |
| .message-content h3 { | |
| font-size: 1.05rem; | |
| color: var(--accent); | |
| } | |
| .message-content h4 { | |
| font-size: 0.95rem; | |
| color: #74b9ff; | |
| } | |
| .message-content p { | |
| margin: 0.75rem 0; | |
| line-height: 1.65; | |
| color: var(--text); | |
| } | |
| .message-content ul, .message-content ol { | |
| margin: 0.75rem 0; | |
| padding-left: 1.5rem; | |
| line-height: 1.6; | |
| } | |
| .message-content li { | |
| margin: 0.3rem 0; | |
| line-height: 1.6; | |
| position: relative; | |
| } | |
| .message-content ul li::marker { | |
| color: var(--accent); | |
| } | |
| .message-content ol li::marker { | |
| color: var(--accent); | |
| font-weight: 600; | |
| } | |
| .message-content table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| margin: 1rem 0; | |
| font-size: 0.9rem; | |
| } | |
| .message-content th, .message-content td { | |
| border: 1px solid var(--border); | |
| padding: 0.5rem 0.75rem; | |
| text-align: left; | |
| } | |
| .message-content th { | |
| background: var(--surface); | |
| font-weight: 600; | |
| color: var(--accent); | |
| } | |
| .message-content strong { | |
| background: linear-gradient(135deg, var(--accent), #74b9ff); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| font-weight: 700; | |
| text-shadow: 0 1px 2px rgba(0, 212, 170, 0.2); | |
| } | |
| .message-content em { | |
| color: #a29bfe; | |
| font-style: italic; | |
| background: rgba(162, 155, 254, 0.1); | |
| padding: 0.1rem 0.2rem; | |
| border-radius: 3px; | |
| } | |
| .message-content code { | |
| background: linear-gradient(135deg, rgba(116, 185, 255, 0.15), rgba(0, 212, 170, 0.1)); | |
| border: 1px solid rgba(116, 185, 255, 0.3); | |
| padding: 0.2rem 0.5rem; | |
| border-radius: 6px; | |
| font-family: 'SF Mono', Consolas, 'Courier New', monospace; | |
| font-size: 0.85rem; | |
| color: #74b9ff; | |
| font-weight: 600; | |
| text-shadow: 0 1px 2px rgba(116, 185, 255, 0.2); | |
| } | |
| .message.user .message-content strong, | |
| .message.user .message-content code, | |
| .message.user .message-content em { | |
| color: rgba(255, 255, 255, 0.95); | |
| background: rgba(255, 255, 255, 0.1); | |
| -webkit-text-fill-color: rgba(255, 255, 255, 0.95); | |
| } | |
| .message-content pre { | |
| background: var(--background); | |
| border: 1px solid var(--border); | |
| border-radius: 8px; | |
| padding: 1rem; | |
| margin: 1rem 0; | |
| overflow-x: auto; | |
| font-family: 'SF Mono', Consolas, 'Courier New', monospace; | |
| font-size: 0.85rem; | |
| line-height: 1.5; | |
| } | |
| .message-content pre code { | |
| background: none; | |
| border: none; | |
| padding: 0; | |
| font-size: inherit; | |
| } | |
| .message-content blockquote { | |
| border-left: 3px solid var(--accent); | |
| padding-left: 1rem; | |
| margin: 1rem 0; | |
| color: var(--text-secondary); | |
| font-style: italic; | |
| background: rgba(0, 212, 170, 0.05); | |
| padding: 0.75rem 0 0.75rem 1rem; | |
| border-radius: 0 4px 4px 0; | |
| } | |
| .message-content a { | |
| color: var(--accent); | |
| text-decoration: none; | |
| border-bottom: 1px solid transparent; | |
| transition: border-color 0.2s ease; | |
| } | |
| .message-content a:hover { | |
| border-bottom-color: var(--accent); | |
| } | |
| .message.user .message-content { | |
| word-wrap: break-word; | |
| white-space: pre-wrap; | |
| } | |
| .message.user .message-content strong, | |
| .message.user .message-content code { | |
| color: rgba(255, 255, 255, 0.9); | |
| } | |
| .message-meta { | |
| font-size: 0.75rem; | |
| color: var(--text-muted); | |
| margin-top: 0.5rem; | |
| font-weight: 500; | |
| } | |
| .sources { | |
| margin-top: 1rem; | |
| padding-top: 1rem; | |
| border-top: 1px solid var(--border); | |
| font-size: 0.8rem; | |
| color: var(--text-secondary); | |
| } | |
| .sources span { | |
| display: inline-block; | |
| background: rgba(0, 102, 255, 0.1); | |
| border: 1px solid rgba(0, 102, 255, 0.2); | |
| padding: 0.25rem 0.75rem; | |
| border-radius: 6px; | |
| margin: 0.25rem 0.5rem 0.25rem 0; | |
| font-weight: 500; | |
| font-size: 0.75rem; | |
| } | |
| .input-area { | |
| padding: 2rem; | |
| background: linear-gradient(180deg, var(--surface), var(--surface-elevated)); | |
| border-top: 1px solid var(--border); | |
| } | |
| .input-container { | |
| display: flex; | |
| gap: 1rem; | |
| align-items: stretch; | |
| } | |
| .input-field { | |
| flex: 1; | |
| padding: 1rem 1.5rem; | |
| background: var(--background); | |
| border: 2px solid var(--border); | |
| border-radius: 28px; | |
| color: var(--text); | |
| font-size: 0.95rem; | |
| outline: none; | |
| transition: all 0.2s cubic-bezier(0.2, 0, 0.2, 1); | |
| font-weight: 400; | |
| } | |
| .input-field:focus { | |
| border-color: var(--primary); | |
| box-shadow: 0 0 0 4px var(--border-focus); | |
| background: var(--surface); | |
| } | |
| .input-field::placeholder { | |
| color: var(--text-muted); | |
| font-weight: 400; | |
| } | |
| .send-button { | |
| padding: 1rem 2rem; | |
| background: linear-gradient(135deg, var(--primary), var(--primary-dark)); | |
| color: #ffffff; | |
| border: none; | |
| border-radius: 28px; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: all 0.2s cubic-bezier(0.2, 0, 0.2, 1); | |
| font-size: 0.95rem; | |
| box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2); | |
| } | |
| .send-button:hover:not(:disabled) { | |
| transform: translateY(-2px); | |
| box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3); | |
| } | |
| .send-button:active { | |
| transform: translateY(0); | |
| } | |
| .send-button:disabled { | |
| opacity: 0.6; | |
| cursor: not-allowed; | |
| transform: none; | |
| box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1); | |
| } | |
| .examples { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | |
| gap: 1rem; | |
| margin-top: 1rem; | |
| } | |
| .example { | |
| background: linear-gradient(135deg, var(--surface), var(--surface-elevated)); | |
| border: 1px solid var(--border); | |
| border-radius: 12px; | |
| padding: 1.5rem; | |
| cursor: pointer; | |
| transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1); | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .example::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: -100%; | |
| width: 100%; | |
| height: 100%; | |
| background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.05), transparent); | |
| transition: left 0.5s ease; | |
| } | |
| .example:hover::before { | |
| left: 100%; | |
| } | |
| .example:hover { | |
| border-color: var(--primary); | |
| transform: translateY(-4px); | |
| box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2); | |
| background: linear-gradient(135deg, var(--surface-elevated), var(--surface)); | |
| } | |
| .example-title { | |
| font-weight: 600; | |
| color: var(--text); | |
| margin-bottom: 0.5rem; | |
| font-size: 0.95rem; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .example-title i { | |
| color: var(--primary); | |
| font-size: 1rem; | |
| width: 20px; | |
| text-align: center; | |
| } | |
| .example-desc { | |
| font-size: 0.85rem; | |
| color: var(--text-secondary); | |
| font-weight: 400; | |
| } | |
| .loading { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| color: var(--text-secondary); | |
| font-weight: 500; | |
| } | |
| .loading::after { | |
| content: ''; | |
| width: 14px; | |
| height: 14px; | |
| border: 2px solid currentColor; | |
| border-top-color: transparent; | |
| border-radius: 50%; | |
| animation: spin 1s linear infinite; | |
| } | |
| @keyframes spin { | |
| to { transform: rotate(360deg); } | |
| } | |
| .loading-indicator { | |
| display: none; | |
| background: var(--surface-elevated); | |
| border: 1px solid var(--border); | |
| border-radius: 12px; | |
| padding: 1.5rem; | |
| margin: 1rem 0; | |
| text-align: center; | |
| color: var(--text-secondary); | |
| } | |
| .loading-indicator.active { | |
| display: block; | |
| } | |
| .loading-spinner { | |
| display: inline-block; | |
| width: 20px; | |
| height: 20px; | |
| border: 2px solid var(--border); | |
| border-top-color: var(--primary); | |
| border-radius: 50%; | |
| animation: spin 1s linear infinite; | |
| margin-right: 0.5rem; | |
| } | |
| .progress-container { | |
| width: 100%; | |
| height: 4px; | |
| background: var(--border); | |
| border-radius: 2px; | |
| overflow: hidden; | |
| margin: 10px 0 0 0; | |
| } | |
| .progress-bar { | |
| height: 100%; | |
| background: linear-gradient(90deg, var(--primary), var(--accent)); | |
| border-radius: 2px; | |
| transition: width 0.3s ease; | |
| width: 0%; | |
| } | |
| .status-indicator { | |
| position: fixed; | |
| top: 20px; | |
| right: 20px; | |
| background: var(--surface); | |
| border: 1px solid var(--border); | |
| border-radius: 8px; | |
| padding: 0.75rem 1rem; | |
| font-size: 0.85rem; | |
| color: var(--text-secondary); | |
| opacity: 0; | |
| transform: translateY(-10px); | |
| transition: all 0.3s ease; | |
| z-index: 1000; | |
| } | |
| .status-indicator.show { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| .status-indicator.processing { | |
| border-color: var(--primary); | |
| background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(0, 102, 255, 0.02)); | |
| } | |
| .visualization-container { | |
| margin: 1.5rem 0; | |
| background: var(--surface-elevated); | |
| border-radius: 12px; | |
| padding: 1.5rem; | |
| border: 1px solid var(--border); | |
| } | |
| .welcome { | |
| text-align: center; | |
| padding: 4rem 2rem; | |
| color: var(--text-secondary); | |
| } | |
| .welcome h3 { | |
| font-size: 1.25rem; | |
| font-weight: 600; | |
| margin-bottom: 0.5rem; | |
| color: var(--text); | |
| } | |
| .welcome p { | |
| font-size: 0.95rem; | |
| font-weight: 400; | |
| } | |
| @media (max-width: 768px) { | |
| .container { | |
| padding: 1rem; | |
| } | |
| .header-content { | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| .header-text { | |
| text-align: center; | |
| } | |
| .header h1 { | |
| font-size: 1.75rem; | |
| } | |
| .chat-messages { | |
| height: 400px; | |
| padding: 1.5rem; | |
| } | |
| .message-content { | |
| max-width: 85%; | |
| padding: 1rem 1.25rem; | |
| } | |
| .input-area { | |
| padding: 1.5rem; | |
| } | |
| .input-container { | |
| flex-direction: column; | |
| gap: 0.75rem; | |
| } | |
| .send-button { | |
| align-self: stretch; | |
| } | |
| .examples { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |