* { margin: 0; padding: 0; box-sizing: border-box; } :root { --bg: #0f172a; --surface: #1e293b; --surface-2: #334155; --border: #475569; --text: #e2e8f0; --text-muted: #94a3b8; --primary: #6366f1; --primary-hover: #818cf8; --success: #22c55e; --warning: #f59e0b; --error: #ef4444; --info: #3b82f6; --sidebar-w: 300px; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; } .app { display: flex; min-height: 100vh; } /* Sidebar */ .sidebar { width: var(--sidebar-w); min-width: var(--sidebar-w); background: var(--surface); padding: 1.5rem; border-right: 1px solid var(--border); overflow-y: auto; height: 100vh; position: sticky; top: 0; } .sidebar h2 { font-size: 1.25rem; margin-bottom: 1rem; } .sidebar h3 { font-size: 1rem; margin: 0.5rem 0; color: var(--text-muted); } .sidebar label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.75rem; margin-bottom: 0.25rem; } .sidebar input, .sidebar select { width: 100%; padding: 0.5rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--text); font-size: 0.875rem; } .sidebar input:focus, .sidebar select:focus { outline: none; border-color: var(--primary); } .sidebar hr { border: none; border-top: 1px solid var(--border); margin: 1rem 0; } /* Date input styling */ .sidebar .date-input { appearance: none; -webkit-appearance: none; position: relative; cursor: pointer; } .sidebar .date-input::-webkit-calendar-picker-indicator { filter: invert(0.7) sepia(0.5) saturate(5) hue-rotate(200deg); cursor: pointer; opacity: 0.7; transition: opacity 0.15s; } .sidebar .date-input::-webkit-calendar-picker-indicator:hover { opacity: 1; } /* Slider group layout */ .slider-group { margin-top: 0.75rem; } .slider-group label { margin-top: 0 !important; } .slider-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.35rem; } .slider-value { font-size: 0.85rem; font-weight: 600; color: var(--primary); background: rgba(99, 102, 241, 0.12); padding: 0.1rem 0.5rem; border-radius: 4px; min-width: 3rem; text-align: center; } .slider-ticks { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); margin-top: 0.15rem; opacity: 0.6; } /* Custom range slider */ .styled-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--surface-2); border: none !important; outline: none; padding: 0 !important; cursor: pointer; transition: background 0.15s; } .styled-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); border: 2px solid var(--surface); cursor: pointer; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); transition: box-shadow 0.15s, transform 0.15s; } .styled-range::-webkit-slider-thumb:hover { box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.3); transform: scale(1.1); } .styled-range::-webkit-slider-thumb:active { box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.35); transform: scale(1.15); } .styled-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--primary); border: 2px solid var(--surface); cursor: pointer; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); transition: box-shadow 0.15s, transform 0.15s; } .styled-range::-moz-range-thumb:hover { box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.3); } .styled-range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--surface-2); border: none; } .styled-range:focus { outline: none; } .styled-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.3); } .button-group { display: flex; gap: 0.5rem; margin-top: 1.25rem; } /* Buttons */ .btn { padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 0.875rem; transition: background 0.15s; } .btn:hover:not(:disabled) { background: var(--border); } .btn:disabled { opacity: 0.5; cursor: not-allowed; } .btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; } .btn.primary:hover:not(:disabled) { background: var(--primary-hover); } /* Main content */ .main { flex: 1; padding: 2rem; overflow-y: auto; } .main h1 { font-size: 1.75rem; margin-bottom: 1.5rem; } /* Sections */ .section { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; margin-bottom: 1.5rem; } .section h2 { font-size: 1.25rem; margin-bottom: 1rem; } .section h3 { font-size: 1rem; color: var(--text-muted); margin: 1rem 0 0.5rem; } /* Metrics cards */ .metrics-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.5rem; } .metric-card { flex: 1 1 140px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.25rem; } .metric-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; } .metric-value { font-size: 1.25rem; font-weight: 600; } /* Two column layout */ .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1rem; } /* Tables */ .data-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0; font-size: 0.875rem; } .data-table th, .data-table td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); } .data-table th { color: var(--text-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; } .data-table tr:last-child td { border-bottom: none; } /* Alerts */ .alert { padding: 0.6rem 1rem; border-radius: 6px; font-size: 0.875rem; margin-top: 0.5rem; } .alert.success { background: rgba(34, 197, 94, 0.15); color: var(--success); } .alert.warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); } .alert.info { background: rgba(59, 130, 246, 0.15); color: var(--info); } .caption { font-size: 0.8rem; color: var(--text-muted); } .status-banner { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1.5rem; font-size: 0.9rem; font-weight: 500; display: flex; align-items: center; gap: 0.5rem; } .status-banner.success { background: rgba(34, 197, 94, 0.1); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.2); } .status-banner.error { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); } .status-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; margin-top: 0.25rem; } .status-badge.on-track { background: rgba(34, 197, 94, 0.15); color: #22c55e; } .status-badge.off-track { background: rgba(239, 68, 68, 0.15); color: #ef4444; } /* Tabs */ .tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; } .tab { padding: 0.5rem 1rem; border: none; background: none; color: var(--text-muted); cursor: pointer; font-size: 0.875rem; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; } .tab:hover { color: var(--text); } .tab.active { color: var(--primary); border-bottom-color: var(--primary); } .tab-content { min-height: 100px; } /* Markdown body styling */ .markdown-body { font-size: 0.875rem; line-height: 1.7; color: var(--text); } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { margin-top: 1rem; margin-bottom: 0.5rem; color: var(--text); } .markdown-body h1 { font-size: 1.3rem; } .markdown-body h2 { font-size: 1.15rem; } .markdown-body h3 { font-size: 1.05rem; } .markdown-body h4 { font-size: 0.95rem; } .markdown-body p { margin: 0.5rem 0; } .markdown-body ul, .markdown-body ol { padding-left: 1.5rem; margin: 0.5rem 0; } .markdown-body li { margin: 0.25rem 0; } .markdown-body strong { color: #f1f5f9; } .markdown-body code { background: var(--bg); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.8rem; font-family: "SF Mono", "Fira Code", monospace; } .markdown-body pre { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 0.75rem 1rem; overflow-x: auto; margin: 0.5rem 0; } .markdown-body pre code { background: none; padding: 0; } .markdown-body blockquote { border-left: 3px solid var(--primary); padding-left: 0.75rem; margin: 0.5rem 0; color: var(--text-muted); } .markdown-body table { width: 100%; border-collapse: collapse; margin: 0.5rem 0; font-size: 0.8rem; } .markdown-body th, .markdown-body td { padding: 0.4rem 0.6rem; border: 1px solid var(--border); text-align: left; } .markdown-body th { background: var(--surface-2); font-weight: 600; } .markdown-body hr { border: none; border-top: 1px solid var(--border); margin: 0.75rem 0; } /* Chat */ .chat-container { display: flex; flex-direction: column; gap: 0.75rem; } .chat-messages { max-height: 400px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; } .chat-msg { padding: 0.75rem 1rem; border-radius: 8px; max-width: 85%; } .chat-msg.user { background: var(--primary); color: #fff; align-self: flex-end; } .chat-msg.assistant { background: var(--surface-2); align-self: flex-start; } .chat-role { font-size: 0.7rem; text-transform: uppercase; opacity: 0.7; display: block; margin-bottom: 0.25rem; } .chat-text { white-space: pre-wrap; word-wrap: break-word; font-family: inherit; font-size: 0.875rem; line-height: 1.5; } .thinking { opacity: 0.6; animation: pulse 1.5s infinite; } @keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 0.3; } } .chat-input-row { display: flex; gap: 0.5rem; } .chat-input { flex: 1; padding: 0.6rem 1rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--text); font-size: 0.875rem; } .chat-input:focus { outline: none; border-color: var(--primary); } /* Status */ .loading { background: rgba(99, 102, 241, 0.15); color: var(--primary); padding: 0.6rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: 0.875rem; } .error { background: rgba(239, 68, 68, 0.15); color: var(--error); padding: 0.6rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: 0.875rem; } /* Details/summary */ details { margin-top: 0.75rem; } summary { cursor: pointer; color: var(--primary); font-size: 0.875rem; } /* Recharts overrides */ .recharts-cartesian-axis-tick-value { fill: var(--text-muted) !important; font-size: 0.75rem; } .recharts-label { fill: var(--text-muted) !important; font-size: 0.8rem; } .recharts-legend-item-text { color: var(--text) !important; font-size: 0.8rem; } .recharts-tooltip-wrapper .recharts-default-tooltip { background: var(--surface) !important; border-color: var(--border) !important; border-radius: 6px; } /* Auth screen */ .auth-backdrop { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 1rem; } .auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 2.5rem; width: 100%; max-width: 400px; } .auth-title { font-size: 1.75rem; text-align: center; margin-bottom: 0.25rem; } .auth-subtitle { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; } .auth-error { background: rgba(239, 68, 68, 0.15); color: var(--error); padding: 0.5rem 0.75rem; border-radius: 6px; font-size: 0.85rem; margin-bottom: 1rem; text-align: center; } .auth-form label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.75rem; margin-bottom: 0.25rem; } .auth-form input { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--text); font-size: 0.9rem; } .auth-form input:focus { outline: none; border-color: var(--primary); } .auth-btn { width: 100%; margin-top: 1.25rem; padding: 0.65rem; font-size: 0.95rem; } .auth-toggle { text-align: center; margin-top: 1.25rem; font-size: 0.85rem; color: var(--text-muted); } .auth-link { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 0.85rem; text-decoration: underline; } /* Beta Analysis */ .beta-analysis h2 { margin-top: 0; font-size: 1.5rem; font-weight: 600; color: var(--text-base); } .beta-summary { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.5rem; margin-top: 1rem; } .beta-header { margin-bottom: 1.5rem; } .beta-header .metric-label { display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); font-size: 0.95rem; } .beta-value { font-size: 3rem; font-weight: 700; margin: 0.5rem 0; color: var(--text-base); } .help-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; background: var(--border-color); color: var(--text-muted); border-radius: 50%; font-size: 0.75rem; cursor: help; } .beta-intro { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 2rem; } .beta-details { border-top: 1px solid var(--border-color); padding-top: 1rem; } .beta-details summary { cursor: pointer; font-weight: 500; font-size: 0.95rem; color: var(--text-base); list-style: none; display: flex; align-items: center; gap: 0.5rem; } .beta-details summary::before { content: "▼"; font-size: 0.7rem; transition: transform 0.2s; } .beta-details[open] summary::before { transform: rotate(180deg); } .details-content { margin-top: 1.5rem; } .raw-json-section h4 { margin: 1.5rem 0 0.75rem; color: var(--text-base); font-size: 0.95rem; } .json-block { background: #0f172a; color: #94a3b8; padding: 1rem; border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; overflow-x: auto; border: 1px solid var(--border-color); } .auth-link:hover { color: var(--primary-hover); } /* Logout button in header */ .main-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; } .main-header h1 { margin-bottom: 0; } .user-badge { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; color: var(--text-muted); } .btn.logout { padding: 0.35rem 0.75rem; font-size: 0.8rem; } @media (max-width: 900px) { .app { flex-direction: column; } .sidebar { width: 100%; min-width: auto; height: auto; position: static; } .two-col { grid-template-columns: 1fr; } }