/* ==========================================================================
   HRA Management — Notion-inspired design system
   Palette: near-white surfaces, soft gray text scale, hairline borders,
   one restrained accent (Notion blue). No gradients, no heavy shadows.
   ========================================================================== */

:root {
  --nt-bg: #f7f7f5;            /* page background */
  --nt-card: #ffffff;          /* card surface */
  --nt-border: #ececea;        /* hairline border */
  --nt-border-strong: #dfdfdc; /* inputs / stronger hairlines */
  --nt-text: #37352f;          /* body text */
  --nt-heading: #111111;       /* headings */
  --nt-muted: #6b6f76;         /* secondary text */
  --nt-faint: #9b9b9b;         /* tertiary text */
  --nt-hover: #f1f1ef;         /* hover wash */
  --nt-accent: #2383e2;        /* Notion blue — links, focus */
  --nt-accent-dark: #1b6fc2;
  --nt-dark: #111111;          /* primary button */
  --nt-green: #18794e;
  --nt-green-bg: #edf7f1;
  --nt-amber: #9a6700;
  --nt-amber-bg: #fdf3e3;
  --nt-red: #c2402b;
  --nt-red-bg: #fbeeea;
  --nt-blue-bg: #e8f3fd;
  --nt-teal: #0e7c6b;
  --nt-teal-bg: #e6f4f1;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
    "Helvetica Neue", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  background: var(--nt-bg);
  color: var(--nt-text);
}

/* ---------- Typography helpers ---------- */
.nt-page-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--nt-heading);
}
.nt-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--nt-heading);
}

/* ---------- Header / navigation ---------- */
.nt-nav {
  background: var(--nt-card);
  border-bottom: 1px solid var(--nt-border);
}
.nt-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--nt-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex: none;
}
.nt-navlink {
  display: inline-flex;
  align-items: center;
  color: var(--nt-muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.nt-navlink:hover {
  background: var(--nt-hover);
  color: var(--nt-heading);
}
.nt-navlink-active {
  background: var(--nt-hover);
  color: var(--nt-heading);
}

/* ---------- Buttons ---------- */
.nt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  padding: 9px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.nt-btn-sm {
  font-size: 13px;
  padding: 6px 12px;
}
.nt-btn-primary {
  background: var(--nt-dark);
  color: #fff;
}
.nt-btn-primary:hover { background: #2b2b2b; }
.nt-btn-accent {
  background: var(--nt-accent);
  color: #fff;
}
.nt-btn-accent:hover { background: var(--nt-accent-dark); }
.nt-btn-secondary {
  background: var(--nt-card);
  border-color: var(--nt-border-strong);
  color: var(--nt-text);
}
.nt-btn-secondary:hover { background: var(--nt-hover); }
.nt-btn-approve {
  background: var(--nt-green);
  color: #fff;
}
.nt-btn-approve:hover { background: #146641; }
.nt-btn-reject {
  background: var(--nt-red);
  color: #fff;
}
.nt-btn-reject:hover { background: #a93724; }

/* Text-style actions (table row actions, subtle links) */
.nt-action {
  font-size: 13px;
  font-weight: 500;
  color: var(--nt-accent);
  white-space: nowrap;
}
.nt-action:hover { text-decoration: underline; }
.nt-action-danger { color: var(--nt-red); }
.nt-action-danger:hover { text-decoration: underline; }
.nt-action-ok { color: var(--nt-green); }
.nt-action-ok:hover { text-decoration: underline; }

/* ---------- Links ---------- */
.nt-link {
  color: var(--nt-accent);
  font-weight: 500;
}
.nt-link:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.nt-card {
  background: var(--nt-card);
  border: 1px solid var(--nt-border);
  border-radius: 8px;
}
.nt-card-hover:hover {
  background: #fbfbfa;
  border-color: var(--nt-border-strong);
}

/* ---------- Tables ---------- */
.nt-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}
.nt-table thead th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nt-muted);
  padding: 10px 16px;
  border-bottom: 1px solid var(--nt-border);
  background: #fbfbfa;
  white-space: nowrap;
}
.nt-table thead th.nt-num,
.nt-table tbody td.nt-num { text-align: right; font-variant-numeric: tabular-nums; }
.nt-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid #f1f1ef;
  vertical-align: middle;
}
.nt-table tbody tr:last-child td { border-bottom: 0; }
.nt-table tbody tr:hover { background: #fafaf9; }
.nt-table .nt-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- Forms ---------- */
.nt-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--nt-text);
  margin-bottom: 4px;
}
.nt-field {
  width: 100%;
  border: 1px solid var(--nt-border-strong);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.45;
  background: var(--nt-card);
  color: var(--nt-text);
}
.nt-field::placeholder { color: var(--nt-faint); }
.nt-hint {
  font-size: 12px;
  color: var(--nt-muted);
}
input[type="checkbox"].nt-check,
.nt-field[type="checkbox"] {
  accent-color: var(--nt-dark);
  width: 15px;
  height: 15px;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--nt-accent);
  outline-offset: 1px;
}
.nt-field:focus {
  outline: 2px solid var(--nt-accent);
  outline-offset: 0;
  border-color: var(--nt-accent);
}

/* ---------- Pills / badges ---------- */
.nt-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  padding: 1px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.nt-pill-gray  { background: var(--nt-hover); color: #5f6368; }
.nt-pill-blue  { background: var(--nt-blue-bg); color: var(--nt-accent-dark); }
.nt-pill-green { background: var(--nt-green-bg); color: var(--nt-green); }
.nt-pill-amber { background: var(--nt-amber-bg); color: var(--nt-amber); }
.nt-pill-red   { background: var(--nt-red-bg); color: var(--nt-red); }
.nt-pill-teal  { background: var(--nt-teal-bg); color: var(--nt-teal); }

/* ---------- Flash / notice messages (subtle, Notion-style) ---------- */
.nt-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--nt-card);
  border: 1px solid var(--nt-border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 13.5px;
  color: var(--nt-text);
  margin-bottom: 16px;
}
.nt-notice::before {
  content: "";
  flex: none;
  width: 3px;
  align-self: stretch;
  border-radius: 2px;
  background: var(--nt-faint);
}
.nt-notice-ok::before  { background: var(--nt-green); }
.nt-notice-err::before { background: var(--nt-red); }
.nt-notice-warn::before { background: var(--nt-amber); }
.nt-notice ul { margin: 0; padding-left: 18px; list-style: disc; }

/* ---------- Stat cards ---------- */
.nt-stat-label {
  font-size: 12.5px;
  color: var(--nt-muted);
  margin-bottom: 2px;
}
.nt-stat-value {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--nt-heading);
  font-variant-numeric: tabular-nums;
}

/* ---------- Definition lists (detail panels) ---------- */
.nt-dl dt { color: var(--nt-muted); }
.nt-dl dd { color: var(--nt-text); }

/* ---------- Timelines ---------- */
.nt-timeline-item {
  border-left: 2px solid var(--nt-border);
  padding-left: 12px;
}

/* ---------- Marketing ---------- */
.nt-hero {
  background: var(--nt-card);
  border: 1px solid var(--nt-border);
  border-radius: 12px;
}
.nt-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nt-accent);
}
.nt-callout {
  background: var(--nt-card);
  border: 1px solid var(--nt-border);
  border-radius: 12px;
}
.nt-check { color: var(--nt-accent); font-weight: 700; }
.nt-code {
  background: var(--nt-hover);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Footer ---------- */
.nt-footer {
  border-top: 1px solid var(--nt-border);
  color: var(--nt-muted);
}
.nt-footer a { color: var(--nt-muted); }
.nt-footer a:hover { color: var(--nt-heading); }
