/* ═══════════════════════════════════════════════════════════
   NETRO Academia — shared.css
   Government of West Bengal · Department of School Education
   Design: Dark navy sidebar · Clean white content · Authoritative govt tone
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: 'Inter', sans-serif;
  background: #f0f4f8;
  color: #1a2332;
  display: flex;
  height: 100vh;
  overflow: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── CSS Variables ──────────────────────────────────────── */
:root {
  --accent:       #1A56DB;
  --accent-l:     #1e40af;
  --accent-dim:   rgba(26,86,219,.10);

  --schools:      #16A34A;
  --colleges:     #D97706;
  --universities: #7C3AED;
  --research:     #DC2626;
  --training:     #0891B2;

  --sidebar-bg:   #0F2044;
  --sidebar-w:    240px;

  --surface:    #ffffff;
  --surface-2:  #f8fafc;
  --surface-3:  #f1f5f9;
  --border:     #e2e8f0;
  --border-2:   #cbd5e1;

  --text-1:     #0f172a;
  --text-2:     #334155;
  --text-3:     #64748b;
  --text-4:     #94a3b8;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);

  --radius:     8px;
  --radius-sm:  5px;
  --radius-lg:  12px;

  --transition: 0.16s ease;
}

/* ══════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  transition: width var(--transition), min-width var(--transition);
  position: relative;
  z-index: 100;
  border-right: 1px solid rgba(255,255,255,.05);
}
.sidebar.closed { width: 0; min-width: 0; }

.sb-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
  background: rgba(0,0,0,.15);
}
.sb-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1A56DB, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.sb-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -.2px;
}
.sb-sub {
  font-size: 9.5px;
  color: #64748b;
  margin-top: 1px;
  letter-spacing: .2px;
}

.sb-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.06) transparent;
}
.sb-nav::-webkit-scrollbar { width: 3px; }
.sb-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); }

.sb-section-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #3d5a80;
  padding: 10px 16px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  margin: 1px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #e2e8f0; }
.nav-item.active { background: rgba(26,86,219,.2); color: #93c5fd; }
.nav-item.active .ni-icon { stroke: #93c5fd; }

.nav-item-sub {
  padding-left: 36px;
  font-size: 11px;
  color: #64748b;
}
.nav-item-sub:hover { color: #cbd5e1; }
.nav-item-sub.active { color: #93c5fd; background: rgba(26,86,219,.12); }

.ni-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: #4a6080;
  transition: stroke var(--transition);
}
.nav-item:hover .ni-icon { stroke: #cbd5e1; }

.sb-footer {
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
  background: rgba(0,0,0,.1);
}
.sb-dept {
  font-size: 9px;
  color: #3d5a80;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
  font-weight: 600;
}
.user-row { display: flex; align-items: center; gap: 9px; }
.user-ava {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e40af, #1A56DB);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.user-name { font-size: 11.5px; font-weight: 600; color: #e2e8f0; }
.user-role { font-size: 9.5px; color: #64748b; margin-top: 1px; }

/* ══════════════════════════════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════════════════════════════ */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  height: 50px;
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,.04);
}
.tb-menu {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-3);
  transition: background var(--transition);
  flex-shrink: 0;
}
.tb-menu:hover { background: var(--surface-2); color: var(--text-1); }

.tb-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-3);
}
.tb-breadcrumb span:last-child { color: var(--text-1); font-weight: 600; }
.tb-breadcrumb-sep { color: var(--border-2); }

.tb-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-1);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(26,86,219,.07);
  border: 1px solid rgba(26,86,219,.18);
  font-size: 10.5px;
  font-weight: 600;
  color: #1e40af;
  flex-shrink: 0;
  letter-spacing: .2px;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1A56DB;
  animation: pulse 2s infinite;
  display: inline-block;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.tb-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.tb-select {
  padding: 4px 24px 4px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%2394a3b8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  cursor: pointer;
  outline: none;
}
.tb-select:focus { border-color: var(--accent); }

.tb-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tb-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
}
.tb-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: background var(--transition);
}
.tb-btn:hover { background: var(--border); }

/* Govt header strip */
.govt-strip {
  background: linear-gradient(90deg, #0F2044 0%, #1A3A6B 100%);
  padding: 5px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.govt-strip-left {
  font-size: 10px;
  color: #93c5fd;
  font-weight: 600;
  letter-spacing: .3px;
}
.govt-strip-right {
  font-size: 9.5px;
  color: #64748b;
}

/* ── Content ────────────────────────────────────────────── */
.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.content::-webkit-scrollbar { width: 5px; }
.content::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }

.page-animate {
  animation: fadeUp .3s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   GOVT BANNER
══════════════════════════════════════════════════════════ */
.gov-banner {
  background: linear-gradient(135deg, #0F2044 0%, #1A3A6B 60%, #1A56DB 100%);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}
.gov-banner::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.gov-banner-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: white;
  letter-spacing: -.3px;
}
.gov-banner-sub {
  font-size: 11px;
  color: #93c5fd;
  margin-top: 3px;
}
.gov-banner-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.gov-pill {
  padding: 3px 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: #e0f2fe;
  letter-spacing: .2px;
}

/* ══════════════════════════════════════════════════════════
   STAT CARDS
══════════════════════════════════════════════════════════ */
.is-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.is-card:hover { box-shadow: var(--shadow-md); }
.is-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.is-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.is-lbl {
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: 2px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .3px;
}

/* ══════════════════════════════════════════════════════════
   MAP COMPONENTS
══════════════════════════════════════════════════════════ */
.map-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.map-box {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  z-index: 0;
  position: relative;
}
.map-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-1);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Layer Panel */
.layer-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.layer-panel-title {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-3);
  margin-bottom: 8px;
}
.layer-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.layer-check { position: relative; display: flex; align-items: center; cursor: pointer; }
.layer-check input { position: absolute; opacity: 0; width: 0; }
.lc-content {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--transition);
  cursor: pointer;
  user-select: none;
}
.lc-content:hover { border-color: var(--border-2); background: var(--surface-2); }
.lc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.lc-box {
  width: 13px;
  height: 13px;
  border-radius: 2px;
  border: 1.5px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.layer-check input:checked + .lc-content {
  background: rgba(26,86,219,.06);
  border-color: rgba(26,86,219,.28);
  color: var(--text-1);
}
.layer-check input:checked + .lc-content .lc-box {
  background: var(--accent);
  border-color: var(--accent);
}
.layer-check input:checked + .lc-content .lc-box::after {
  content: '';
  display: block;
  width: 5px;
  height: 3px;
  border-left: 1.5px solid white;
  border-bottom: 1.5px solid white;
  transform: rotate(-45deg) translateY(-1px);
}

/* ══════════════════════════════════════════════════════════
   TABS
══════════════════════════════════════════════════════════ */
.tab-bar {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.tab-btn {
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  transition: all var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: .1px;
}
.tab-btn:hover { background: var(--surface-2); color: var(--text-2); }
.tab-btn.active { background: #0F2044; color: white; box-shadow: var(--shadow-sm); }

.sub-tab-bar {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.sub-tab-btn {
  padding: 5px 11px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.sub-tab-btn:hover { background: var(--surface); color: var(--text-2); }
.sub-tab-btn.active { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); border: 1px solid rgba(26,86,219,.2); }

/* ══════════════════════════════════════════════════════════
   DATA TABLE
══════════════════════════════════════════════════════════ */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table-toolbar {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-2);
}
.table-search {
  padding: 5px 10px 5px 30px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11.5px;
  font-family: 'Inter', sans-serif;
  color: var(--text-1);
  background: var(--surface);
  outline: none;
  width: 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 9px center;
}
.table-search:focus { border-color: var(--accent); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.data-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.data-table th:hover { color: var(--text-1); }
.data-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}
.data-table tr:hover td { background: rgba(26,86,219,.03); }
.data-table tr:last-child td { border-bottom: none; }
.inst-name { font-weight: 600; color: var(--text-1); font-size: 12px; }
.inst-name a { color: var(--accent); }
.inst-name a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}
/* Management type badges */
.badge-govt      { background: rgba(26,86,219,.1);   color: #1d4ed8; border: 1px solid rgba(26,86,219,.2); }
.badge-aided     { background: rgba(22,163,74,.1);   color: #15803d; border: 1px solid rgba(22,163,74,.2); }
.badge-private   { background: rgba(217,119,6,.1);   color: #b45309; border: 1px solid rgba(217,119,6,.2); }
.badge-local     { background: rgba(100,116,139,.1); color: #475569; border: 1px solid rgba(100,116,139,.2); }
.badge-autonomous{ background: rgba(124,58,237,.1);  color: #6d28d9; border: 1px solid rgba(124,58,237,.2); }
/* Board badges */
.badge-wbbse     { background: rgba(8,145,178,.1);   color: #0e7490; border: 1px solid rgba(8,145,178,.2); }
.badge-cbse      { background: rgba(220,38,38,.1);   color: #b91c1c; border: 1px solid rgba(220,38,38,.2); }
.badge-cisce     { background: rgba(217,119,6,.1);   color: #b45309; border: 1px solid rgba(217,119,6,.2); }
.badge-intl      { background: rgba(124,58,237,.1);  color: #6d28d9; border: 1px solid rgba(124,58,237,.2); }
/* Status */
.badge-active    { background: rgba(22,163,74,.1);   color: #15803d; }
.badge-review    { background: rgba(217,119,6,.1);   color: #b45309; }
.badge-inactive  { background: rgba(220,38,38,.1);   color: #b91c1c; }
/* Compliance */
.compliance-ok   { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.compliance-review { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.compliance-fail { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
}
.status-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.status-dot.active { color: #16a34a; }
.status-dot.review { color: #d97706; }
.status-dot.inactive { color: #dc2626; }

/* ══════════════════════════════════════════════════════════
   INSTITUTION DETAIL PAGE
══════════════════════════════════════════════════════════ */
.detail-header {
  background: linear-gradient(135deg, #0F2044 0%, #1A3A6B 100%);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.detail-header::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
}
.detail-inst-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
}
.detail-inst-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #93c5fd;
  margin-top: 4px;
}
.detail-badges { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }

.detail-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.detail-section-header {
  padding: 10px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-section-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--text-2);
}
.detail-section-body { padding: 14px 16px; }

.infra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.infra-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
}
.infra-item-label {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 4px;
}
.infra-item-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
}
.infra-item-sub {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 2px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
}

.detail-kv {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
}
.detail-kv-row {
  display: contents;
}
.detail-kv-row > * {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.detail-kv-row:last-child > * { border-bottom: none; }
.detail-k {
  font-weight: 600;
  color: var(--text-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .3px;
  padding-right: 12px;
}
.detail-v { color: var(--text-1); font-weight: 500; }

/* Enrollment table */
.enroll-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.enroll-table th {
  text-align: right;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.enroll-table th:first-child { text-align: left; }
.enroll-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  color: var(--text-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.enroll-table td:first-child { text-align: left; font-family: 'Inter', sans-serif; font-weight: 600; color: var(--text-1); }
.enroll-table tr:hover td { background: var(--surface-3); }

/* MDM progress bar */
.mdm-bar-wrap {
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}
.mdm-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: #16a34a;
}

/* ══════════════════════════════════════════════════════════
   QUICK ACCESS CARDS
══════════════════════════════════════════════════════════ */
.module-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.module-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.module-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.module-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-1);
}
.module-card-sub {
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════════════════════ */
.form-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: var(--text-1);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,86,219,.10);
}
.form-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 5px;
  display: block;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='5' viewBox='0 0 9 5'%3E%3Cpath d='M0 0l4.5 5L9 0z' fill='%2394a3b8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  padding-right: 26px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  letter-spacing: .1px;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #1648c0; }
.btn-secondary { background: var(--surface); color: var(--text-2); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-sm { padding: 4px 10px; font-size: 11px; }
.btn-view { background: rgba(26,86,219,.08); color: var(--accent); border: 1px solid rgba(26,86,219,.2); font-size: 11px; padding: 3px 9px; border-radius: 4px; }
.btn-view:hover { background: rgba(26,86,219,.14); }

/* ══════════════════════════════════════════════════════════
   ALERT STRIPS
══════════════════════════════════════════════════════════ */
.alert-strip {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.alert-strip.info    { background: rgba(26,86,219,.07); border: 1px solid rgba(26,86,219,.2); color: #1e40af; }
.alert-strip.warning { background: rgba(217,119,6,.08); border: 1px solid rgba(217,119,6,.22); color: #92400e; }
.alert-strip.danger  { background: rgba(220,38,38,.07); border: 1px solid rgba(220,38,38,.2); color: #991b1b; }
.alert-strip.success { background: rgba(22,163,74,.07); border: 1px solid rgba(22,163,74,.2); color: #065f46; }

/* ══════════════════════════════════════════════════════════
   FOOTER CARDS
══════════════════════════════════════════════════════════ */
.fc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
.fc-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fc-icon svg { width: 15px; height: 15px; fill: white; }
.fc-title { font-size: 12px; font-weight: 700; color: var(--text-1); }
.fc-sub { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }

/* ══════════════════════════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════════════════════════ */
.pg-header { margin-bottom: 14px; }
.pg-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pg-header p {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 3px;
}
.pg-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* ══════════════════════════════════════════════════════════
   ANALYTICS / CHARTS (CSS-based)
══════════════════════════════════════════════════════════ */
.chart-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.chart-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.chart-bar-label { width: 140px; font-weight: 500; color: var(--text-2); flex-shrink: 0; text-align: right; }
.chart-bar-track {
  flex: 1;
  height: 18px;
  background: var(--surface-3);
  border-radius: 3px;
  overflow: hidden;
}
.chart-bar-fill {
  height: 100%;
  border-radius: 3px;
  display: flex;
  align-items: center;
  padding-left: 7px;
  font-size: 10px;
  font-weight: 700;
  color: white;
  transition: width 1s ease;
}
.chart-bar-val { width: 40px; text-align: right; font-weight: 700; color: var(--text-1); font-family: 'Space Grotesk',sans-serif; }

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--text-2);
}
.donut-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.donut-legend-pct {
  margin-left: auto;
  font-weight: 700;
  color: var(--text-1);
  font-family: 'Space Grotesk', sans-serif;
}

/* ══════════════════════════════════════════════════════════
   UTILITY
══════════════════════════════════════════════════════════ */
.divider { height: 1px; background: var(--border); margin: 10px 0; }
.text-muted { color: var(--text-3); }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.grid-6 { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; }

/* ══════════════════════════════════════════════════════════
   LEAFLET OVERRIDES
══════════════════════════════════════════════════════════ */
.leaflet-container { font-family: 'Inter', sans-serif !important; }
.leaflet-popup-content-wrapper {
  border-radius: 8px !important;
  box-shadow: var(--shadow-md) !important;
  font-size: 12px;
}
.leaflet-tooltip {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 4px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.leaflet-control-zoom {
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .sidebar { width: 0; min-width: 0; }
  .infra-grid { grid-template-columns: 1fr 1fr; }
  .grid-6 { grid-template-columns: repeat(3,1fr); }
}

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
