/* Header, tab navigation, stat/hero cards, and section-card chrome. */

header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; background: var(--bg-card); padding: 20px 28px; border-radius: 12px; border: 1px solid var(--border); }
.logo-group { display: flex; align-items: center; gap: 14px; }
.logo-icon-wrap { width: 44px; height: 44px; background: rgba(99, 102, 241, 0.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(99, 102, 241, 0.25); }
h1 { font-size: 20px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.3px; }
.status-badge { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.3); padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.status-dot { width: 8px; height: 8px; background: var(--accent-emerald); border-radius: 50%; display: inline-block; box-shadow: 0 0 8px var(--accent-emerald); }
.status-badge.disabled { background: rgba(239, 68, 68, 0.15); color: var(--accent-rose); border-color: rgba(239, 68, 68, 0.3); }
.status-badge.disabled .status-dot { background: var(--accent-rose); box-shadow: 0 0 8px var(--accent-rose); }

.tabs { display: flex; gap: 6px; margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 12px; overflow-x: auto; flex-wrap: nowrap; align-items: center; -webkit-overflow-scrolling: touch; }
.tab-btn { background: transparent; color: var(--text-muted); border: none; font-size: 13px; font-weight: 600; cursor: pointer; padding: 8px 12px; border-radius: 8px; transition: 0.2s; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.tab-btn svg { transition: transform 0.2s; flex-shrink: 0; }
.tab-btn:hover { color: var(--text-primary); background: var(--bg-card); }
.tab-btn.active { color: var(--text-primary); background: var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.tab-btn.active svg { stroke: var(--accent-indigo); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border-radius: 12px; padding: 20px; border: 1px solid var(--border); }
.stat-title { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-bottom: 8px; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--text-primary); }
.stat-desc { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* Hero Metric Banner */
.hero-card { background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(99, 102, 241, 0.15)); border: 1px solid rgba(16, 185, 129, 0.4); border-radius: 16px; padding: 28px; margin-bottom: 24px; position: relative; overflow: hidden; }
.hero-title { font-size: 13px; font-weight: 700; color: var(--accent-emerald); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.hero-value { font-size: 42px; font-weight: 800; color: var(--text-primary); text-shadow: 0 2px 10px rgba(16, 185, 129, 0.3); }
.hero-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

.section-card { background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); padding: 24px; margin-bottom: 24px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-title { font-size: 16px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.btn-refresh { background: var(--border); color: var(--text-primary); border: none; padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; gap: 6px; }
.btn-refresh:hover { background: var(--border-strong); }

/*
 * Flat "accent" card — a single colored left border + icon chip instead of a
 * full gradient background. The dashboard used to give nearly every card its
 * own unique gradient, which reads as noisy and leaves no visual hierarchy
 * (nothing stands out because everything is loud). The .hero-card above is
 * kept as the one deliberate exception — every other "this section matters"
 * card should use .accent-card instead so the hero has room to actually read
 * as the hero.
 */
.accent-card { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--accent-card-color, var(--accent-indigo)); border-radius: 10px; padding: 18px 20px; margin-bottom: 20px; }
.accent-card.accent-emerald { --accent-card-color: var(--accent-emerald); }
.accent-card.accent-indigo { --accent-card-color: var(--accent-indigo); }
.accent-card.accent-amber { --accent-card-color: var(--accent-amber); }

.icon-chip { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-chip.chip-emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.icon-chip.chip-indigo { background: rgba(99, 102, 241, 0.15); color: var(--accent-indigo-light); }
.icon-chip.chip-amber { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
