:root {
  --font-display: 'Space Grotesk', 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --brand-blue: #1d4ed8;
  --brand-slate: #0f172a;
  --hero-blue-1: #123a8c;
  --hero-blue-2: #0c2a68;
}

/* --- Base UI Colors & Typography --- */
body {
  background: #ffffff;
  color: #1a202c;
  font-family: var(--font-body);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* --- Header & Navigation --- */
header {
  background-color: #2f3542;
  color: #ffffff;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.nav-link {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.875rem;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: #facc15;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #facc15;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* --- UI Cards / Panels / Dashboards --- */
.card,
.panel,
.dashboard-section {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
}

/* --- Forms (Inputs, Selects, Textareas) --- */
input,
textarea,
select {
  background-color: #ffffff;
  color: #1a202c;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.5rem;
  width: 100%;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 1px #2563eb33;
}

/* --- Buttons --- */
.btn-primary {
  background-color: #2563eb;
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn-primary:hover {
  background-color: #1d4ed8;
}
.btn-secondary {
  background-color: #f3f4f6;
  color: #1f2937;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}
.btn-secondary:hover {
  background-color: #e5e7eb;
}

/* --- Alerts / Feedback --- */
.alert-success {
  background-color: #d1fae5;
  color: #065f46;
  padding: 1rem;
  border-radius: 8px;
}
.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  padding: 1rem;
  border-radius: 8px;
}

/* --- Tables --- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th,
td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}
thead {
  background-color: #f1f5f9;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
tbody tr:hover {
  background-color: #f8fafc;
}

/* --- Badges & Labels --- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background-color: #e0f2fe;
  color: #0369a1;
}

/* --- Modals & Backdrops --- */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

/* --- Transitions --- */
.transition {
  transition: all 0.3s ease;
}

/* --- Blue wrap cards to echo hero gradient --- */
.section-wrap {
  background: var(--hero-blue-1);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.12);
}
.section-inner {
  background: #ffffff;
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 4px 12px rgba(12, 42, 104, 0.05);
}

.section-dark {
  background: linear-gradient(135deg, var(--hero-blue-1), var(--hero-blue-2));
  border-radius: 32px;
  padding: 48px 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
}
