:root {
  --brand-primary: #0b3d91; /* deep navy blue */
  --brand-accent: #0fb3a2;  /* teal accent */
  --brand-muted: #6c757d;   /* muted gray */
  --brand-bg: #f6f8fb;      /* light page background */
  --surface: #ffffff;       /* card/background surface */
  --radius: 8px;
}

/* Responsive base font sizing */
html { font-size: 14px; }
@media (min-width: 768px) { html { font-size: 16px; } }

html { position: relative; min-height: 100%; background-color: var(--brand-bg); }
body { margin: 0 0 60px 0; color: #222; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }

/* Navbar */
.navbar {
  background: linear-gradient(90deg, rgba(11,61,145,1) 0%, rgba(11,61,145,0.95) 100%);
  box-shadow: 0 2px 8px rgba(11,61,145,0.08);
}
.navbar .navbar-brand { font-weight: 700; letter-spacing: .2px; color: #fff; }
.navbar .nav-link { color: rgba(255,255,255,0.92); }
.navbar .nav-link:hover { color: #fff; opacity: 0.95; }

/* Buttons */
.btn-primary {
  background-color: var(--brand-primary);
  border-color: rgba(255,255,255,0.07);
  color: #fff;
  box-shadow: 0 6px 18px rgba(11,61,145,0.12);
  border-radius: 6px;
}
.btn-primary:hover { background-color: #09336f; }
.btn-outline-accent {
  color: var(--brand-accent);
  border-color: rgba(15,179,162,0.15);
}
.btn-outline-accent:hover { background-color: rgba(15,179,162,0.06); }

/* Cards and surfaces */
.card {
  border: 1px solid rgba(11,61,145,0.06);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 6px 16px rgba(32,41,54,0.04);
}
.card-header {
  background: transparent;
  border-bottom: 1px solid rgba(11,61,145,0.04);
  font-weight: 600;
}

/* Forms */
.form-control {
  border-radius: 6px;
  border: 1px solid rgba(33,37,41,0.08);
  padding: .6rem .75rem;
}
.form-control:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 0.15rem rgba(15,179,162,0.16);
}

/* Table styling */
.table thead th {
  border-bottom: 2px solid rgba(11,61,145,0.06);
  color: var(--brand-primary);
  font-weight: 600;
  background-color: rgba(11,61,145,0.03); /* subtle tint to separate header */
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Footer */
.footer { background: transparent; color: var(--brand-muted); }
.footer a { color: var(--brand-primary); text-decoration: none; }

/* Utility tweaks */
.container { max-width: 1100px; }
.text-accent { color: var(--brand-accent) !important; }

/* Focus states (accessibility) */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  outline: none;
  box-shadow: 0 0 0 0.08rem #fff, 0 0 0 0.22rem rgba(15,179,162,0.14);
}

/* Small responsive spacing */
@media (max-width: 575.98px) {
  .navbar .navbar-brand { font-size: 1rem; }
}

/* Datepicker input improvements */
.datepicker-input {
  height: calc(1.8125rem + 2px);
  border-radius: 6px;
  padding: .25rem .5rem;
}

/* Ensure the icon part of input-group isn't too tall */
.input-group-text { border-radius: 6px; border: 1px solid rgba(33,37,41,0.08); }

/* On small screens stack filters nicely */
@media (max-width: 767.98px) {
  .report-filters { gap: .5rem; }
  .report-filters .form-control { width: 100% !important; }
  .report-filters .input-group { width: 100% !important; }
}
