/* Atlas — Employer + Policymaker dashboards */

body.dash-page {
  margin: 0;
  background: var(--atlas-bg);
  min-height: 100vh;
}

.dash-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 20px;
}

.dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: var(--atlas-navy);
  color: white;
}
.dash-topbar a { color: var(--atlas-cyan); }
.dash-topbar .country-toggle { display: flex; gap: 8px; }
.dash-topbar .country-btn {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.85rem;
  cursor: pointer;
}
.dash-topbar .country-btn.active { background: var(--atlas-cyan); color: var(--atlas-navy); font-weight: 600; }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.kpi-card {
  background: var(--atlas-surface);
  border: 1px solid var(--atlas-border);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.kpi-card .lbl { font-size: 0.78rem; color: var(--atlas-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.kpi-card .val { font-size: 1.6rem; font-weight: 700; color: var(--atlas-navy); margin-top: 4px; }
.kpi-card .sub { font-size: 0.78rem; color: var(--atlas-muted); margin-top: 4px; }
.kpi-card .src { font-size: 0.7rem; color: var(--atlas-blue); margin-top: 4px; font-family: ui-monospace, monospace; }

.dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--atlas-surface);
  border: 1px solid var(--atlas-border);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.panel h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.panel .panel-sub { color: var(--atlas-muted); font-size: 0.85rem; margin-bottom: 16px; }
.panel-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--atlas-bg);
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  color: var(--atlas-muted);
  font-family: ui-monospace, monospace;
  margin-left: auto;
}

/* ─── Heatmap (employer) ─── */
.heatmap {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.heat-cell {
  position: relative;
  border-radius: var(--r-sm);
  padding: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  text-align: center;
  color: white;
  cursor: pointer;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.heat-cell .ward { font-size: 0.66rem; opacity: 0.95; font-weight: 500; }
.heat-cell .count { font-size: 1.05rem; }

/* ─── Pseudonymous list ─── */
.candidate-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.candidate-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--atlas-bg);
  border-radius: var(--r-md);
  margin-bottom: 6px;
}
.candidate-list .badge {
  background: var(--atlas-navy);
  color: white;
  border-radius: var(--r-pill);
  padding: 2px 8px;
  font-size: 0.72rem;
  font-family: ui-monospace, monospace;
}
.candidate-list .ai-tier {
  background: linear-gradient(90deg, var(--atlas-cyan), var(--atlas-blue));
  color: white;
  border-radius: var(--r-pill);
  padding: 2px 8px;
  font-size: 0.72rem;
}
.candidate-list .req-btn {
  margin-left: auto;
  background: var(--atlas-blue);
  color: white;
  border: none;
  border-radius: var(--r-md);
  padding: 6px 12px;
  font-size: 0.78rem;
  cursor: pointer;
  font-weight: 600;
}

/* ─── Charts ─── */
.bar-chart { display: flex; flex-direction: column; gap: 8px; }
.bar {
  display: grid;
  grid-template-columns: 110px 1fr 50px;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}
.bar-track { height: 14px; background: var(--atlas-bg); border-radius: var(--r-sm); overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--atlas-cyan), var(--atlas-blue)); border-radius: var(--r-sm); transition: width 0.5s; }
.bar-fill.warn { background: linear-gradient(90deg, var(--atlas-gold), #ff8c3a); }
.bar-fill.danger { background: linear-gradient(90deg, #ff8c3a, var(--atlas-danger)); }
.bar-val { text-align: right; font-weight: 600; font-family: ui-monospace, monospace; }

.legend { display: flex; gap: 14px; font-size: 0.78rem; color: var(--atlas-muted); margin-top: 10px; }
.legend .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }

.privacy-banner {
  background: linear-gradient(135deg, #e0f2fe, #f3e8ff);
  border-left: 4px solid var(--atlas-blue);
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.privacy-banner strong { color: var(--atlas-navy); }

/* ─── NEW VERCEL-MATCHING STYLES ─── */
.vercel-topbar { background:#0F548F; color:white; padding:12px 24px; font-size:0.9rem; display:flex; justify-content:space-between; align-items:center; }
.vercel-topbar a { color:white; font-weight:600; text-decoration:none; }
.vercel-topbar a:hover { opacity:0.8; }
.vercel-topbar .sep { color:rgba(255,255,255,0.4); margin:0 8px; }
.vercel-topbar .curr { opacity:0.8; }

.v-shell { max-width:1440px; margin:0 auto; padding:24px; }
.v-header-row { display:flex; flex-direction:column; gap:16px; margin-bottom:24px; }
@media(min-width:1024px) { .v-header-row { flex-direction:row; justify-content:space-between; align-items:flex-end; } }
.v-header-row h1 { font-size:1.8rem; margin:0 0 8px 0; color:#002244; }
.v-sub { font-size:0.92rem; color:#475569; max-width:700px; margin:0; line-height:1.5; }
.v-warning { background:#FEF3C7; color:#92400E; padding:8px 16px; border-radius:6px; border:1px solid #FDE68A; font-size:0.85rem; max-width:400px; font-weight:500; }

.v-layout { display:grid; grid-template-columns:1fr; gap:24px; }
@media(min-width:1024px) { .v-layout { grid-template-columns:250px 1fr; } }
.v-sidebar { background:white; border:1px solid #E2E8F0; border-radius:12px; padding:16px; height:fit-content; }
.filter-group { border-bottom:1px solid #E2E8F0; padding-bottom:16px; margin-bottom:16px; }
.filter-group label { display:block; font-weight:600; color:#1E293B; margin-bottom:10px; font-size:0.9rem; }
.f-item { font-size:0.85rem; color:#475569; margin-bottom:8px; display:flex; align-items:center; gap:8px; }
.f-item input { accent-color:#059669; cursor:pointer; }
.tier-pills { display:flex; flex-wrap:wrap; gap:6px; }
.t-pill { border:1px solid #CBD5E1; background:white; border-radius:16px; padding:4px 10px; font-size:0.8rem; cursor:pointer; color:#475569; }
.t-pill.active { background:#D1FAE5; color:#065F46; border-color:#34D399; font-weight:600; }

.v-main { display:flex; flex-direction:column; gap:20px; }
.mb-4 { margin-bottom:16px; }
.v-grid-2 { display:grid; grid-template-columns:1fr; gap:20px; }
@media(min-width:800px) { .v-grid-2 { grid-template-columns:1fr 1fr; } }
.v-card { background:white; border:1px solid #E2E8F0; border-radius:12px; padding:20px; box-shadow:0 1px 3px rgba(0,0,0,0.05); }
.v-card-head h3 { margin:0 0 6px 0; font-size:1.1rem; color:#0F172A; }
.v-card-head .panel-sub { font-size:0.85rem; color:#64748B; }

.v-toggle { display:inline-flex; background:#F1F5F9; border-radius:24px; padding:4px; }
.v-toggle button { background:transparent; border:none; padding:6px 14px; border-radius:20px; font-size:0.85rem; cursor:pointer; font-weight:500; color:#64748B; }
.v-toggle button.active { background:white; color:#0F172A; box-shadow:0 1px 2px rgba(0,0,0,0.1); }

.candidate-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px; }
.v-candidate { border-bottom:1px solid #E2E8F0; padding-bottom:16px; display:flex; flex-direction:column; gap:10px; }
.v-candidate:last-child { border-bottom:none; margin-bottom:0; padding-bottom:0; }
.v-c-top { display:flex; gap:8px; }
.v-badge { padding:4px 8px; border-radius:6px; font-size:0.75rem; font-weight:600; }
.v-badge.id { background:#D1FAE5; color:#065F46; font-family:monospace; }
.v-badge.tr { background:#DBEAFE; color:#1E3A8A; }
.v-btn-whatsapp { background:#059669; color:white; border:none; border-radius:8px; padding:8px 16px; font-weight:600; font-size:0.9rem; cursor:pointer; width:max-content; transition:background 0.2s; }
.v-btn-whatsapp:hover { background:#047857; }
