/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --header-bg: #0F172A;
  --header-h: 56px;
  --tab-bar-h: 44px;
  --accent: #0EA5A4;
  --accent-hover: #0d9594;
  --surface: #F6F7FB;
  --tab-bg: #1E293B;
  --tab-active: #0EA5A4;
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --border: #334155;
}

html, body { height: 100%; font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; background: var(--surface); }

/* ── Header ──────────────────────────────────────────────── */
.header {
  display: flex; align-items: center; gap: 14px;
  height: var(--header-h); padding: 0 24px;
  background: var(--header-bg); color: var(--text);
}
.header .logo { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.header .logo span { color: var(--accent); }
.header .sep { width: 1px; height: 24px; background: var(--border); }
.header .subtitle { font-size: 13px; color: var(--text-muted); font-weight: 400; }

/* ── Tab Bar ─────────────────────────────────────────────── */
.tab-bar {
  display: flex; align-items: stretch;
  height: var(--tab-bar-h);
  background: var(--tab-bg); padding: 0 16px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.tab-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 0 20px; height: 100%;
  background: none; border: none; border-bottom: 3px solid transparent;
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.tab-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.tab-btn.active {
  color: var(--text); border-bottom-color: var(--tab-active);
  background: rgba(14,165,164,0.08);
}
.tab-btn .icon { font-size: 15px; }

/* ── Report Panels ───────────────────────────────────────── */
.report-container {
  height: calc(100vh - var(--header-h) - var(--tab-bar-h));
  position: relative; background: var(--surface);
}

.report-panel {
  display: none; width: 100%; height: 100%;
  position: absolute; top: 0; left: 0;
}
.report-panel.active { display: block; }

.report-panel iframe {
  width: 100%; height: 100%; border: none;
}

/* ── Loading state ───────────────────────────────────────── */
.report-panel .loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px;
  background: var(--surface);
  pointer-events: none;
  transition: opacity 0.3s;
}
.report-panel.loaded .loading { opacity: 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .header { padding: 0 12px; gap: 8px; }
  .header .subtitle { display: none; }
  .tab-btn { padding: 0 12px; font-size: 12px; }
}
