body {
  font-family: 'Noto Sans Bengali', 'Segoe UI', sans-serif;
  background-color: #f4f6f9;
}

.bg-primary-custom {
  background-color: #0d6e4f !important;
}

.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.stat-card {
  border-radius: 14px;
  padding: 1.25rem;
  color: #fff;
}
.stat-card h2 { font-weight: 700; margin-bottom: 0; }
.stat-card small { opacity: .85; }

.bg-grad-1 { background: linear-gradient(135deg,#0d6e4f,#12a875); }
.bg-grad-2 { background: linear-gradient(135deg,#1b5cad,#2f8fe0); }
.bg-grad-3 { background: linear-gradient(135deg,#b0770f,#e0a72f); }
.bg-grad-4 { background: linear-gradient(135deg,#a3232f,#e0453f); }

.table thead { background-color: #eef2f1; }

/* ---------- Sidebar layout ---------- */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 220px;
  background-color: #0d6e4f;
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: transform .25s ease;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 700; font-size: 1.02rem;
  padding: 18px 16px; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.sidebar-brand:hover { color: #fff; }
.sidebar-nav { list-style: none; margin: 0; padding: 10px 0; flex: 1; overflow-y: auto; }
.sidebar-nav li a {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.82); text-decoration: none;
  padding: 10px 18px; font-size: .92rem;
  border-left: 3px solid transparent;
}
.sidebar-nav li a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-nav li a.active {
  background: rgba(255,255,255,.14); color: #fff;
  border-left-color: #fff; font-weight: 600;
}

.sidebar-submenu { list-style: none; margin: 0; padding: 0; }
.sidebar-submenu li a {
  padding: 7px 18px 7px 40px; font-size: .84rem;
  color: rgba(255,255,255,.68);
}
.sidebar-submenu li a:hover { color: #fff; }
.sidebar-submenu li a.active {
  background: rgba(255,255,255,.1); color: #fff;
  border-left-color: rgba(255,255,255,.6); font-weight: 500;
}
.sidebar-user {
  padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.15);
  color: #fff;
}
.sidebar-user a { color: #fff; text-decoration: none; font-size: .88rem; }
.sidebar-user a:hover { text-decoration: underline; }

.main-content { margin-left: 220px; min-height: 100vh; }

.topbar {
  position: sticky; top: 0; z-index: 1020;
  background-color: #0d6e4f; color: #fff;
  padding: 10px 14px; display: flex; align-items: center;
}

.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1035;
}

@media (max-width: 767.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .sidebar-overlay.show { display: block; }
}

.student-photo {
  width: 90px; height: 90px; object-fit: cover;
  border-radius: 8px; border: 1px solid #ddd; background: #fff;
}
.student-photo-lg {
  width: 150px; height: 150px; object-fit: cover;
  border-radius: 10px; border: 2px solid #0d6e4f; background: #fff;
}

/* ---------- Health card: real ID-card size, 2.125in x 3.375in, PORTRAIT ---------- */
/* Color theory: brand green (primary) + a single analogous teal accent (icons/rules)
   + a soft, light neutral border around the photo (kept deliberately quiet, not a loud accent). */
.health-card-scale-wrap {
  width: 4.25in;   /* 2x, so it's readable on screen */
  height: 6.75in;
  margin: 0 auto;
}
.hc-print-page { page-break-after: always; }
.hc-back-label {
  text-align: center; font-weight: 600; color: #666; margin: 8px 0;
}
.health-card {
  position: relative;
  width: 2.125in;
  height: 3.375in;
  box-sizing: border-box;
  border: 2px solid #0d6e4f;
  border-radius: 0.09in;
  padding: 0.09in 0.1in;
  background: linear-gradient(160deg, #ffffff 0%, #eef8f4 45%, #e4f1f3 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transform: scale(2);
  transform-origin: top left;
}
.health-card .hc-topbanner {
  text-align: center; flex-shrink: 0; width: 100%;
  border-bottom: 2px solid #0d6e4f;
  padding-bottom: 0.04in; margin-bottom: 0.06in;
}
.health-card .hc-title-bn {
  font-weight: 800; font-size: 0.092in; line-height: 1.22; color: #0d6e4f;
}
.health-card .hc-gov {
  font-weight: 700; font-size: 0.054in; color: #0f7d8c; margin-top: 0.025in;
}

.health-card .hc-cardtitle { text-align: center; flex-shrink: 0; margin-bottom: 0.07in; }
.health-card .hc-en1, .health-card .hc-en2 {
  font-weight: 800; font-size: 0.13in; line-height: 1.08; color: #1b5cad;
  white-space: nowrap;
}

.health-card .hc-photo-center { flex-shrink: 0; text-align: center; margin-bottom: 0.08in; }
.health-card .hc-photo {
  width: 0.9in; height: 0.9in; object-fit: cover;
  border-radius: 0.05in; border: 1px solid #bcd6cb; background: #fff;
}
.health-card .hc-photo-label { font-size: 0.052in; color: #333; margin-top: 0.02in; }

/* Field rows: fixed-width label column so every colon lines up straight */
.health-card .hc-fields { font-size: 0.08in; line-height: 1.42; flex-shrink: 0; color: #1a1a1a; width: 100%; }
.health-card .hc-fields b { color: #0d6e4f; font-weight: 700; }
.health-card .hc-fields i { font-size: 0.072in; color: #0d6e4f; }

.health-card .hc-frow { display: flex; align-items: baseline; }
.health-card .hc-frow .hc-label { flex-shrink: 0; width: 0.98in; white-space: nowrap; overflow: hidden; }
.health-card .hc-frow .hc-colon { flex-shrink: 0; width: 0.08in; }
.health-card .hc-frow .hc-value {
  flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.health-card .hc-qr-bottom { flex-shrink: 0; text-align: center; margin-top: 0.05in; }
.health-card .hc-qr-bottom img { width: 0.55in; height: 0.55in; }
.health-card .hc-qr-bottom code { display: block; font-size: 0.048in; margin-top: 0.015in; color: #333; }

.health-card .hc-footer {
  text-align: center; font-size: 0.058in; color: #555; margin-top: 0.05in;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0;
}

/* ---------- Health card: back side (lost & found return notice) ---------- */
.health-card.hc-back { justify-content: center; }
.health-card.hc-back .hc-back-line {
  font-size: 0.066in; line-height: 1.4; color: #1a1a1a; margin-bottom: 0.06in;
  white-space: normal; word-wrap: break-word; text-align: center;
}
.health-card.hc-back .hc-back-line b { color: #0d6e4f; }

.health-card.hc-back .hc-back-fields {
  font-size: 0.062in; line-height: 1.4; width: 100%; margin: 0.07in 0;
}
.health-card.hc-back .hc-back-fields .hc-label { color: #0d6e4f; font-weight: 700; width: 0.85in; }

.health-card.hc-back .hc-signature-block {
  position: absolute;
  right: 0.09in; bottom: 0.06in;
  width: 0.55in;
  text-align: center;
}
.health-card.hc-back .hc-signature-img {
  display: block; margin: 0 auto;
  width: 0.4in; height: 0.16in; object-fit: contain;
}
.health-card.hc-back .hc-signature-name {
  font-size: 0.04in; font-weight: 700; color: #0d6e4f; line-height: 1.2; margin-top: 0.015in;
  border-top: 1px solid #0d6e4f; padding-top: 0.012in;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.health-card.hc-back .hc-signature-title {
  font-size: 0.036in; color: #555; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .container-fluid { padding: 0 !important; }
  .health-card-scale-wrap { width: 2.125in; height: 3.375in; margin: 0; }
  .health-card { transform: none; }
  .hc-back-label { display: none; }
}
