:root { --bg-app: #0f172a; --bg-sidebar: #1e293b; --bg-panel: #1e293b; --bg-input: #334155; --border-color: #334155; --primary: #3b82f6; --primary-hover: #2563eb; --text-main: #f8fafc; --text-muted: #94a3b8; --accent-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6); --radius-lg: 12px; --radius-md: 8px; --radius-sm: 4px; --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); } @keyframes glow-rotate { 0% { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4), 0 0 25px rgba(59, 130, 246, 0.6), 0 0 50px rgba(59, 130, 246, 0.3), -10px 0 30px rgba(139, 92, 246, 0.4), var(--shadow-lg); } 25% { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4), 0 0 25px rgba(59, 130, 246, 0.6), 0 0 50px rgba(59, 130, 246, 0.3), 0 -10px 30px rgba(139, 92, 246, 0.4), var(--shadow-lg); } 50% { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4), 0 0 25px rgba(59, 130, 246, 0.6), 0 0 50px rgba(59, 130, 246, 0.3), 10px 0 30px rgba(139, 92, 246, 0.4), var(--shadow-lg); } 75% { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4), 0 0 25px rgba(59, 130, 246, 0.6), 0 0 50px rgba(59, 130, 246, 0.3), 0 10px 30px rgba(139, 92, 246, 0.4), var(--shadow-lg); } 100% { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4), 0 0 25px rgba(59, 130, 246, 0.6), 0 0 50px rgba(59, 130, 246, 0.3), -10px 0 30px rgba(139, 92, 246, 0.4), var(--shadow-lg); } } * { box-sizing: border-box; } body { margin: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; background-color: var(--bg-app); color: var(--text-main); -webkit-font-smoothing: antialiased; } #root { height: 100vh; display: flex; overflow: hidden; } /* Layout */ .app-shell { display: grid; grid-template-columns: 280px 1fr; width: 100%; height: 100vh; } /* Sidebar */ .sidebar { background-color: var(--bg-sidebar); border-right: 1px solid var(--border-color); padding: 1.5rem; display: flex; flex-direction: column; gap: 2rem; overflow-y: auto; height: 100%; min-height: 0; } .brand { display: flex; align-items: center; gap: 0.75rem; } .brand h1 { font-size: 1.25rem; font-weight: 700; margin: 0; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .sidebar-section h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 1rem; } /* Dataset Controls */ .dataset-control { display: flex; flex-direction: column; gap: 1rem; } .input-group { display: flex; flex-direction: column; gap: 0.5rem; } .input-group label { font-size: 0.875rem; color: var(--text-muted); } .input-group input { background: var(--bg-app); border: 1px solid var(--border-color); color: var(--text-main); padding: 0.5rem; border-radius: var(--radius-md); font-size: 0.875rem; } .btn-secondary { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); padding: 0.5rem; border-radius: var(--radius-md); cursor: pointer; font-size: 0.875rem; transition: all 0.2s; } .btn-secondary:hover:not(:disabled) { background: var(--bg-input); } .btn-primary { background: var(--primary); border: none; color: white; padding: 0.5rem 1rem; border-radius: var(--radius-md); cursor: pointer; font-weight: 500; transition: background 0.2s; } .btn-primary:hover:not(:disabled) { background: var(--primary-hover); } .upload-label { display: block; text-align: center; background: var(--bg-input); border: 1px dashed var(--text-muted); padding: 1rem; border-radius: var(--radius-md); cursor: pointer; font-size: 0.875rem; transition: all 0.2s; } .upload-label:hover { border-color: var(--primary); color: var(--primary); } .upload-label input { display: none; } .dataset-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; } .dataset-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem; background: var(--bg-app); border-radius: var(--radius-md); font-size: 0.8rem; } .dataset-item strong { color: var(--primary); } /* Main Content */ .main-content { display: grid; grid-template-columns: 1fr 400px; overflow: hidden; height: 100%; min-height: 0; } /* Chat Area */ .chat-section { display: flex; flex-direction: column; height: 100%; min-height: 0; position: relative; overflow: hidden; } .chat-header { padding: 1rem 2rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(8px); } .status-indicator { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-muted); } .dot { width: 8px; height: 8px; border-radius: 50%; background-color: #22c55e; } .dot.busy { background-color: #eab308; animation: pulse 1.5s infinite; } @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } } .messages-container { flex: 1; overflow-y: auto; padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; min-height: 0; scroll-behavior: smooth; } .welcome-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; color: var(--text-muted); max-width: 600px; margin: 0 auto; } .welcome-screen h2 { color: var(--text-main); font-size: 2rem; margin-bottom: 1rem; } .quick-prompts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; width: 100%; } .prompt-card { background: var(--bg-panel); border: 1px solid var(--border-color); padding: 1rem; border-radius: var(--radius-lg); text-align: left; cursor: pointer; transition: all 0.2s; } .prompt-card:hover { border-color: var(--primary); transform: translateY(-2px); } /* Messages */ .message { display: flex; gap: 1rem; max-width: 800px; } .message.user { flex-direction: row-reverse; align-self: flex-end; } .avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; } .message.agent .avatar { background: var(--primary); color: white; } .message.user .avatar { background: var(--text-muted); color: var(--bg-app); } .message-content { background: var(--bg-panel); padding: 1rem 1.5rem; border-radius: var(--radius-lg); border-top-left-radius: 2px; line-height: 1.6; font-size: 0.95rem; } .message.user .message-content { background: var(--primary); color: white; border-top-left-radius: var(--radius-lg); border-top-right-radius: 2px; } .input-area { padding: 2rem; background: linear-gradient(to top, var(--bg-app) 80%, transparent); } .input-wrapper { max-width: 1500px; margin: 0 auto; position: relative; } .input-shell { display: flex; align-items: flex-end; gap: 1rem; background: var(--bg-panel); border: 2px solid var(--border-color); padding: 1.5rem 1.5rem 1.5rem 2rem; border-radius: 999px; box-shadow: var(--shadow-lg); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; } .input-shell:focus-within { border-color: var(--primary); animation: glow-rotate 3s ease-in-out infinite; } .input-wrapper textarea { flex: 1; width: 100%; background: transparent; border: none; padding: 0; border-radius: 0; color: var(--text-main); font-size: 1.05rem; resize: none; min-height: 50px; line-height: 1.6; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; } .input-wrapper textarea:focus { outline: none; } .send-btn { flex-shrink: 0; border: none; background: linear-gradient(135deg, #60a5fa, #8b5cf6); width: 80px; height: 56px; border-radius: 999px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35); transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s; } .send-btn svg { width: 26px; height: 26px; stroke: currentColor; fill: none; } .send-btn:hover:not(:disabled) { transform: translateX(2px) scale(1.02); box-shadow: 0 12px 28px rgba(99, 102, 241, 0.5); } .send-btn:disabled { opacity: 0.6; cursor: not-allowed; } /* Results Panel */ .results-section { background: var(--bg-sidebar); border-left: 1px solid var(--border-color); display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; } .results-header { padding: 1rem; border-bottom: 1px solid var(--border-color); } .results-header h2 { margin: 0; font-size: 1rem; font-weight: 600; } .results-content { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 1rem; min-height: 0; } .result-card { background: var(--bg-app); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1rem; } .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); } .badge { background: rgba(59, 130, 246, 0.1); color: var(--primary); padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.7rem; } .trend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; text-align: center; } .trend-grid div { display: flex; flex-direction: column; gap: 0.25rem; } .trend-grid span { font-size: 0.75rem; color: var(--text-muted); } .trend-grid strong { font-size: 1rem; } .anomaly-list { list-style: none; padding: 0; margin: 0; } .anomaly-list li { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border-color); font-size: 0.875rem; } .anomaly-list li:last-child { border-bottom: none; } code { display: block; background: #000; padding: 0.75rem; border-radius: var(--radius-sm); font-family: 'Fira Code', monospace; font-size: 0.8rem; overflow-x: auto; color: #a5b4fc; } .viz-container img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border-color); } .table-container { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: 0.8rem; } th, td { padding: 0.5rem; text-align: left; border-bottom: 1px solid var(--border-color); } th { color: var(--text-muted); font-weight: 500; } .download-btn { display: block; width: 100%; text-align: center; background: var(--bg-input); color: var(--text-main); text-decoration: none; padding: 0.75rem; border-radius: var(--radius-md); font-size: 0.875rem; transition: background 0.2s; } .download-btn:hover { background: var(--border-color); } .empty-state-results { text-align: center; color: var(--text-muted); padding: 2rem; font-size: 0.9rem; } /* Responsive */ @media (max-width: 1024px) { .main-content { grid-template-columns: 1fr; } .results-section { display: none; /* Or make it a modal/drawer */ } .results-section.active { display: flex; position: fixed; inset: 0; z-index: 50; } } .viz-preview img { width: 100%; display: block; } .chart-summary { margin-top: 0.75rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); } .report-chip { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.75rem; padding: 0.4rem 0.9rem; border-radius: 999px; text-decoration: none; color: #1b1d34; background: #9ef4c5; font-weight: 600; } .diagnostic-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; } .diagnostic-chip { font-size: 0.75rem; border-radius: 999px; padding: 0.25rem 0.7rem; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); } .input-area { margin-top: 1.5rem; display: flex; gap: 0.75rem; } .input-area input { flex: 1; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.04); color: inherit; padding: 0.95rem 1.4rem; font-size: 1.05rem; } .input-area input:focus { outline: none; border-color: rgba(122, 131, 255, 0.6); } .input-area button { border: none; border-radius: 999px; padding: 0.95rem 1.8rem; background: linear-gradient(135deg, #7a83ff, #5cd4f4); color: #05070f; font-weight: 600; cursor: pointer; transition: transform 0.2s ease; } .input-area button:disabled { opacity: 0.5; cursor: not-allowed; } .input-area button:not(:disabled):hover { transform: translateY(-1px); } .error-text { margin-top: 0.75rem; color: #ffb4b4; font-size: 0.9rem; } .result-stack { display: flex; flex-direction: column; gap: 1.25rem; } .insight-card { background: rgba(158, 244, 197, 0.08); border: 1px solid rgba(158, 244, 197, 0.4); border-radius: 16px; padding: 1rem 1.2rem; color: #d4ffe7; } .meta-card { border-radius: 16px; padding: 1rem 1.2rem; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); } .trend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 0.75rem; margin-top: 0.75rem; } .trend-grid span { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.5); } .trend-grid strong { display: block; font-size: 1.1rem; } .anomaly-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; } .anomaly-list li { display: flex; gap: 0.5rem; flex-wrap: wrap; font-size: 0.85rem; color: rgba(255, 255, 255, 0.85); } .anomaly-list li strong { color: #ffffff; } .meta-head { display: flex; justify-content: space-between; font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); text-transform: uppercase; letter-spacing: 0.08em; } .badge { padding: 0.1rem 0.6rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); } .meta-card code { display: block; margin-top: 0.5rem; font-family: 'JetBrains Mono', 'Fira Code', monospace; color: #9bd0ff; white-space: pre-wrap; } .data-preview { border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.09); background: rgba(1, 2, 15, 0.4); padding: 1rem; } .table-wrapper { overflow-x: auto; margin-top: 0.75rem; } table { width: 100%; border-collapse: collapse; font-size: 0.9rem; } th, td { padding: 0.55rem 0.75rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); text-align: left; } th { font-weight: 600; color: rgba(255, 255, 255, 0.7); } .viz-card { border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.09); background: rgba(255, 255, 255, 0.03); padding: 1rem; } .viz-card img { width: 100%; border-radius: 12px; } .report-button { display: inline-flex; justify-content: center; padding: 0.9rem 1.5rem; border-radius: 12px; text-decoration: none; font-weight: 600; background: linear-gradient(135deg, #4ade80, #22d3ee); color: #041019; } .empty-state { padding: 2rem; text-align: center; color: rgba(255, 255, 255, 0.6); } @media (max-width: 1100px) { .dashboard { grid-template-columns: 1fr; } .messages-area { max-height: 45vh; } } @media (max-width: 600px) { .app-shell { padding: 2rem 1rem 3rem; } .panel { padding: 1.25rem; } .bubble { max-width: 100%; } }