DataMind-AI / static /style.css
samuelalex37's picture
V2 Release: Complete UI overhaul and new AI Analytics engine
6193995
Raw
History Blame Contribute Delete
37.1 kB
/* DataMind AI — AI-Native Dark Dashboard */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');
:root {
--bg: #06080d; --bg-elevated: #0c0f16; --card: rgba(255,255,255,0.04); --card-solid: #111520; --card-hover: rgba(255,255,255,0.07);
--accent: #00e5ff; --accent2: #8b5cf6; --accent-glow: rgba(0,229,255,0.12);
--text: #e2e8f0; --text-dim: #7a859b; --text-muted: #4a5568;
--success: #34d399; --danger: #f87171; --warning: #fbbf24;
--border: rgba(255,255,255,0.06); --border-hover: rgba(0,229,255,0.25);
--radius: 14px; --radius-sm: 10px; --radius-xs: 8px;
--shadow: 0 8px 32px rgba(0,0,0,0.5);
--glass: rgba(255,255,255,0.03); --glass-border: rgba(255,255,255,0.06);
--blur: blur(16px); --ease: cubic-bezier(0.4,0,0.2,1); --duration: 200ms;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
font-family: 'Inter', -apple-system, sans-serif;
background: var(--bg); color: var(--text);
min-height: 100vh; overflow-x: hidden;
overscroll-behavior-y: none;
background-image: radial-gradient(ellipse at 20% 50%, rgba(0,229,255,0.03) 0%, transparent 60%),
radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.03) 0%, transparent 60%);
}
h1,h2,h3,h4,h5,h6 { font-family: 'Syne', sans-serif; font-weight: 700; }
/* Focus & Accessibility */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
button, a, select, .chip, .dataset-card, .upload-zone, .chart-expand-btn { cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
/* ===== FLOATING BACKGROUND ORBS ===== */
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4;
animation: orbFloat 20s ease-in-out infinite;
}
.orb-1 {
width: 500px; height: 500px; top: -10%; left: -5%;
background: radial-gradient(circle, rgba(0,229,255,0.3), transparent 70%);
animation-duration: 25s;
}
.orb-2 {
width: 400px; height: 400px; top: 40%; right: -8%;
background: radial-gradient(circle, rgba(139,92,246,0.25), transparent 70%);
animation-duration: 30s; animation-delay: -5s;
}
.orb-3 {
width: 350px; height: 350px; bottom: -5%; left: 30%;
background: radial-gradient(circle, rgba(0,229,255,0.15), rgba(139,92,246,0.15), transparent 70%);
animation-duration: 22s; animation-delay: -10s;
}
@keyframes orbFloat {
0%, 100% { transform: translate(0, 0) scale(1); }
25% { transform: translate(30px, -40px) scale(1.05); }
50% { transform: translate(-20px, 20px) scale(0.95); }
75% { transform: translate(15px, 30px) scale(1.02); }
}
.grid-bg {
position: absolute; inset: 0;
background-image:
linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
background-size: 60px 60px;
mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
-webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
/* ===== ANIMATED GRADIENT BORDER ===== */
@property --gradient-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes rotateBorder { to { --gradient-angle: 360deg; } }
.glow-border {
position: relative; z-index: 1;
}
.glow-border::before {
content: ''; position: absolute; inset: -1px; z-index: -1;
border-radius: inherit;
background: conic-gradient(from var(--gradient-angle), var(--accent), var(--accent2), var(--accent));
animation: rotateBorder 4s linear infinite;
opacity: 0; transition: opacity 0.4s var(--ease);
}
.glow-border:hover::before { opacity: 0.7; }
.glow-border::after {
content: ''; position: absolute; inset: 1px; z-index: -1;
border-radius: inherit; background: var(--bg-elevated);
}
/* ===== TOP BAR ===== */
.topbar {
position: fixed; top: 0; left: 0; right: 0; z-index: 100;
height: 56px; display: flex; align-items: center; justify-content: space-between;
padding: 0 24px;
background: rgba(6,8,13,0.85); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
border-bottom: 1px solid var(--glass-border);
}
.topbar-brand { display: flex; align-items: center; gap: 12px; }
.topbar-brand-link {
display: flex; align-items: center; gap: 12px;
text-decoration: none; color: inherit; cursor: pointer;
transition: opacity var(--duration) var(--ease);
}
.topbar-brand-link:hover { opacity: 0.85; }
.topbar-logo-img {
width: 36px; height: 36px; border-radius: 10px;
object-fit: cover;
box-shadow: 0 0 15px rgba(0,229,255,0.4), 0 0 40px rgba(0,229,255,0.15);
animation: logoGlow 3s ease-in-out infinite alternate;
}
@keyframes logoGlow {
from { box-shadow: 0 0 15px rgba(0,229,255,0.3), 0 0 40px rgba(0,229,255,0.1); }
to { box-shadow: 0 0 20px rgba(0,229,255,0.5), 0 0 50px rgba(0,229,255,0.2); }
}
.topbar-title { font-family: 'Syne'; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.topbar-title span { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.topbar-meta { display: flex; align-items: center; gap: 12px; }
.topbar-dataset {
padding: 5px 14px; border-radius: 20px; font-size: 0.78rem;
background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(0,229,255,0.15);
display: none; font-weight: 500;
}
.topbar-dataset.active { display: inline-flex; align-items: center; gap: 6px; }
.btn {
padding: 8px 18px; border-radius: var(--radius-sm); border: none; cursor: pointer;
font-family: 'Inter'; font-weight: 600; font-size: 0.82rem;
transition: all var(--duration) var(--ease); display: inline-flex; align-items: center; gap: 8px;
}
.btn-accent {
background: linear-gradient(135deg, var(--accent), #00b8d4); color: #000;
box-shadow: 0 4px 20px rgba(0,229,255,0.25);
}
.btn-accent:hover { box-shadow: 0 4px 30px rgba(0,229,255,0.4); filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
/* ===== LAYOUT ===== */
.app-layout {
display: grid; grid-template-columns: 270px 4px 1fr;
margin-top: 56px; min-height: calc(100vh - 56px);
transition: grid-template-columns var(--duration) var(--ease);
}
.app-layout.sidebar-hidden {
grid-template-columns: 0px 0px 1fr;
}
.app-layout.sidebar-hidden .sidebar {
min-width: 0;
padding-left: 0;
padding-right: 0;
border-right: none;
opacity: 0;
overflow: hidden;
white-space: nowrap;
}
.app-layout.sidebar-hidden .resize-handle {
opacity: 0;
pointer-events: none;
}
/* Resize handles */
.resize-handle {
width: 4px; cursor: col-resize; background: transparent;
transition: background 0.2s; position: relative; z-index: 10;
flex-shrink: 0;
}
.resize-handle:hover, .resize-handle.active {
background: var(--accent); box-shadow: 0 0 8px rgba(0,229,255,0.4);
}
/* ===== SIDEBAR ===== */
.sidebar {
background: var(--bg-elevated); border-right: 1px solid var(--glass-border);
padding: 20px; overflow-y: auto; height: calc(100vh - 56px);
position: sticky; top: 56px;
min-width: 200px; max-width: 450px;
backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.sidebar-section { margin-bottom: 22px; }
.sidebar-section h3 {
font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.5px;
color: var(--text-muted); margin-bottom: 12px; padding-bottom: 8px;
border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px;
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-card {
background: var(--glass); border-radius: var(--radius-sm); padding: 12px;
border: 1px solid var(--glass-border); transition: all var(--duration) var(--ease);
backdrop-filter: var(--blur);
}
.stat-card:hover { border-color: var(--border-hover); }
.stat-value { font-size: 1.3rem; font-weight: 700; color: var(--accent); font-family: 'Syne'; }
.stat-label { font-size: 0.7rem; color: var(--text-dim); margin-top: 2px; }
.eda-item {
display: flex; justify-content: space-between; align-items: center;
padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
font-size: 0.85rem;
}
.eda-item .label { color: var(--text-dim); }
.eda-item .value { color: var(--text); font-weight: 500; }
.eda-badge {
display: inline-flex; padding: 2px 8px; border-radius: 12px; font-size: 0.7rem; font-weight: 600;
}
.eda-badge.success { background: rgba(107,203,119,0.15); color: var(--success); }
.eda-badge.warning { background: rgba(255,217,61,0.15); color: var(--warning); }
.eda-badge.danger { background: rgba(255,107,107,0.15); color: var(--danger); }
/* ===== MAIN CONTENT ===== */
.main-content {
overflow-y: auto; height: calc(100vh - 56px);
overscroll-behavior-y: none;
}
#dm-shader-bg {
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
z-index: 0;
pointer-events: none;
opacity: 0.45;
}
.landing {
display: flex; flex-direction: column; align-items: center; justify-content: center;
min-height: calc(100vh - 56px);
padding: 40px 0 100px 0;
position: relative;
background: radial-gradient(circle at 50% 30%, rgba(0,229,255,0.05) 0%, transparent 50%);
overflow: hidden;
}
.landing > *:not(#dm-shader-bg) { position: relative; z-index: 1; }
.landing-title {
font-size: 3.2rem; font-weight: 800; text-align: center; margin-bottom: 12px;
letter-spacing: -0.03em; line-height: 1.1;
}
.landing-title span {
background: linear-gradient(135deg, var(--accent), var(--accent2), #f472b6, var(--accent));
background-size: 300% 300%;
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
0%, 100% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
}
.landing-sub { color: rgba(255, 255, 255, 0.75); font-size: 1.2rem; text-align: center; margin-bottom: 44px; max-width: 580px; line-height: 1.7; }
.upload-zone {
width: 100%; max-width: 560px; padding: 48px 32px; border-radius: var(--radius);
border: 2px dashed var(--border); background: var(--glass);
text-align: center; cursor: pointer; transition: all 0.3s var(--ease);
position: relative; overflow: hidden; backdrop-filter: var(--blur);
animation: dashedPulse 3s infinite;
}
@keyframes dashedPulse {
0%, 100% { border-color: var(--border); }
50% { border-color: rgba(0,229,255,0.4); }
}
.upload-zone::before {
content: ''; position: absolute; inset: 0; border-radius: var(--radius);
background: linear-gradient(135deg, rgba(0,229,255,0.06), rgba(139,92,246,0.06));
opacity: 0; transition: opacity 0.3s var(--ease);
}
.upload-zone:hover, .upload-zone.dragover {
border-color: var(--accent);
box-shadow: 0 0 60px rgba(0,229,255,0.15), 0 0 120px rgba(0,229,255,0.05), inset 0 0 60px rgba(0,229,255,0.03);
animation: none;
}
.upload-zone:hover::before, .upload-zone.dragover::before { opacity: 1; }
.upload-zone.processing { border-style: solid; border-color: var(--accent); animation: processingPulse 1.5s ease-in-out infinite; }
@keyframes processingPulse {
0%, 100% { box-shadow: 0 0 20px rgba(0,229,255,0.1); }
50% { box-shadow: 0 0 40px rgba(0,229,255,0.25); }
}
.upload-icon { font-size: 2.8rem; margin-bottom: 16px; animation: bounceIcon 2s infinite ease-in-out; }
@keyframes bounceIcon {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-8px); }
}
.upload-text { font-size: 1rem; color: var(--text); margin-bottom: 4px; font-weight: 500; }
.upload-hint { font-size: 0.8rem; color: var(--text-dim); }
.upload-input { display: none; }
.divider-or { display: flex; align-items: center; gap: 16px; width: 100%; max-width: 560px; margin: 32px 0; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: rgba(0, 229, 255, 0.25); }
.divider-or span { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.dataset-options { display: flex; gap: 16px; width: 100%; max-width: 560px; }
.dataset-card {
flex: 1; padding: 24px 20px; border-radius: var(--radius); background: var(--glass);
border: 1px solid var(--glass-border); cursor: pointer; transition: all 0.2s var(--ease);
text-align: center; backdrop-filter: var(--blur); position: relative; overflow: hidden;
}
.dataset-card::before {
content: ''; position: absolute; inset: 0;
background: linear-gradient(135deg, transparent, rgba(0,229,255,0.08), transparent);
transform: translateX(-100%); transition: transform 0.6s ease;
}
.dataset-card:hover { border-color: var(--accent); box-shadow: 0 0 20px rgba(0,229,255,0.2), inset 0 0 10px rgba(0,229,255,0.05); }
.dataset-card:hover::before { transform: translateX(100%); }
.dataset-card .icon { font-size: 2rem; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; }
.dataset-card h4 { font-size: 1.1rem; margin-bottom: 6px; font-weight: 700; color: #fff; }
.dataset-card p { font-size: 0.8rem; color: var(--text-dim); line-height: 1.4; margin-bottom: 12px; }
.explore-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--accent); font-weight: 600; opacity: 0; transition: opacity 0.2s var(--ease); }
.dataset-card:hover .explore-btn { opacity: 1; }
.how-it-works {
display: flex; align-items: center; justify-content: center;
gap: 24px; margin-top: 64px; max-width: 700px; width: 100%;
}
.how-it-works .step {
display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1;
}
.how-it-works .step-number {
width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 229, 255, 0.1);
color: var(--accent); border: 1px solid var(--accent); font-weight: 700;
display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.how-it-works .step h4 {
font-size: 0.95rem; margin-bottom: 4px; font-weight: 600; color: #fff;
}
.how-it-works .step p {
font-size: 0.75rem; color: var(--text-dim); line-height: 1.4;
}
.how-it-works .step-connector {
flex: 0 0 40px; height: 1px; background: var(--border); position: relative; top: -20px;
}
/* ===== DASHBOARD VIEW ===== */
.dashboard { display: none; padding: 24px; }
.dashboard.active { display: block; }
.section-header { margin-bottom: 20px; }
.section-header h2 { font-size: 1.4rem; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.section-header p { color: var(--text-dim); font-size: 0.85rem; }
/* ===== KPI CARDS ===== */
.kpi-row {
display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px; margin-bottom: 28px;
}
.kpi-card {
background: rgba(255,255,255,0.04); border-radius: var(--radius); padding: 20px;
border: 1px solid rgba(255,255,255,0.08); position: relative; overflow: hidden;
transition: all 0.3s var(--ease); animation: fadeSlideUp 0.5s var(--ease) forwards;
opacity: 0; backdrop-filter: blur(20px); z-index: 1;
}
@keyframes fadeSlideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.kpi-card:hover {
border-color: var(--accent);
box-shadow: 0 0 30px rgba(0,229,255,0.12), 0 8px 32px rgba(0,0,0,0.3);
}
.kpi-card::before {
content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent));
background-size: 200% 100%; animation: shimmerBorder 3s linear infinite;
}
@keyframes shimmerBorder {
0% { background-position: 200% 0; } 100% { background-position: -200% 0; }
}
.kpi-label { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.kpi-value {
font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800;
color: var(--text); line-height: 1.2; margin-bottom: 6px;
}
.kpi-trend {
display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; font-weight: 600;
padding: 3px 10px; border-radius: 12px;
}
.kpi-trend.up { background: rgba(107,203,119,0.12); color: var(--success); }
.kpi-trend.down { background: rgba(255,107,107,0.12); color: var(--danger); }
.kpi-trend.neutral { background: rgba(136,146,164,0.12); color: var(--text-dim); }
.kpi-sparkline {
position: absolute; bottom: 0; right: 0; width: 90px; height: 40px; opacity: 0.3;
}
/* ===== DATA QUALITY GAUGE ===== */
.quality-gauge-container { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.quality-gauge { width: 100px; height: 100px; }
.gauge-bg { fill: none; stroke: var(--border); stroke-width: 8; }
.gauge-fill {
fill: none; stroke: var(--accent); stroke-width: 8;
stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
transform: rotate(-90deg); transform-origin: center;
transition: stroke-dashoffset 1.5s ease, stroke 0.5s;
}
.gauge-fill.good { stroke: var(--success); }
.gauge-fill.warn { stroke: var(--warning); }
.gauge-fill.bad { stroke: var(--danger); }
.gauge-text { fill: var(--text); font-size: 22px; font-weight: 800; font-family: 'Syne'; }
.gauge-label { fill: var(--text-dim); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.quality-details { width: 100%; }
.quality-item {
display: flex; justify-content: space-between; align-items: center;
padding: 4px 0; font-size: 0.78rem;
}
.quality-item .qlabel { color: var(--text-dim); }
.quality-item .qvalue { font-weight: 600; }
.quality-item .qvalue.pass { color: var(--success); }
.quality-item .qvalue.fail { color: var(--danger); }
.quality-item .qvalue.warn { color: var(--warning); }
/* ===== RECOMMENDATIONS ===== */
.recommendations-panel {
background: var(--glass); border-radius: var(--radius); padding: 24px;
border: 1px solid var(--glass-border); margin-bottom: 32px; backdrop-filter: var(--blur);
}
.rec-item {
display: flex; gap: 14px; padding: 14px 0;
border-bottom: 1px solid rgba(255,255,255,0.03);
animation: fadeSlideUp 0.4s ease forwards; opacity: 0;
}
.rec-item:last-child { border-bottom: none; }
.rec-badge {
flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
display: flex; align-items: center; justify-content: center;
font-size: 0.75rem; font-weight: 700; margin-top: 2px;
}
.rec-badge.critical { background: rgba(255,107,107,0.15); color: var(--danger); }
.rec-badge.opportunity { background: rgba(255,217,61,0.15); color: var(--warning); }
.rec-badge.strength { background: rgba(107,203,119,0.15); color: var(--success); }
.rec-content { flex: 1; }
.rec-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 3px; }
.rec-desc { font-size: 0.8rem; color: var(--text-dim); line-height: 1.5; }
/* Charts Grid */
.charts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 32px; }
.chart-card {
background: rgba(255,255,255,0.04); border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.08);
overflow: hidden; transition: all 0.3s var(--ease); position: relative;
backdrop-filter: blur(20px);
}
.chart-card:hover {
border-color: var(--accent);
box-shadow: 0 0 30px rgba(0,229,255,0.1), 0 8px 32px rgba(0,0,0,0.3);
}
.chart-card img { width: 100%; height: auto; display: block; }
.chart-card-body { padding: 16px; }
.chart-card-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
.chart-card-caption { font-size: 0.8rem; color: var(--text-dim); line-height: 1.5; }
/* Chart action buttons (download, fullscreen) */
.chart-actions {
display: flex; gap: 4px; opacity: 0; transition: opacity 0.2s;
}
.chart-card:hover .chart-actions { opacity: 1; }
.chart-action-btn {
width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--border);
background: var(--bg); color: var(--text-dim); cursor: pointer; transition: all 0.2s;
display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.chart-action-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,229,255,0.06); }
/* Chart search/filter bar */
.chart-search-bar {
display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
padding: 10px 16px; border-radius: var(--radius); background: var(--glass);
border: 1px solid var(--glass-border);
}
.chart-search-bar input {
flex: 1; background: transparent; border: none; outline: none;
color: var(--text); font-family: 'Inter'; font-size: 0.85rem;
}
.chart-search-bar input::placeholder { color: var(--text-muted); }
.chart-count {
font-size: 0.72rem; color: var(--text-muted); white-space: nowrap;
padding: 3px 10px; border-radius: 12px; background: rgba(255,255,255,0.04);
}
/* Export dropdown */
.export-dropdown { position: relative; }
.export-menu {
position: absolute; top: calc(100% + 8px); right: 0; z-index: 100;
background: var(--bg-elevated); border: 1px solid var(--glass-border);
border-radius: var(--radius); padding: 6px; min-width: 180px;
box-shadow: 0 12px 40px rgba(0,0,0,0.5); display: none;
backdrop-filter: blur(20px); animation: modalIn 0.2s ease;
}
.export-menu.active { display: block; }
.export-menu button {
display: flex; align-items: center; gap: 10px; width: 100%;
padding: 10px 14px; border: none; background: transparent;
color: var(--text-dim); font-family: 'Inter'; font-size: 0.82rem;
cursor: pointer; border-radius: 8px; transition: all 0.2s;
}
.export-menu button:hover {
background: rgba(0,229,255,0.08); color: var(--accent);
}
/* Legacy compat */
.chart-expand-btn {
width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
background: var(--bg); color: var(--text-dim); cursor: pointer; transition: all 0.3s;
display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0;
}
.chart-expand-btn:hover { border-color: var(--accent); color: var(--accent); }
/* Insights Panel */
.insights-panel {
background: var(--glass); border-radius: var(--radius); padding: 24px;
border: 1px solid var(--glass-border); margin-bottom: 32px; backdrop-filter: var(--blur);
}
.insight-item {
display: flex; gap: 12px; padding: 12px 0;
border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 0.9rem; line-height: 1.6;
}
.insight-item:last-child { border-bottom: none; }
.insight-bullet {
width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 7px;
background: var(--accent); box-shadow: 0 0 8px rgba(0,229,255,0.4);
}
/* Forecast Panel */
.forecast-panel {
background: var(--glass); border-radius: var(--radius); padding: 24px;
border: 1px solid var(--glass-border); margin-bottom: 32px; backdrop-filter: var(--blur);
}
.forecast-panel img { width: 100%; max-width: 800px; margin: 16px auto; display: block; border-radius: var(--radius); }
.forecast-commentary { font-size: 0.9rem; color: var(--text-dim); line-height: 1.7; padding: 16px; background: var(--bg-elevated); border-radius: var(--radius-xs); margin-top: 12px; }
/* What-If Panel */
.whatif-panel {
background: var(--glass); border-radius: var(--radius); padding: 24px;
border: 1px solid var(--glass-border); margin-bottom: 32px; backdrop-filter: var(--blur);
}
.whatif-controls {
display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap;
margin-top: 16px; margin-bottom: 12px;
}
.whatif-controls label {
display: block; font-size: 0.78rem; color: var(--text-dim);
text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.whatif-controls select {
background: var(--card-solid); color: var(--text); border: 1px solid var(--border);
border-radius: var(--radius-xs); padding: 8px 12px; font-size: 0.85rem; min-width: 150px;
cursor: pointer; transition: border-color var(--duration) var(--ease); font-family: 'Inter';
}
.whatif-controls select:focus { border-color: var(--accent); outline: none; }
.whatif-controls select option {
background: #1a1e2e; color: #fff; padding: 8px;
}
.whatif-controls input[type="range"] {
-webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px;
background: var(--border); outline: none; margin-top: 4px;
}
.whatif-controls input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
background: var(--accent); cursor: pointer; border: 2px solid var(--surface);
box-shadow: 0 0 8px rgba(0,229,255,0.4);
}
.slider-value { color: var(--accent); font-weight: 700; }
#whatif-chart {
width: 100%; max-width: 800px; margin: 16px auto; display: block;
border-radius: var(--radius); border: 1px solid var(--glass-border);
}
/* ===== DATE FILTERS ===== */
.date-input {
background: var(--bg);
color: var(--text);
border: 1px solid var(--border);
padding: 6px 12px;
border-radius: var(--radius-xs);
font-family: 'Inter';
color-scheme: dark;
}
.date-input:focus { border-color: var(--accent); outline: none; }/* ── Chat FAB ── */
#dm-chat-fab {
position: fixed;
bottom: 28px;
right: 28px;
width: 54px;
height: 54px;
border-radius: 50%;
background: #00d4ff;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
animation: dm-pulse 2.2s infinite;
transition: transform 0.15s, background 0.2s;
}
#dm-chat-fab:hover { background: #00b8dd; transform: scale(1.08); }
#dm-chat-fab:active { transform: scale(0.95); }
#dm-chat-fab i { font-size: 22px; color: #0d0d14; }
@keyframes dm-pulse {
0% { box-shadow: 0 0 0 0 rgba(0,212,255,0.5); }
70% { box-shadow: 0 0 0 14px rgba(0,212,255,0); }
100% { box-shadow: 0 0 0 0 rgba(0,212,255,0); }
}
/* ── Chat Popup ── */
.dm-chat-popup {
position: fixed;
bottom: 92px;
right: 28px;
width: 420px;
min-height: 500px;
max-height: 720px;
background: #13131f;
border-radius: 14px;
border: 0.5px solid #2a2a3a;
display: flex;
flex-direction: column;
overflow: hidden;
z-index: 999;
transform: scale(0.85) translateY(20px);
opacity: 0;
pointer-events: none;
transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), opacity 0.18s ease;
}
.dm-chat-popup.open {
transform: scale(1) translateY(0);
opacity: 1;
pointer-events: all;
}
/* Header */
.dm-chat-header {
background: #1a1a2e;
padding: 12px 14px;
display: flex;
align-items: center;
gap: 10px;
border-bottom: 0.5px solid #2a2a3a;
}
.dm-chat-avatar {
width: 32px; height: 32px; border-radius: 50%;
background: rgba(0,212,255,0.12);
border: 1px solid rgba(0,212,255,0.3);
display: flex; align-items: center; justify-content: center;
}
.dm-chat-avatar i { font-size: 15px; color: #00d4ff; }
.dm-chat-header-info { flex: 1; }
.dm-chat-header-info strong { font-size: 13px; color: #e0e0f0; font-weight: 500; display: block; }
.dm-chat-header-info span { font-size: 11px; color: #00d4ff; display: flex; align-items: center; gap: 4px; }
.dm-online-dot { width: 6px; height: 6px; border-radius: 50%; background: #00d4ff; display: inline-block; }
#dm-close-btn {
background: none; border: none; cursor: pointer;
color: #555577; padding: 4px; border-radius: 6px;
}
#dm-close-btn:hover { color: #aaaacc; background: rgba(255,255,255,0.07); }
#dm-close-btn i { font-size: 16px; }
/* Messages */
.dm-messages {
padding: 16px;
display: flex;
flex-direction: column;
gap: 14px;
min-height: 300px;
max-height: 520px;
flex: 1;
overflow-y: auto;
}
.dm-messages::-webkit-scrollbar { width: 3px; }
.dm-messages::-webkit-scrollbar-thumb { background: #2a2a3a; border-radius: 2px; }
.dm-msg { display: flex; gap: 8px; align-items: flex-end; }
.dm-msg.bot { flex-direction: row; }
.dm-msg.user { flex-direction: row-reverse; }
.dm-bubble {
max-width: 85%;
padding: 8px 12px;
border-radius: 12px;
font-size: 13px;
line-height: 1.7;
}
.dm-msg.bot .dm-bubble {
background: rgba(255,255,255,0.03);
color: #c8c8e0;
border: 0.5px solid rgba(255,255,255,0.05);
border-bottom-left-radius: 3px;
}
.dm-msg.user .dm-bubble {
background: rgba(0,212,255,0.12);
color: #c8e8ff;
border: 0.5px solid rgba(0,212,255,0.15);
border-bottom-right-radius: 3px;
}
.dm-msg-icon {
width: 22px; height: 22px; border-radius: 50%;
background: rgba(0,212,255,0.12);
display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dm-msg-icon i { font-size: 11px; color: #00d4ff; }
/* Typing indicator */
.dm-typing { display: flex; gap: 4px; padding: 6px 0; align-items: center; }
.dm-typing span {
width: 6px; height: 6px; border-radius: 50%;
background: rgba(0,212,255,0.5);
animation: dm-blink 1.2s infinite;
}
.dm-typing span:nth-child(2) { animation-delay: 0.2s; }
.dm-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dm-blink { 0%,80%,100%{opacity:.3} 40%{opacity:1} }
/* Suggestions */
.dm-suggestions {
display: flex; gap: 6px; padding: 0 12px 10px; flex-wrap: wrap;
}
.dm-sug {
background: none;
border: 0.5px solid #2a2a3a;
border-radius: 20px;
padding: 4px 10px;
font-size: 11.5px;
color: #7777aa;
cursor: pointer;
transition: border-color 0.15s, color 0.15s;
}
.dm-sug:hover { border-color: rgba(0,212,255,0.4); color: #00d4ff; }
/* Input row */
.dm-input-row {
padding: 10px 12px;
display: flex;
gap: 8px;
border-top: 0.5px solid #2a2a3a;
align-items: center;
}
#dm-input {
flex: 1;
background: #1a1a2a;
border: 0.5px solid #2a2a3a;
border-radius: 20px;
padding: 8px 14px;
font-size: 13px;
color: #c8c8e0;
outline: none;
}
#dm-input::placeholder { color: #444466; }
#dm-input:focus { border-color: rgba(0,212,255,0.4); }
#dm-send-btn {
width: 34px; height: 34px; border-radius: 50%;
background: #00d4ff; border: none; cursor: pointer;
display: flex; align-items: center; justify-content: center;
transition: transform 0.12s, background 0.15s;
flex-shrink: 0;
}
#dm-send-btn:hover { background: #00b8dd; }
#dm-send-btn:active { transform: scale(0.92); }
#dm-send-btn i { font-size: 14px; color: #0d0d14; }
/* ===== MODAL ===== */
.modal-overlay {
position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.85);
display: none; align-items: center; justify-content: center; padding: 40px;
backdrop-filter: blur(8px);
}
.modal-overlay.active { display: flex; }
.modal-content {
max-width: 90vw; max-height: 90vh; border-radius: var(--radius);
overflow: hidden; position: relative; animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.modal-content img { max-width: 100%; max-height: 85vh; display: block; }
.modal-close {
position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
border-radius: 50%; border: none; background: rgba(0,0,0,0.6); color: #fff;
font-size: 1.2rem; cursor: pointer; transition: all 0.3s;
}
.modal-close:hover { background: var(--danger); }
/* ===== AI BRAIN LOADER ===== */
.spinner-overlay {
position: fixed; inset: 0; z-index: 150; background: rgba(6, 8, 13, 0.95);
display: none; align-items: center; justify-content: center; flex-direction: column; gap: 30px;
backdrop-filter: blur(12px);
}
.spinner-overlay.active { display: flex; }
.ai-brain-loader {
position: relative; width: 100px; height: 100px;
display: flex; align-items: center; justify-content: center;
}
.brain-core {
width: 24px; height: 24px; border-radius: 50%;
background: var(--accent);
box-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent), 0 0 60px var(--accent2);
animation: corePulse 1.5s ease-in-out infinite alternate;
}
.brain-ring {
position: absolute; border-radius: 50%;
border: 2px solid transparent; border-top-color: var(--accent); border-bottom-color: var(--accent2);
animation: spinRing linear infinite;
}
.ring-1 { width: 50px; height: 50px; animation-duration: 2s; border-width: 2px; opacity: 0.8; }
.ring-2 { width: 70px; height: 70px; animation-duration: 3s; animation-direction: reverse; border-width: 1.5px; opacity: 0.6; }
.ring-3 { width: 90px; height: 90px; animation-duration: 4s; border-width: 1px; opacity: 0.4; border-left-color: var(--accent); }
@keyframes corePulse {
0% { transform: scale(0.85); opacity: 0.8; }
100% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 30px var(--accent), 0 0 50px var(--accent2), 0 0 80px var(--accent); }
}
@keyframes spinRing { to { transform: rotate(360deg); } }
.spinner-text {
color: var(--text); font-size: 1.1rem; font-family: 'Syne', sans-serif; font-weight: 700;
text-transform: uppercase; letter-spacing: 2px;
animation: pulseText 2s infinite alternate;
}
@keyframes pulseText { from { opacity: 0.6; } to { opacity: 1; text-shadow: 0 0 10px var(--accent); } }
.spinner-progress-track {
width: 250px; height: 4px; background: var(--glass-border);
border-radius: 4px; overflow: hidden; margin-top: -10px;
}
.spinner-progress-bar {
height: 100%; width: 0%; background: var(--accent);
transition: width 0.4s ease;
box-shadow: 0 0 10px var(--accent);
}
/* ===== WAKEUP OVERLAY ===== */
.wakeup-overlay {
position: fixed; inset: 0; z-index: 9999; background: rgba(6, 8, 13, 1);
display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 30px;
}
.wakeup-text {
color: var(--text); font-size: 1.2rem; font-family: 'Syne', sans-serif; font-weight: 700;
text-transform: uppercase; letter-spacing: 2px;
animation: pulseText 1.5s infinite alternate;
}
/* ===== PREVIEW MODAL ===== */
.preview-modal-overlay {
position: fixed; inset: 0; z-index: 250; background: rgba(0,0,0,0.85);
display: flex; align-items: center; justify-content: center; padding: 40px;
backdrop-filter: blur(8px);
}
.preview-modal-content {
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 24px;
width: 90vw;
max-width: 1000px;
max-height: 85vh;
display: flex;
flex-direction: column;
gap: 16px;
animation: modalIn 0.3s ease;
}
.preview-modal-content h2 { margin-top: 0; color: var(--accent); }
.preview-table-container {
overflow: auto;
border: 1px solid var(--border);
border-radius: var(--radius-xs);
flex: 1;
}
#preview-table {
width: 100%; border-collapse: collapse; font-size: 0.85rem;
}
#preview-table th, #preview-table td {
padding: 8px 12px; border: 1px solid var(--border);
white-space: nowrap;
}
#preview-table th {
background: var(--card-solid);
position: sticky; top: 0;
font-weight: 600;
color: var(--accent2);
}
.preview-actions {
display: flex; gap: 12px; justify-content: flex-end;
margin-top: 10px;
}
/* ===== SKELETON ===== */
.skeleton {
background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%);
background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-chart { height: 300px; border-radius: var(--radius); }
.skeleton-text { height: 14px; margin-bottom: 8px; width: 80%; }
.skeleton-text.short { width: 40%; }
/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
.app-layout { grid-template-columns: 240px 4px 1fr; }
}
@media (max-width: 960px) {
.app-layout { grid-template-columns: 1fr; }
.sidebar { display: none; }
.resize-handle { display: none; }
.chat-panel { position: fixed; right: -360px; top: 56px; width: 360px; z-index: 90; transition: right 0.3s var(--ease); max-width: 100vw; }
.chat-panel.open { right: 0; }
.charts-grid { grid-template-columns: 1fr; }
.chat-toggle { display: flex !important; }
}
@media (max-width: 768px) {
.landing-title { font-size: 1.8rem; }
.landing-sub { font-size: 0.9rem; }
.dataset-options, .how-it-works { flex-direction: column; }
.how-it-works .step-connector { width: 1px; height: 30px; flex: 0 0 30px; top: 0; }
.kpi-row { grid-template-columns: 1fr 1fr; }
.whatif-controls { flex-direction: column; }
}
@media (max-width: 375px) {
.main-content { padding: 12px; }
.kpi-row { grid-template-columns: 1fr; }
.topbar { padding: 0 12px; }
.landing-title { font-size: 1.5rem; }
}
.chat-toggle {
display: none; position: fixed; bottom: 24px; right: 24px; z-index: 95;
width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
background: linear-gradient(135deg, var(--accent), var(--accent2));
color: #fff; font-size: 1.4rem; box-shadow: 0 6px 25px rgba(0,229,255,0.4);
align-items: center; justify-content: center;
}
.hidden { display: none !important; }