@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700&display=swap');

/*
 * Design tokens: public-sector, trust-first.
 * One blue family (federal navy), one neutral gray family, semantic colors
 * left to Bootstrap. Shape lock: controls 10px, cards/panels 14px, pills
 * only for status badges.
 */
:root {
  --brand-primary: #1a4480;
  --brand-primary-dark: #162e51;
  --brand-accent: #0b687a;
  --brand-dark: #162e51;
  --card-bg: #ffffff;
  --border-soft: rgba(26, 68, 128, 0.18);
  --radius-control: 10px;
  --radius-card: 14px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Public Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  margin: 0;
  background: #f4f6f8;
  color: #1f2933;
}

.navbar {
  background: var(--brand-primary-dark);
  border-bottom: 4px solid var(--brand-primary);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Admin nav: quiet links instead of a row of outlined buttons. */
.navbar .nav-link {
  color: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.navbar .nav-link.active {
  color: var(--brand-primary-dark);
  background: #ffffff;
}

.hero-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 10px rgba(22, 46, 81, 0.08);
  border: 1px solid var(--border-soft);
}

.card {
  border-radius: var(--radius-card);
  border: 1px solid rgba(22, 46, 81, 0.12);
  box-shadow: 0 1px 4px rgba(22, 46, 81, 0.08);
}

.form-label {
  font-weight: 500;
  color: #37404a;
}

.form-control,
.form-select {
  border-radius: var(--radius-control);
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(31, 41, 51, 0.2);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(26, 68, 128, 0.14);
}

.btn-primary {
  background: var(--brand-primary);
  border: none;
  border-radius: var(--radius-control);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(22, 46, 81, 0.2);
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background: var(--brand-primary-dark);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-outline-light {
  border-radius: var(--radius-control);
  border-width: 1px;
  font-weight: 600;
}

.scroll-select {
  max-height: 220px;
  overflow-y: auto;
  border-radius: var(--radius-control);
}

.badge-soft {
  background: rgba(11, 104, 122, 0.1);
  color: var(--brand-accent);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.table-modern {
  border-radius: var(--radius-card);
  overflow: hidden;
}

.table-modern thead {
  background: rgba(26, 68, 128, 0.07);
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.table-modern tbody tr {
  transition: background 0.15s ease;
}

.table-modern tbody tr:hover {
  background: rgba(26, 68, 128, 0.045);
}

.status-pill {
  border-radius: 999px;
  padding: 0.2rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.status-pill.success {
  background: rgba(21, 128, 61, 0.12);
  color: #15803d;
}

.status-pill.warning {
  background: rgba(180, 126, 0, 0.14);
  color: #9a6b00;
}

/* Flat white panel (legacy class name kept for existing views). */
.glass-panel {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  border: 1px solid rgba(22, 46, 81, 0.12);
  box-shadow: 0 2px 10px rgba(22, 46, 81, 0.08);
}

.page-heading {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brand-dark);
}

.subtext {
  color: #5c6773;
}

.toast.text-bg-success,
.toast.text-bg-danger {
  border-radius: 12px;
}
