/* styles.css — Client Portal Build Dashboard
   Reuses the OKLCH dark-mode design tokens established in the sibling
   abmad100/prompt-tracker app for visual consistency across this Hey Man
   Vercel-app family. Table styling here is new (prompt-tracker has no
   table, only a list) and follows this app's own reference style: light
   dividers between rows (not banding — deliberately not both), left-
   aligned text columns, and a single colored badge for the Status column
   as the only per-row embellishment. */

:root {
  color-scheme: dark;
  --bg: oklch(9% 0.012 264);
  --surface: oklch(14% 0.015 264);
  --surface-hover: oklch(19% 0.017 264);
  --fg: oklch(94% 0.006 264);
  --muted: oklch(62% 0.012 264);
  --border: oklch(24% 0.014 264);
  --accent: oklch(62% 0.19 275);
  --accent-hover: oklch(68% 0.18 275);
  --accent-fg: oklch(12% 0.02 275);
  --accent-ring: oklch(62% 0.19 275 / 0.35);
  --warn-bg: oklch(30% 0.08 80);
  --warn-fg: oklch(88% 0.08 80);
  --error-bg: oklch(28% 0.1 25);
  --error-fg: oklch(88% 0.08 25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

header {
  padding: 24px 32px 8px;
}

h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

main {
  padding: 0 32px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.filters {
  display: flex;
  gap: 16px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

.filters select {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.95rem;
  min-width: 180px;
}

.filters select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

#chart-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

@media (max-width: 720px) {
  #chart-section {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.chart-card h2 {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 600;
}

#table-status {
  margin-bottom: 12px;
}

.banner {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.banner--info {
  background: var(--surface);
  color: var(--muted);
}

.banner--warning {
  background: var(--warn-bg);
  color: var(--warn-fg);
}

.banner--error {
  background: var(--error-bg);
  color: var(--error-fg);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
}

thead th {
  text-align: left;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

tbody td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

tbody tr:last-child td {
  border-bottom: none;
}

.cell-date {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

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

.status-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  background: oklch(62% 0.19 275 / 0.14);
  color: var(--accent-hover);
}

.status-badge--not-started {
  background: oklch(60% 0.01 264 / 0.2);
  color: var(--muted);
}

.status-badge--complete {
  background: oklch(65% 0.14 150 / 0.18);
  color: oklch(78% 0.14 150);
}

.status-badge--blocked,
.status-badge--findings-open {
  background: var(--warn-bg);
  color: var(--warn-fg);
}

.status-badge--unset,
.status-badge--unknown {
  background: oklch(60% 0.01 264 / 0.14);
  color: var(--muted);
}
