:root{--bg-primary: #0a0a0f;--bg-secondary: #111118;--bg-card: rgba(255,255,255,.04);--bg-card-hover: rgba(255,255,255,.07);--border: rgba(255,255,255,.08);--border-accent: rgba(139,92,246,.4);--accent-purple: #8b5cf6;--accent-cyan: #22d3ee;--accent-green: #34d399;--accent-red: #f87171;--text-primary: #f1f5f9;--text-secondary: #94a3b8;--text-muted: #475569;--radius-sm: 6px;--radius-md: 12px;--radius-lg: 18px;--radius-xl: 24px;--shadow-glow: 0 0 16px rgba(139,92,246,.2)}[data-theme=light]{--bg-primary: #f8fafc;--bg-secondary: #f1f5f9;--bg-card: #ffffff;--bg-card-hover: #f8fafc;--border: #e2e8f0;--border-accent: #cbd5e1;--accent-purple: #7c3aed;--accent-cyan: #0891b2;--accent-green: #10b981;--accent-red: #ef4444;--text-primary: #0f172a;--text-secondary: #334155;--text-muted: #64748b;--shadow-glow: 0 4px 15px rgba(0, 0, 0, .05)}--shadow-card: 0 4px 24px rgba(0,0,0,.4); --font-sans: "Inter", system-ui, sans-serif; --font-mono: "JetBrains Mono", "Fira Code", monospace; --sidebar-width: 280px; --header-height: 60px; } *, *::before, *::after {box-sizing:border-box;margin:0;padding:0}html{font-size:16px;scroll-behavior:smooth}body{font-family:var(--font-sans);background:var(--bg-primary);color:var(--text-primary);line-height:1.6;min-height:100vh;-webkit-font-smoothing:antialiased}#root{min-height:100vh}.btn{display:inline-flex;align-items:center;gap:8px;border:none;border-radius:var(--radius-md);font-family:var(--font-sans);font-weight:500;cursor:pointer;transition:all .2s ease;text-decoration:none}.btn-primary{background:linear-gradient(135deg,var(--accent-purple),#6d28d9);color:#fff;padding:12px 28px;font-size:1rem;box-shadow:0 4px 20px #8b5cf659}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 30px #8b5cf680}.btn-ghost{background:transparent;color:var(--text-secondary);border:1px solid var(--border);padding:6px 14px;font-size:.85rem}.btn-ghost:hover{background:var(--bg-card);color:var(--text-primary)}.btn-sm{padding:6px 12px;font-size:.8rem}.btn-lg{padding:16px 36px;font-size:1.1rem;border-radius:var(--radius-lg)}.home-page{min-height:100vh;background:radial-gradient(ellipse at 50% 0%,rgba(139,92,246,.12) 0%,transparent 60%);padding:0 24px}.hero{max-width:820px;margin:0 auto;padding:120px 0 80px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:24px}.hero-badge{display:inline-block;background:#8b5cf626;border:1px solid var(--border-accent);color:var(--accent-purple);padding:6px 18px;border-radius:999px;font-size:.8rem;font-weight:500}.hero-title{font-size:clamp(2.4rem,6vw,4rem);font-weight:700;line-height:1.15;letter-spacing:-.03em}.hero-accent{background:linear-gradient(135deg,var(--accent-purple),var(--accent-cyan));-webkit-background-clip:text;-webkit-text-fill-color:transparent}.hero-subtitle{font-size:1.15rem;color:var(--text-secondary);max-width:560px;line-height:1.7}.features{max-width:960px;margin:0 auto 80px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px}.feature-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:28px 24px;transition:all .2s ease}.feature-card:hover{background:var(--bg-card-hover);border-color:var(--border-accent);transform:translateY(-3px);box-shadow:var(--shadow-glow: 0 0 16px rgba(139,92,246,.2); } [data-theme="light"] { --bg-primary: #f8fafc; --bg-secondary: #f1f5f9; --bg-card: #ffffff; --bg-card-hover: #f8fafc; --border: #e2e8f0; --border-accent: #cbd5e1; --accent-purple: #7c3aed; --accent-cyan: #0891b2; --accent-green: #10b981; --accent-red: #ef4444; --text-primary: #0f172a; --text-secondary: #334155; --text-muted: #64748b; --shadow-glow: 0 4px 15px rgba(0, 0, 0, .05); } .feature-icon { font-size: 2rem; margin-bottom: 12px; } .feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; } .feature-card p { font-size: .875rem; color: var(--text-secondary); line-height: 1.6; } .pipeline { max-width: 960px; margin: 0 auto 80px; text-align: center; } .pipeline h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 32px; } .pipeline-steps { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; } .pipeline-step { display: flex; align-items: center; gap: 0; } .step-number { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-purple), #6d28d9); display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; } .step-label { background: var(--bg-card); border: 1px solid var(--border); padding: 8px 16px; border-radius: var(--radius-md); font-size: .85rem; margin-left: 8px; } .step-arrow { color: var(--text-muted); font-size: 1.2rem; padding: 0 12px; } .chat-page { display: flex; height: 100vh; overflow: hidden; } .sidebar { width: var(--sidebar-width); flex-shrink: 0; background: var(--bg-secondary); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; } .sidebar-header { padding: 20px 20px 12px; border-bottom: 1px solid var(--border); } .sidebar-title { font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 10px; } .sidebar-logo { font-size: 1.3rem; } .sidebar-section { flex: 1; overflow-y: auto; padding: 12px 0; } .sidebar-section-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); } .sidebar-empty { padding: 16px 20px; font-size: .82rem; color: var(--text-muted); } .sidebar-spinner { width: 12px; height: 12px; border: 2px solid var(--border); border-top-color: var(--accent-purple); border-radius: 50%; animation: spin .8s linear infinite; } .doc-list { list-style: none; padding: 0 8px; } .doc-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: .84rem; color: var(--text-secondary); transition: all .15s ease; position: relative; } .doc-item:hover { background: var(--bg-card); color: var(--text-primary); } .doc-item-active { background: rgba(139,92,246,.15) !important; color: var(--accent-purple) !important; border: 1px solid rgba(139,92,246,.25); } .doc-icon { flex-shrink: 0; } .doc-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .doc-count { flex-shrink: 0; background: var(--bg-card); border-radius: 999px; padding: 1px 7px; font-size: .7rem; color: var(--text-muted); } .doc-delete-btn { opacity: 0; flex-shrink: 0; background: none; border: none; cursor: pointer; font-size: .9rem; padding: 2px; transition: opacity .15s; } .doc-item:hover .doc-delete-btn { opacity: 1; } .upload-panel { margin: 12px; border: 2px dashed var(--border); border-radius: var(--radius-md); transition: all .2s ease; background: var(--bg-card); } .upload-panel:hover, .upload-active { border-color: var(--accent-purple); background: rgba(139,92,246,.06); } .upload-done { border-color: var(--accent-green); background: rgba(52,211,153,.06); } .upload-error { border-color: var(--accent-red); background: rgba(248,113,113,.06); } .upload-input-hidden { display: none; } .upload-label { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 16px; cursor: pointer; gap: 6px; min-height: 100px; } .upload-icon { font-size: 1.8rem; } .upload-text { font-size: .85rem; font-weight: 500; color: var(--text-primary); text-align: center; } .upload-subtext { font-size: .75rem; color: var(--text-muted); text-align: center; } .upload-spinner { width: 22px; height: 22px; border: 2px solid var(--border); border-top-color: var(--accent-purple); border-radius: 50%; animation: spin .7s linear infinite; } .chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; } .chat-header { height: var(--header-height); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: var(--bg-secondary); flex-shrink: 0; } .chat-header-title { font-size: .95rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .chat-header-meta { font-size: .75rem; color: var(--text-muted); margin-top: 2px; } .chat-header-info { display: flex; flex-direction: column; min-width: 0; } .chat-window { flex: 1; display: flex; flex-direction: column; overflow: hidden; } .message-list { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 20px; scroll-behavior: smooth; } .message-list::-webkit-scrollbar { width: 6px; } .message-list::-webkit-scrollbar-track { background: transparent; } .message-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; } .chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; color: var(--text-secondary); padding: 60px 24px; } .chat-empty-icon { font-size: 3rem; } .chat-empty h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); } .chat-empty p { font-size: .875rem; max-width: 360px; } .message-bubble { display: flex; gap: 12px; max-width: 860px; animation: fadeSlideUp .25s ease; } .message-user { flex-direction: row-reverse; align-self: flex-end; } .message-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; } .message-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; max-width: 720px; } .message-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 18px; font-size: .9rem; line-height: 1.7; } .message-user .message-content { background: linear-gradient(135deg, rgba(139,92,246,.2), rgba(109,40,217,.15)); border-color: rgba(139,92,246,.3); } .message-latency { font-size: .7rem; color: var(--text-muted); align-self: flex-end; } .typing-indicator { display: flex; align-items: center; gap: 5px; padding: 12px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); } .typing-indicator span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-purple); opacity: .4; animation: pulse 1.2s ease-in-out infinite; } .typing-indicator span:nth-child(2) { animation-delay: .2s; } .typing-indicator span:nth-child(3) { animation-delay: .4s; } .source-cards { display: flex; flex-direction: column; gap: 8px; } .source-card { background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 4px 10px; font-size: .8rem; } .source-badge { grid-row: 1; background: linear-gradient(135deg, var(--accent-purple), #6d28d9); color: white; font-size: .65rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; align-self: center; } .source-name { grid-row: 1; font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .source-score { grid-row: 1; color: var(--accent-cyan); font-weight: 600; font-family: var(--font-mono); font-size: .75rem; } .source-preview { grid-column: 2 / 4; grid-row: 2; color: var(--text-secondary); line-height: 1.5; } .citation-badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(139,92,246,.15); border: 1px solid rgba(139,92,246,.3); border-radius: 999px; padding: 1px 8px; margin: 0 2px; font-size: .75rem; cursor: help; transition: all .15s ease; white-space: nowrap; vertical-align: middle; } .citation-badge:hover { background: rgba(139,92,246,.3); border-color: var(--accent-purple); } .citation-number { font-weight: 700; color: var(--accent-purple); font-family: var(--font-mono); } .citation-source { color: var(--text-secondary); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .citation-unknown { color: var(--text-muted); font-family: var(--font-mono); font-size: .8rem; } .chat-input-bar { display: flex; align-items: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border); background: var(--bg-secondary); } .chat-input { flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 16px; color: var(--text-primary); font-family: var(--font-sans); font-size: .9rem; line-height: 1.5; resize: none; max-height: 160px; overflow-y: auto; transition: border-color .2s; } .chat-input:focus { outline: none; border-color: var(--accent-purple); } .chat-input::placeholder { color: var(--text-muted); } .chat-input:disabled { opacity: .5; } .chat-send-btn { width: 44px; height: 44px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--accent-purple), #6d28d9); color: white; border: none; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: all .2s ease; flex-shrink: 0; } .chat-send-btn:hover:not(:disabled) { transform: scale(1.05); box-shadow: 0 4px 16px rgba(139,92,246,.4); } .chat-send-btn:disabled { opacity: .4; cursor: not-allowed; } @keyframes fadeSlideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @keyframes spin { to { transform: rotate(360deg); } } @keyframes pulse { 0%, 80%, 100% { opacity: .4; transform: scale(1); } 40% { opacity: 1; transform: scale(1.3); } } * { scrollbar-width: thin; scrollbar-color: var(--border) transparent; } )}
