/* base.css ─ reset, body, header, panels, freshness bar. Loaded first. */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  background: #0f1117;
  color: #e8e8e8;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

#tab-panels {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* ── Header ─────────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 8px;
  background: #1a1d27;
  border-bottom: 1px solid #2a2d3a;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-icon {
  font-size: 18px;
  color: #c9a84c;
  flex-shrink: 0;
  line-height: 1;
}

.header-title {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e8e8e8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Panels ──────────────────────────────────────── */
.panel {
  padding: 14px;
  border-bottom: 1px solid #1e2130;
}

.panel h3 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #c8cde0;
  margin-bottom: 10px;
}

.hidden {
  display: none !important;
}

/* Cache freshness indicator — compact dot strip above the tab bar showing
   how fresh each major data source is. Green < 1h, amber < 6h, red older
   or unloaded. Hover for the full timestamp. */
.freshness-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  color: #777e92;
  padding: 4px 10px;
  border-bottom: 1px solid #1e2130;
  background: #0f1117;
}
.freshness-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.freshness-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #555c70;     /* default — not loaded yet */
  transition: background 0.2s;
}
.freshness-dot.fresh { background: #2da44e; }   /* < 1h */
.freshness-dot.stale { background: #d4a017; }   /* < 6h */
.freshness-dot.cold  { background: #cf222e; }   /* ≥ 6h */

