/* HERA dashboard — VERA-pattern vanilla CSS */
:root {
  --bg: #0e1116;
  --bg-panel: #151a22;
  --bg-panel-2: #1b222d;
  --line: #2a323f;
  --text: #d7dde5;
  --text-dim: #8a96a8;
  --accent: #c89b3c;         /* HERA gold — queen of the gods */
  --accent-soft: #e2b856;
  --ok: #3ecf8e;
  --warn: #e8a33d;
  --err: #ef5350;
  --link: #7ec6ff;
  --radius: 8px;
  --pad: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  min-height: 100vh;
}

header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
}
.brand { display: flex; align-items: baseline; gap: 14px; }
.brand h1 { margin: 0; color: var(--accent); font-weight: 700; letter-spacing: 1px; }
.tagline { color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; }

.status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-dim); }
.dot.ok { background: var(--ok); }
.dot.err { background: var(--err); }

nav.tabs {
  display: flex; gap: 4px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
}
.tab {
  background: transparent; border: 0; color: var(--text-dim);
  padding: 14px 20px;
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

main { padding: 20px 24px 80px; max-width: 1400px; margin: 0 auto; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

h2 { color: var(--text); font-size: 14px; text-transform: uppercase; letter-spacing: 1.2px;
     margin: 28px 0 10px; font-weight: 600; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.kpi {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.kpi .label { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; }
.kpi .value { font-size: 28px; font-weight: 600; color: var(--accent); margin-top: 4px; }

.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  line-height: 1.6;
}

.toolbar { display: flex; align-items: center; gap: 16px; }
.filters { display: flex; gap: 12px; font-size: 12px; color: var(--text-dim); }
.filters label { display: flex; align-items: center; gap: 4px; cursor: pointer; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-panel); }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--bg-panel-2); color: var(--text-dim); font-weight: 500; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; }
tr:hover td { background: var(--bg-panel-2); }

.stage-pill {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: var(--bg-panel-2); color: var(--text-dim);
}
.stage-pill.qualified { background: #2d4d3a; color: #7fe0a8; }
.stage-pill.new       { background: #35333f; color: #c6b8e3; }
.stage-pill.engaged   { background: #3a3a25; color: #e8d46b; }
.stage-pill.graduated { background: #2a445d; color: #a0c4ea; }
.stage-pill.rejected  { background: #412a2a; color: #e39090; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

footer {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between;
  padding: 10px 24px;
  background: var(--bg-panel); border-top: 1px solid var(--line);
  font-size: 11px; color: var(--text-dim);
}

.muted { color: var(--text-dim); }
.empty { padding: 18px; color: var(--text-dim); text-align: center; }
