/* HDCF brand colours */
:root {
  --hdcf-blue-light: #5B9BD5;
  --hdcf-blue-dark:  #1A3C6E;
  --hdcf-pink:       #E01D8C;
  --hdcf-pink-light: #f06ab4;
  --hdcf-bg:         #f0f4f8;
  --hdcf-card-bg:    #ffffff;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
body {
  background: var(--hdcf-bg);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #2d3748;
}

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.hdcf-nav {
  background: #ffffff !important;
  border-bottom: 3px solid var(--hdcf-pink);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  padding-top: .5rem;
  padding-bottom: .5rem;
}

.hdcf-nav .navbar-brand img {
  height: 72px;
  width: auto;
}

.hdcf-nav .nav-link {
  color: var(--hdcf-blue-dark) !important;
  font-weight: 600;
  font-size: .95rem;
  padding: .4rem .9rem !important;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.hdcf-nav .nav-link:hover {
  background: var(--hdcf-bg);
  color: var(--hdcf-pink) !important;
}

.hdcf-nav .navbar-text {
  color: #718096 !important;
  font-size: .875rem;
}

.hdcf-nav .btn-logout {
  color: var(--hdcf-blue-dark);
  border: 1.5px solid var(--hdcf-blue-dark);
  border-radius: 20px;
  font-size: .85rem;
  padding: .25rem .9rem;
  font-weight: 600;
  transition: all .15s;
}
.hdcf-nav .btn-logout:hover {
  background: var(--hdcf-blue-dark);
  color: #fff;
}

/* ── Page heading strip ──────────────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--hdcf-blue-dark) 0%, #2a5298 100%);
  color: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}
.page-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}
.page-header .sub {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  margin-top: .1rem;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}
.card-header-accent {
  background: linear-gradient(135deg, var(--hdcf-blue-dark) 0%, #2a5298 100%);
  color: #fff;
  border-radius: 12px 12px 0 0 !important;
  font-weight: 700;
  padding: .75rem 1.25rem;
  font-size: .95rem;
  letter-spacing: .01em;
}

/* ── Stat cards ──────────────────────────────────────────────────────────── */
.stat-card {
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stat-card.blue {
  background: linear-gradient(135deg, var(--hdcf-blue-dark), #2a5298);
}
.stat-card.pink {
  background: linear-gradient(135deg, var(--hdcf-pink), #c4177c);
}
.stat-card.red {
  background: linear-gradient(135deg, #c53030, #9b2c2c);
}
.stat-card.grey {
  background: #f7faff;
  color: #4a5568;
}
.stat-card .stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}
.stat-card .stat-label {
  font-size: .85rem;
  opacity: .85;
  margin-top: .25rem;
}
.stat-card::after {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

/* ── Section headings ────────────────────────────────────────────────────── */
.section-heading {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--hdcf-blue-dark);
  font-weight: 800;
  margin-top: 1.75rem;
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.section-heading::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--hdcf-pink), transparent);
  border-radius: 2px;
}

/* ── List groups ─────────────────────────────────────────────────────────── */
.list-group-item {
  border-left: none;
  border-right: none;
  border-color: #edf2f7;
  padding: .85rem 1.1rem;
}
.list-group-item:first-child { border-top: none; border-radius: 12px 12px 0 0; }
.list-group-item:last-child  { border-bottom: none; border-radius: 0 0 12px 12px; }
.list-group-item:only-child  { border-radius: 12px; }

.list-group-item-action:hover {
  background: #f7faff;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--hdcf-blue-dark), #2a5298);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: .45rem 1.1rem;
  box-shadow: 0 2px 6px rgba(26,60,110,.25);
  transition: opacity .15s, box-shadow .15s;
}
.btn-primary:hover {
  opacity: .9;
  box-shadow: 0 4px 12px rgba(26,60,110,.3);
  background: linear-gradient(135deg, var(--hdcf-blue-dark), #2a5298);
  border: none;
}
.btn-outline-primary {
  color: var(--hdcf-blue-dark);
  border: 1.5px solid var(--hdcf-blue-dark);
  border-radius: 8px;
  font-weight: 600;
}
.btn-outline-primary:hover {
  background: var(--hdcf-blue-dark);
  border-color: var(--hdcf-blue-dark);
}
.btn-outline-secondary {
  border-radius: 8px;
  font-weight: 500;
}
.btn-outline-danger {
  border-radius: 8px;
  font-weight: 500;
}
.btn-sm { font-size: .82rem; }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.badge {
  border-radius: 20px;
  font-weight: 600;
  font-size: .72rem;
  padding: .3em .7em;
}
.badge.bg-primary   { background: var(--hdcf-blue-dark) !important; }
.badge.bg-secondary { background: var(--hdcf-blue-light) !important; }
.badge-pink         { background: var(--hdcf-pink); color: #fff; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-control, .form-select {
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  font-size: .92rem;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--hdcf-blue-light);
  box-shadow: 0 0 0 3px rgba(91,155,213,.18);
}
.form-label {
  font-size: .82rem;
  color: #4a5568;
  margin-bottom: .3rem;
}

/* ── Login page ──────────────────────────────────────────────────────────── */
.login-header {
  background: linear-gradient(135deg, var(--hdcf-blue-dark) 0%, #2a5298 100%);
  color: white;
  border-radius: 12px 12px 0 0;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}
.login-header img {
  max-height: 80px;
  max-width: 100%;
  filter: brightness(0) invert(1);
}
.login-header .tagline {
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  margin-top: .4rem;
}

/* ── Detail page dl rows ─────────────────────────────────────────────────── */
dt.col-sm-4 {
  font-size: .82rem;
  color: #718096;
  font-weight: 500;
}
dd.col-sm-8 {
  font-size: .92rem;
  color: #2d3748;
}
