Spaces:
Runtime error
Runtime error
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;1,400&display=swap'); | |
| /* Color Variables and Theme Tokens */ | |
| :root { | |
| --bg-color: #0d0d0d; | |
| --surface-color: #161616; | |
| --surface-elevated: #1f1f1f; | |
| --border-color: #2c2c2c; | |
| --primary-color: #3b82f6; | |
| --primary-glow: rgba(59, 130, 246, 0.15); | |
| --success-color: #10b981; | |
| --warning-color: #f59e0b; | |
| --error-color: #ef4444; | |
| --text-primary: #f9fafb; | |
| --text-secondary: #9ca3af; | |
| --text-muted: #6b7280; | |
| --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; | |
| --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; | |
| --sidebar-width: 300px; | |
| --transition-speed: 0.2s; | |
| } | |
| /* Reset and Base Styles */ | |
| * { | |
| box-sizing: border-box; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| body { | |
| background-color: var(--bg-color); | |
| color: var(--text-primary); | |
| font-family: var(--font-sans); | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| overflow: hidden; | |
| height: 100vh; | |
| } | |
| /* Custom Scrollbars */ | |
| ::-webkit-scrollbar { | |
| width: 8px; | |
| height: 8px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: var(--bg-color); | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: var(--border-color); | |
| border-radius: 4px; | |
| } | |
| ::-webkit-scrollbar-thumb:hover { | |
| background: var(--text-muted); | |
| } | |
| /* Two-Panel Layout */ | |
| .app-container { | |
| display: flex; | |
| height: 100vh; | |
| width: 100vw; | |
| background-color: var(--bg-color); | |
| } | |
| /* Sidebar Styles */ | |
| .sidebar { | |
| width: var(--sidebar-width); | |
| min-width: var(--sidebar-width); | |
| height: 100%; | |
| background-color: var(--surface-color); | |
| border-right: 1px solid var(--border-color); | |
| display: flex; | |
| flex-direction: column; | |
| overflow-y: auto; | |
| } | |
| .sidebar-header { | |
| padding: 20px; | |
| border-bottom: 1px solid var(--border-color); | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| } | |
| .sidebar-logo { | |
| font-size: 1.25rem; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| letter-spacing: -0.025em; | |
| display: flex; | |
| align-items: center; | |
| } | |
| .sidebar-logo span { | |
| color: var(--primary-color); | |
| margin-left: 4px; | |
| } | |
| .sidebar-content { | |
| padding: 16px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 20px; | |
| flex-grow: 1; | |
| } | |
| .divider-label { | |
| font-size: 0.7rem; | |
| font-weight: 700; | |
| text-transform: uppercase; | |
| color: var(--text-muted); | |
| letter-spacing: 0.05em; | |
| margin-bottom: 8px; | |
| margin-top: 10px; | |
| } | |
| .dataset-list { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 6px; | |
| } | |
| /* Dataset Card Item */ | |
| .dataset-item { | |
| background-color: transparent; | |
| border: 1px solid transparent; | |
| border-radius: 6px; | |
| padding: 12px; | |
| text-align: left; | |
| cursor: pointer; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| transition: all var(--transition-speed) ease; | |
| width: 100%; | |
| color: var(--text-primary); | |
| } | |
| .dataset-item:hover { | |
| background-color: var(--surface-elevated); | |
| border-color: var(--border-color); | |
| } | |
| .dataset-item.selected { | |
| background-color: var(--primary-glow); | |
| border-left: 3px solid var(--primary-color); | |
| border-top-color: transparent; | |
| border-right-color: transparent; | |
| border-bottom-color: transparent; | |
| } | |
| .dataset-info-block { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 4px; | |
| overflow: hidden; | |
| flex-grow: 1; | |
| } | |
| .dataset-title-row { | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| overflow: hidden; | |
| } | |
| .dataset-name { | |
| font-weight: 600; | |
| font-size: 0.9rem; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } | |
| .dataset-meta { | |
| font-size: 0.75rem; | |
| color: var(--text-secondary); | |
| } | |
| /* Badges */ | |
| .badge { | |
| font-size: 0.65rem; | |
| font-weight: 700; | |
| padding: 2px 6px; | |
| border-radius: 4px; | |
| text-transform: uppercase; | |
| } | |
| .badge-sample { | |
| background-color: rgba(59, 130, 246, 0.15); | |
| color: var(--primary-color); | |
| border: 1px solid rgba(59, 130, 246, 0.3); | |
| } | |
| .badge-user { | |
| background-color: rgba(16, 185, 129, 0.15); | |
| color: var(--success-color); | |
| border: 1px solid rgba(16, 185, 129, 0.3); | |
| } | |
| .badge-type { | |
| font-family: var(--font-mono); | |
| font-weight: 500; | |
| } | |
| .badge-type.text { | |
| background-color: rgba(156, 163, 175, 0.15); | |
| color: var(--text-secondary); | |
| } | |
| .badge-type.integer, .badge-type.real { | |
| background-color: rgba(59, 130, 246, 0.15); | |
| color: var(--primary-color); | |
| } | |
| .badge-type.date { | |
| background-color: rgba(167, 139, 250, 0.15); | |
| color: #a78bfa; | |
| } | |
| /* Delete Button on User Dataset Card */ | |
| .btn-delete-dataset { | |
| background: transparent; | |
| border: none; | |
| cursor: pointer; | |
| color: var(--text-muted); | |
| padding: 4px; | |
| border-radius: 4px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| transition: all var(--transition-speed) ease; | |
| } | |
| .btn-delete-dataset:hover { | |
| color: var(--error-color); | |
| background-color: rgba(239, 68, 68, 0.1); | |
| } | |
| /* Main Area Container */ | |
| .main-content { | |
| flex-grow: 1; | |
| height: 100%; | |
| overflow-y: auto; | |
| padding: 32px; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| /* Upload & Empty View */ | |
| .empty-state-container { | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| align-items: center; | |
| flex-grow: 1; | |
| max-width: 600px; | |
| margin: 0 auto; | |
| text-align: center; | |
| gap: 24px; | |
| width: 100%; | |
| } | |
| .empty-state-container h2 { | |
| font-size: 1.75rem; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| } | |
| .empty-state-container p { | |
| color: var(--text-secondary); | |
| font-size: 0.95rem; | |
| line-height: 1.5; | |
| } | |
| .drag-drop-zone { | |
| border: 2px dashed var(--border-color); | |
| border-radius: 12px; | |
| background-color: var(--surface-color); | |
| padding: 48px; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 16px; | |
| cursor: pointer; | |
| transition: all var(--transition-speed) ease; | |
| width: 100%; | |
| } | |
| .drag-drop-zone:hover, .drag-drop-zone.active { | |
| border-color: var(--primary-color); | |
| background-color: var(--surface-elevated); | |
| } | |
| .upload-icon { | |
| font-size: 2.5rem; | |
| color: var(--text-muted); | |
| } | |
| .drag-drop-zone:hover .upload-icon { | |
| color: var(--primary-color); | |
| } | |
| .btn-primary { | |
| background-color: var(--primary-color); | |
| color: var(--text-primary); | |
| border: none; | |
| border-radius: 6px; | |
| padding: 10px 18px; | |
| font-weight: 600; | |
| font-size: 0.9rem; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| transition: background-color var(--transition-speed) ease; | |
| } | |
| .btn-primary:hover:not(:disabled) { | |
| background-color: #2563eb; | |
| } | |
| .btn-primary:disabled { | |
| opacity: 0.6; | |
| cursor: not-allowed; | |
| } | |
| /* Uploading States */ | |
| .upload-status { | |
| padding: 12px 16px; | |
| border-radius: 6px; | |
| font-size: 0.9rem; | |
| font-weight: 500; | |
| width: 100%; | |
| text-align: left; | |
| } | |
| .upload-status.uploading { | |
| background-color: var(--primary-glow); | |
| color: var(--primary-color); | |
| border: 1px solid rgba(59, 130, 246, 0.2); | |
| } | |
| .upload-status.success { | |
| background-color: rgba(16, 185, 129, 0.1); | |
| color: var(--success-color); | |
| border: 1px solid rgba(16, 185, 129, 0.2); | |
| } | |
| .upload-status.error { | |
| background-color: rgba(239, 68, 68, 0.1); | |
| color: var(--error-color); | |
| border: 1px solid rgba(239, 68, 68, 0.2); | |
| } | |
| /* Data Preview Layout */ | |
| .preview-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: flex-start; | |
| margin-bottom: 24px; | |
| border-bottom: 1px solid var(--border-color); | |
| padding-bottom: 24px; | |
| } | |
| .preview-title-area { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| } | |
| .preview-title-area h1 { | |
| font-size: 1.8rem; | |
| font-weight: 700; | |
| } | |
| .preview-description { | |
| color: var(--text-secondary); | |
| font-size: 0.95rem; | |
| } | |
| .stat-badges { | |
| display: flex; | |
| gap: 12px; | |
| margin-top: 6px; | |
| } | |
| .stat-badge { | |
| background-color: var(--surface-color); | |
| border: 1px solid var(--border-color); | |
| padding: 6px 12px; | |
| border-radius: 6px; | |
| font-size: 0.8rem; | |
| font-weight: 500; | |
| display: flex; | |
| gap: 6px; | |
| } | |
| .stat-badge span:first-child { | |
| color: var(--text-secondary); | |
| } | |
| .stat-badge span:last-child { | |
| color: var(--text-primary); | |
| font-weight: 700; | |
| } | |
| /* Section Dividers */ | |
| .section-title { | |
| font-size: 1.1rem; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| margin-bottom: 12px; | |
| margin-top: 24px; | |
| } | |
| /* General Grid layout for schema */ | |
| .schema-grid { | |
| display: grid; | |
| grid-template-columns: 1fr; | |
| gap: 24px; | |
| } | |
| /* General Tables */ | |
| .table-container { | |
| border: 1px solid var(--border-color); | |
| border-radius: 8px; | |
| overflow: auto; | |
| background-color: var(--surface-color); | |
| max-width: 100%; | |
| } | |
| .table-preview { | |
| width: 100%; | |
| border-collapse: collapse; | |
| font-size: 0.85rem; | |
| text-align: left; | |
| } | |
| .table-preview th { | |
| background-color: var(--surface-elevated); | |
| color: var(--text-secondary); | |
| font-weight: 600; | |
| padding: 10px 14px; | |
| border-bottom: 1px solid var(--border-color); | |
| position: sticky; | |
| top: 0; | |
| z-index: 10; | |
| } | |
| .table-preview td { | |
| padding: 10px 14px; | |
| border-bottom: 1px solid var(--border-color); | |
| color: var(--text-primary); | |
| } | |
| .table-preview tr:last-child td { | |
| border-bottom: none; | |
| } | |
| /* Zebra striping for Tables */ | |
| .table-preview tbody tr:nth-child(even) { | |
| background-color: #1a1a1a; | |
| } | |
| .table-preview tbody tr:nth-child(odd) { | |
| background-color: #161616; | |
| } | |
| /* Text alignment & Monospace for cells */ | |
| .cell-numeric { | |
| text-align: right ; | |
| } | |
| .cell-text { | |
| text-align: left ; | |
| } | |
| .cell-mono { | |
| font-family: var(--font-mono); | |
| font-size: 0.8rem; | |
| } | |
| /* Query View Styles */ | |
| .query-container { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 24px; | |
| flex-grow: 1; | |
| } | |
| .query-input-section { | |
| background-color: var(--surface-color); | |
| border: 1px solid var(--border-color); | |
| border-radius: 8px; | |
| padding: 20px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 16px; | |
| } | |
| .query-input-row { | |
| display: flex; | |
| gap: 12px; | |
| } | |
| .query-input { | |
| flex-grow: 1; | |
| background-color: var(--bg-color); | |
| border: 1px solid var(--border-color); | |
| border-radius: 6px; | |
| color: var(--text-primary); | |
| padding: 12px; | |
| font-size: 0.95rem; | |
| font-family: var(--font-sans); | |
| transition: border-color var(--transition-speed) ease; | |
| outline: none; | |
| } | |
| .query-input:focus { | |
| border-color: var(--primary-color); | |
| } | |
| /* Query suggestions */ | |
| .suggestions-list { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 8px; | |
| } | |
| .suggestion-chip { | |
| background-color: var(--surface-elevated); | |
| border: 1px solid var(--border-color); | |
| color: var(--text-secondary); | |
| border-radius: 100px; | |
| padding: 6px 12px; | |
| font-size: 0.8rem; | |
| cursor: pointer; | |
| transition: all var(--transition-speed) ease; | |
| } | |
| .suggestion-chip:hover { | |
| border-color: var(--primary-color); | |
| color: var(--text-primary); | |
| } | |
| /* Main outputs of a query */ | |
| .results-grid { | |
| display: grid; | |
| grid-template-columns: 1fr; | |
| gap: 24px; | |
| } | |
| @media (min-width: 1024px) { | |
| .results-grid { | |
| grid-template-columns: 1.5fr 1fr; | |
| } | |
| } | |
| .results-left { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 24px; | |
| } | |
| .results-right { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 24px; | |
| } | |
| /* Cards for Query Outputs */ | |
| .output-card { | |
| background-color: var(--surface-color); | |
| border: 1px solid var(--border-color); | |
| border-radius: 8px; | |
| padding: 20px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| } | |
| .output-card-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| border-bottom: 1px solid var(--border-color); | |
| padding-bottom: 10px; | |
| } | |
| .output-card-title { | |
| font-size: 0.9rem; | |
| font-weight: 700; | |
| text-transform: uppercase; | |
| color: var(--text-secondary); | |
| letter-spacing: 0.05em; | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| /* Monospace Code display */ | |
| .code-block { | |
| font-family: var(--font-mono); | |
| background-color: var(--bg-color); | |
| border: 1px solid var(--border-color); | |
| padding: 16px; | |
| border-radius: 6px; | |
| color: #38bdf8; /* sky blue code color */ | |
| font-size: 0.85rem; | |
| line-height: 1.5; | |
| white-space: pre-wrap; | |
| word-break: break-all; | |
| overflow-x: auto; | |
| } | |
| /* Insight Paragraph */ | |
| .insight-text { | |
| font-size: 0.95rem; | |
| line-height: 1.6; | |
| color: var(--text-primary); | |
| } | |
| /* SVG Chart Styles */ | |
| .chart-container { | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| width: 100%; | |
| height: 280px; | |
| background-color: var(--bg-color); | |
| border: 1px solid var(--border-color); | |
| border-radius: 6px; | |
| padding: 16px; | |
| } | |
| .chart-svg { | |
| width: 100%; | |
| height: 100%; | |
| } | |
| .chart-bar { | |
| fill: var(--primary-color); | |
| transition: fill var(--transition-speed) ease, height var(--transition-speed) ease, y var(--transition-speed) ease; | |
| cursor: pointer; | |
| } | |
| .chart-bar:hover { | |
| fill: #60a5fa; | |
| } | |
| .chart-axis-line { | |
| stroke: var(--border-color); | |
| stroke-width: 1px; | |
| } | |
| .chart-grid-line { | |
| stroke: rgba(44, 44, 44, 0.5); | |
| stroke-width: 1px; | |
| stroke-dasharray: 4; | |
| } | |
| .chart-text { | |
| fill: var(--text-secondary); | |
| font-size: 10px; | |
| font-family: var(--font-sans); | |
| } | |
| .chart-text-title { | |
| fill: var(--text-primary); | |
| font-size: 11px; | |
| font-weight: 600; | |
| } | |
| /* Loading animations */ | |
| .loading-container { | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| align-items: center; | |
| gap: 16px; | |
| padding: 60px 0; | |
| flex-grow: 1; | |
| } | |
| .spinner { | |
| width: 32px; | |
| height: 32px; | |
| border: 3px solid var(--border-color); | |
| border-top-color: var(--primary-color); | |
| border-radius: 50%; | |
| animation: spin 0.8s linear infinite; | |
| } | |
| @keyframes spin { | |
| to { | |
| transform: rotate(360deg); | |
| } | |
| } | |
| /* Shimmer Loading placeholders */ | |
| .shimmer { | |
| background: linear-gradient(90deg, var(--surface-color) 25%, var(--surface-elevated) 50%, var(--surface-color) 75%); | |
| background-size: 200% 100%; | |
| animation: loading-shimmer 1.5s infinite; | |
| } | |
| @keyframes loading-shimmer { | |
| 0% { | |
| background-position: 200% 0; | |
| } | |
| 100% { | |
| background-position: -200% 0; | |
| } | |
| } | |
| /* Utility buttons */ | |
| .btn-secondary { | |
| background-color: var(--surface-color); | |
| border: 1px solid var(--border-color); | |
| color: var(--text-primary); | |
| padding: 10px 18px; | |
| border-radius: 6px; | |
| font-weight: 600; | |
| font-size: 0.9rem; | |
| cursor: pointer; | |
| transition: all var(--transition-speed) ease; | |
| } | |
| .btn-secondary:hover { | |
| background-color: var(--surface-elevated); | |
| border-color: var(--text-secondary); | |
| } | |
| /* Header Action View Switches */ | |
| .view-switch-tabs { | |
| display: flex; | |
| background-color: var(--surface-color); | |
| border: 1px solid var(--border-color); | |
| border-radius: 6px; | |
| padding: 2px; | |
| } | |
| .view-tab { | |
| background: transparent; | |
| border: none; | |
| color: var(--text-secondary); | |
| padding: 6px 12px; | |
| font-size: 0.8rem; | |
| font-weight: 600; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| transition: all var(--transition-speed) ease; | |
| } | |
| .view-tab.active { | |
| background-color: var(--surface-elevated); | |
| color: var(--text-primary); | |
| box-shadow: 0 1px 3px rgba(0,0,0,0.2); | |
| } | |
| /* Stats Bar */ | |
| .stats-bar { | |
| height: 40px; | |
| min-height: 40px; | |
| background-color: var(--surface-color); | |
| border-bottom: 1px solid var(--border-color); | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 0 24px; | |
| font-size: 0.8rem; | |
| color: var(--text-secondary); | |
| font-weight: 500; | |
| z-index: 100; | |
| } | |
| /* Toast Notification System */ | |
| .toast-container { | |
| position: fixed; | |
| top: 20px; | |
| right: 20px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 10px; | |
| z-index: 9999; | |
| pointer-events: none; | |
| } | |
| .toast { | |
| pointer-events: auto; | |
| width: 320px; | |
| padding: 14px 18px; | |
| border-radius: 8px; | |
| font-size: 0.85rem; | |
| font-weight: 500; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); | |
| animation: slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; | |
| transition: opacity 0.3s ease; | |
| } | |
| .toast-success { | |
| background-color: #0f1c18; | |
| border: 1px solid rgba(16, 185, 129, 0.3); | |
| color: var(--success-color); | |
| } | |
| .toast-error { | |
| background-color: #1c1012; | |
| border: 1px solid rgba(239, 68, 68, 0.3); | |
| color: var(--error-color); | |
| } | |
| .toast-info { | |
| background-color: #101524; | |
| border: 1px solid rgba(59, 130, 246, 0.3); | |
| color: var(--primary-color); | |
| } | |
| .toast-close-btn { | |
| background: transparent; | |
| border: none; | |
| color: inherit; | |
| opacity: 0.7; | |
| cursor: pointer; | |
| padding: 2px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| border-radius: 4px; | |
| } | |
| .toast-close-btn:hover { | |
| opacity: 1; | |
| background-color: rgba(255, 255, 255, 0.05); | |
| } | |
| @keyframes slide-in { | |
| from { | |
| transform: translateX(120%); | |
| opacity: 0; | |
| } | |
| to { | |
| transform: translateX(0); | |
| opacity: 1; | |
| } | |
| } | |
| /* Suggestions Row Scrollbar */ | |
| .suggestions-scroll-container { | |
| display: flex; | |
| overflow-x: auto; | |
| width: 100%; | |
| gap: 8px; | |
| padding-bottom: 6px; | |
| margin-top: 4px; | |
| } | |
| .suggestions-scroll-container::-webkit-scrollbar { | |
| height: 4px; | |
| } | |
| .suggestions-scroll-container::-webkit-scrollbar-thumb { | |
| background: var(--border-color); | |
| border-radius: 2px; | |
| } | |
| /* Responsive Styles */ | |
| @media (max-width: 767px) { | |
| .sidebar { | |
| display: none ; | |
| } | |
| .main-content { | |
| padding: 16px ; | |
| } | |
| .app-container { | |
| flex-direction: column; | |
| } | |
| .results-grid { | |
| grid-template-columns: 1fr ; | |
| } | |
| .preview-header { | |
| flex-direction: column; | |
| gap: 16px; | |
| align-items: stretch; | |
| } | |
| .stats-bar { | |
| padding: 0 16px; | |
| font-size: 0.75rem; | |
| } | |
| /* Reduce Chart height */ | |
| .chart-container { | |
| height: 220px ; | |
| } | |
| } | |
| @media (min-width: 768px) and (max-width: 1024px) { | |
| :root { | |
| --sidebar-width: 220px; | |
| } | |
| .sidebar-logo { | |
| font-size: 1.1rem; | |
| } | |
| .sidebar-content { | |
| padding: 12px; | |
| } | |
| } | |