/* ═══════════════════════════════════════════════════════════════════════════
   IIT Mandi iHub & HCi Foundation – Equipment Booking Portal
   Design System — ihub.css  v2.0
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Roboto+Mono:wght@400;500&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --blue:        #0d569e;
  --blue-700:    #0a4583;
  --blue-900:    #082f5c;
  --blue-50:     #eaf2fb;
  --orange:      #ff6700;
  --orange-600:  #e85c00;
  --orange-50:   #fff1e6;
  --ink:         #0f1b2d;
  --ink-2:       #2a3a52;
  --muted:       #5a6a82;
  --line:        #e5e5e5;
  --line-2:      #eaeaea;
  --bg:          #ffffff;
  --bg-soft:     #f7f8fa;
  --bg-tint:     #f3f6fb;
  --radius:      8px;
  --radius-lg:   12px;
  --t-fast:      150ms cubic-bezier(.4,0,.2,1);
  --shadow-sm:   0 1px 2px rgba(15,27,45,.04), 0 1px 1px rgba(15,27,45,.03);
  --shadow:      0 4px 14px rgba(15,27,45,.06), 0 1px 2px rgba(15,27,45,.04);
  --shadow-lg:   0 18px 40px rgba(15,27,45,.10), 0 2px 6px rgba(15,27,45,.04);
}

/* ─── Base Reset & Typography ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

a { color: var(--blue); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--blue-700); }

/* ─── Bootstrap Overrides ───────────────────────────────────────────────────── */
.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--blue-700);
  border-color: var(--blue-700);
  box-shadow: 0 4px 12px rgba(13,86,158,.3);
}
.btn-danger  { font-weight: 600; }
.btn-success { font-weight: 600; }
.btn-warning { font-weight: 600; }
.btn-secondary { font-weight: 600; }

.form-control:focus, .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13,86,158,.1);
}

.table { color: var(--ink-2); }
.table thead th {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  white-space: nowrap;
}
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: var(--bg-tint); }
.table td { padding: 12px 16px; vertical-align: middle; border-color: var(--line-2); }

.badge { font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: .04em; }

/* ─── Navigation: Top Utility Bar ───────────────────────────────────────────── */
.ih-topbar {
  background: var(--blue-900);
  color: #cfddee;
  font-size: 13px;
  padding: 0 max(24px, 3vw);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ih-topbar a { color: #cfddee; }
.ih-topbar a:hover { color: #fff; }

/* ─── Main Navigation ───────────────────────────────────────────────────────── */
/* ── Navbar — brand blue background ────────────────────────────────────────── */
.ih-nav {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: var(--blue);
  border-bottom: 1px solid var(--blue-700);
  box-shadow: 0 2px 12px rgba(13,86,158,.28);
  padding: 0;
}

/* Desktop: keep nav on one row, dropdowns above page content */
@media (min-width: 992px) {
  .ih-nav .container-fluid,
  .ih-nav .container {
    flex-wrap: nowrap;
  }
  .ih-nav .navbar-collapse {
    flex-wrap: nowrap;
  }
  .ih-nav .navbar-nav {
    flex-wrap: nowrap;
  }
  .ih-nav .dropdown-menu {
    z-index: 1060;
  }
}

.ih-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: #fff !important;
  letter-spacing: -0.02em;
  padding: 14px 0;
  text-decoration: none;
}
.ih-nav .navbar-brand .brand-icon {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  flex-shrink: 0;
}
.ih-nav .navbar-brand div > div:first-child {
  color: #fff !important;
}
.ih-nav .navbar-brand .brand-sub {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  letter-spacing: 0.02em;
  line-height: 1;
  font-family: 'Roboto Mono', monospace;
  text-transform: none;
}

.ih-nav .navbar-toggler {
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: #fff;
  transition: all var(--t-fast);
}
.ih-nav .navbar-toggler:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.1); }
.ih-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.2); }
.ih-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.ih-nav .nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.85) !important;
  padding: 8px 14px !important;
  border-radius: 6px;
  margin: 0 2px;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all var(--t-fast);
  white-space: nowrap;
  position: relative;
}
.ih-nav .nav-link i { font-size: 14px; width: 16px; text-align: center; flex-shrink: 0; }
.ih-nav .nav-link:hover { color: #fff !important; background: rgba(255,255,255,.15); }
.ih-nav .nav-link.active, .ih-nav .nav-item.active .nav-link {
  color: #fff !important;
  background: rgba(255,255,255,.2);
  font-weight: 600;
}

/* Notification badge */
.ih-nav .nav-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  background: #ff6700;
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--blue);
  line-height: 1;
  padding: 0 3px;
}

/* Nav separator */
.ih-nav .nav-sep {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.2);
  margin: 0 8px;
  align-self: center;
  flex-shrink: 0;
}

/* Avatar chip */
.ih-nav .user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3);
  cursor: pointer;
  transition: all var(--t-fast);
  background: rgba(255,255,255,.12);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}
.ih-nav .user-chip:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.22); color: #fff; }
.ih-nav .user-chip .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Dropdown — white panel drops from blue nav */
.ih-nav .dropdown-menu {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 8px !important;
  min-width: 200px !important;
  margin-top: 6px !important;
  background: #fff !important;
  animation: ihDropIn 0.18s ease !important;
}
@keyframes ihDropIn {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ih-nav .dropdown-item {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--ink-2) !important;
  padding: 9px 12px !important;
  border-radius: var(--radius) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: all var(--t-fast) !important;
  margin: 0 !important;
}
.ih-nav .dropdown-item i { width: 16px; text-align: center; color: var(--muted); flex-shrink: 0; }
.ih-nav .dropdown-item:hover { background: var(--blue-50) !important; color: var(--blue) !important; }
.ih-nav .dropdown-item:hover i { color: var(--blue); }
.ih-nav .dropdown-item.active { background: var(--blue-50) !important; color: var(--blue) !important; font-weight: 600 !important; }
.ih-nav .dropdown-divider { border-color: var(--line-2) !important; margin: 6px 0 !important; }
.ih-nav .dropdown-toggle::after { margin-left: 6px; vertical-align: middle; color: rgba(255,255,255,.7); }

/* Admin badge on brand */
.ih-nav .admin-chip {
  font-family: 'Roboto Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: rgba(255,255,255,.18);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
}

/* ── Mobile nav — dropdown panel (≤991px) ──────────────────────────────────── */
@media (max-width: 991.98px) {

  /* Drop-down panel below the navbar bar */
  .ih-nav .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue-700);
    border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 3px solid rgba(255,255,255,.2);
    box-shadow: 0 12px 32px rgba(13,86,158,.35);
    padding: 12px 16px 20px;
    z-index: 1049;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  /* Stack links vertically */
  .ih-nav .navbar-nav {
    flex-direction: column !important;
    gap: 2px !important;
    width: 100%;
  }
  .ih-nav .nav-item { width: 100%; }
  .ih-nav .nav-sep { display: none !important; }

  .ih-nav .nav-link {
    padding: 11px 14px !important;
    border-radius: var(--radius) !important;
    font-size: 14px !important;
    width: 100%;
    justify-content: flex-start !important;
    color: rgba(255,255,255,.9) !important;
  }
  .ih-nav .nav-link i { width: 20px !important; }

  /* Sub-dropdowns open inline */
  .ih-nav .dropdown-menu {
    position: static !important;
    float: none !important;
    box-shadow: none !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    border-radius: var(--radius) !important;
    margin: 4px 0 4px 24px !important;
    padding: 6px !important;
    background: rgba(255,255,255,.08) !important;
    animation: none !important;
    display: none;
    width: calc(100% - 24px);
  }
  .ih-nav .dropdown-menu.show { display: block !important; }
  .ih-nav .dropdown-menu .dropdown-item { color: rgba(255,255,255,.9) !important; }
  .ih-nav .dropdown-menu .dropdown-item:hover { background: rgba(255,255,255,.15) !important; color: #fff !important; }

  /* User chip row */
  .ih-nav .navbar-nav:last-child {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.15);
  }
  .ih-nav .user-chip,
  .ih-nav .nav-link[data-bs-toggle="dropdown"]:last-of-type {
    border-radius: var(--radius) !important;
    width: 100%;
  }
}

/* ─── Page Header (inner pages) ──────────────────────────────────────────────── */
.ih-page-header {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-700) 100%);
  padding: 32px max(24px, 3vw) 28px;
  border-bottom: 1px solid var(--blue-700);
  position: relative;
  overflow: hidden;
}
.ih-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.ih-page-header .ih-eyebrow {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ih-page-header .ih-eyebrow::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: rgba(255,255,255,.5);
}
.ih-page-header h1 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 8px;
}
.ih-page-header p,
.ih-page-header .text-muted,
.ih-page-header small {
  color: rgba(255,255,255,.75) !important;
  font-size: 15px;
  margin: 0;
}
.ih-breadcrumb { font-family: 'Roboto Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.ih-breadcrumb .breadcrumb-item { color: var(--muted); }
.ih-breadcrumb .breadcrumb-item.active { color: var(--ink-2); }
.ih-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #c5cdd9; }

/* ─── Cards ──────────────────────────────────────────────────────────────────── */
.ih-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  overflow: hidden;
}
.ih-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.ih-card .card-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.ih-card .card-body { padding: 20px; }
.ih-card .card-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 12px 20px;
}

/* Stat / KPI card */
.ih-stat-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-fast);
  position: relative;
  overflow: hidden;
}
.ih-stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ih-stat-card .stat-icon {
  width: 48px; height: 48px;
  background: var(--blue-50);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  font-size: 20px;
  margin-bottom: 14px;
  transition: all var(--t-fast);
}
.ih-stat-card:hover .stat-icon { background: var(--blue); color: #fff; }
.ih-stat-card .stat-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 6px;
}
.ih-stat-card .stat-value {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.ih-stat-card .stat-delta {
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
  color: var(--muted);
}
.ih-stat-card .stat-delta.up { color: #1a7340; }
.ih-stat-card .stat-delta.down { color: #dc2626; }

/* ─── Badges ─────────────────────────────────────────────────────────────────── */
.ih-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
  white-space: nowrap;
}
.ih-badge-blue    { background: var(--blue-50);  color: var(--blue); }
.ih-badge-orange  { background: var(--orange-50); color: var(--orange-600); }
.ih-badge-green   { background: #eafaf1; color: #1a7340; }
.ih-badge-red     { background: #fef2f2; color: #dc2626; }
.ih-badge-yellow  { background: #fffbeb; color: #b45309; }
.ih-badge-muted   { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.ih-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.ih-btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.ih-btn-primary  { background: var(--orange); color: #fff; }
.ih-btn-primary:hover  { background: var(--orange-600); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,103,0,.35); }
.ih-btn-solid    { background: var(--blue); color: #fff; }
.ih-btn-solid:hover    { background: var(--blue-700); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(13,86,158,.3); }
.ih-btn-ghost    { background: var(--bg); color: var(--blue); border: 1px solid var(--blue); }
.ih-btn-ghost:hover    { background: var(--blue-50); transform: translateY(-1px); }

/* ─── Forms ──────────────────────────────────────────────────────────────────── */
.ih-label {
  display: block;
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 6px;
}
.ih-input {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  transition: all var(--t-fast);
  font-family: 'Inter', sans-serif;
}
.ih-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13,86,158,.1);
}
.ih-input::placeholder { color: #9ba8bc; }

/* ─── Table wrapper ──────────────────────────────────────────────────────────── */
.ih-table-wrap {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ih-table-wrap .table { margin: 0; }
.ih-table-wrap .table-responsive { border-radius: var(--radius-lg); }

/* ─── Status badges (booking states) ────────────────────────────────────────── */
.status-pending   { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.status-approved  { background: #eafaf1; color: #1a7340; border: 1px solid #a7f3d0; }
.status-confirmed { background: #eafaf1; color: #1a7340; border: 1px solid #a7f3d0; }
.status-rejected  { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.status-cancelled { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.status-completed { background: var(--blue-50); color: var(--blue); border: 1px solid #bfdbfe; }

/* ─── Auth pages ─────────────────────────────────────────────────────────────── */
.ih-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--bg-soft);
}
.ih-auth-panel {
  flex: 0 0 420px;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ih-auth-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.ih-auth-panel .panel-logo {
  width: 72px; height: 72px;
  background: rgba(255,255,255,.12);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,.18);
  position: relative; z-index: 1;
}
.ih-auth-panel h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
  position: relative; z-index: 1;
  margin-bottom: 10px;
}
.ih-auth-panel p {
  font-size: 14px;
  color: rgba(255,255,255,.72);
  text-align: center;
  position: relative; z-index: 1;
  margin: 0;
  line-height: 1.6;
}
.ih-auth-panel .panel-features {
  margin-top: 36px;
  position: relative; z-index: 1;
  width: 100%;
}
.ih-auth-panel .panel-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  color: rgba(255,255,255,.8);
}
.ih-auth-panel .panel-feat:last-child { border-bottom: none; }
.ih-auth-panel .panel-feat i { color: rgba(255,255,255,.6); width: 16px; text-align: center; }

.ih-auth-form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px max(24px, 4vw);
  background: var(--bg);
}
.ih-auth-form-inner {
  width: 100%;
  max-width: 420px;
}
.ih-auth-form-inner h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.ih-auth-form-inner .sub { font-size: 15px; color: var(--muted); margin-bottom: 28px; }

@media (max-width: 768px) {
  .ih-auth-wrap { flex-direction: column; }
  .ih-auth-panel {
    flex: 0 0 auto;
    padding: 32px 24px;
    min-height: auto;
  }
  .ih-auth-panel .panel-features { display: none; }
  .ih-auth-form { padding: 32px 20px; }
  .ih-auth-form-inner { max-width: 100%; }
}

/* ─── Dashboard layout ───────────────────────────────────────────────────────── */
.ih-content {
  padding: 28px max(16px, 2.5vw);
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* ─── Section headings ───────────────────────────────────────────────────────── */
.ih-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}
.ih-section-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}

/* ─── Stats band (dark) ──────────────────────────────────────────────────────── */
.ih-stats-band {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-700) 100%);
  padding: 48px max(24px, 3vw);
  position: relative;
  overflow: hidden;
}
.ih-stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.ih-stats-band .stat-num {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}
.ih-stats-band .stat-lbl {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.72);
  margin-top: 6px;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.ih-footer {
  background: var(--blue-900);
  color: #cfddee;
  padding: 40px max(24px, 3vw) 24px;
  font-size: 13px;
}
.ih-footer h6 {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #7fa5c8;
  margin-bottom: 12px;
}
.ih-footer a { color: rgba(207,221,238,.85); transition: color var(--t-fast); }
.ih-footer a:hover { color: #fff; }
.ih-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 24px;
  padding-top: 20px;
  color: rgba(207,221,238,.6);
  font-size: 12px;
}

/* ─── Calendar overrides ─────────────────────────────────────────────────────── */
.fc .fc-toolbar-title { font-size: 17px !important; font-weight: 700 !important; color: var(--ink) !important; letter-spacing: -0.02em; }
.fc .fc-button-primary { background: var(--blue) !important; border-color: var(--blue) !important; font-weight: 600 !important; border-radius: var(--radius) !important; }
.fc .fc-button-primary:hover { background: var(--blue-700) !important; border-color: var(--blue-700) !important; }
.fc .fc-col-header-cell-cushion { font-family: 'Roboto Mono', monospace !important; font-size: 11px !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: .08em !important; color: var(--muted) !important; }
.fc-event { border-radius: 4px !important; font-size: 12px !important; font-weight: 500 !important; }

/* ─── Modal upgrades ──────────────────────────────────────────────────────────── */
.modal-content { border: none !important; border-radius: var(--radius-lg) !important; box-shadow: var(--shadow-lg) !important; }
.modal-header { border-bottom: 1px solid var(--line) !important; padding: 18px 24px !important; }
.modal-header .modal-title { font-size: 17px !important; font-weight: 700 !important; letter-spacing: -0.02em !important; }
.modal-body { padding: 22px 24px !important; }
.modal-footer { border-top: 1px solid var(--line) !important; padding: 14px 24px !important; }

/* ─── Tabs ───────────────────────────────────────────────────────────────────── */
.ih-tabs { border-bottom: 2px solid var(--line); }
.ih-tabs .nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 10px 16px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 0;
  transition: all var(--t-fast);
}
.ih-tabs .nav-link:hover { color: var(--ink); }
.ih-tabs .nav-link.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }

/* ─── Alerts ─────────────────────────────────────────────────────────────────── */
.alert {
  border-radius: var(--radius) !important;
  border: none !important;
  font-size: 14px;
}
.alert-success { background: #eafaf1 !important; color: #1a7340 !important; border-left: 3px solid #1a7340 !important; }
.alert-danger  { background: #fef2f2 !important; color: #dc2626 !important; border-left: 3px solid #dc2626 !important; }
.alert-warning { background: #fffbeb !important; color: #b45309 !important; border-left: 3px solid #f59e0b !important; }
.alert-info    { background: var(--blue-50) !important; color: var(--blue-700) !important; border-left: 3px solid var(--blue) !important; }

/* ─── Pagination ─────────────────────────────────────────────────────────────── */
.pagination .page-link {
  color: var(--blue);
  border-color: var(--line);
  border-radius: var(--radius) !important;
  margin: 0 2px;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
}
.pagination .page-link:hover { background: var(--blue-50); border-color: var(--blue); }
.pagination .page-item.active .page-link { background: var(--blue); border-color: var(--blue); font-weight: 600; }

/* ─── Scrollbar ──────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(13,86,158,.2); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(13,86,158,.4); }

/* ─── Utility ────────────────────────────────────────────────────────────────── */
.text-blue   { color: var(--blue) !important; }
.text-orange { color: var(--orange) !important; }
.text-ink    { color: var(--ink) !important; }
.text-muted-ih { color: var(--muted) !important; }
.bg-blue-50  { background: var(--blue-50) !important; }
.bg-soft     { background: var(--bg-soft) !important; }
.bg-tint     { background: var(--bg-tint) !important; }
.border-blue { border-color: var(--blue) !important; }
.mono        { font-family: 'Roboto Mono', monospace; }
.eyebrow     {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--blue);
}

/* ─── Responsive helpers ──────────────────────────────────────────────────────── */

/* Tablet (≤768px) */
@media (max-width: 768px) {
  .ih-page-header {
    padding: 22px 16px 18px;
  }
  .ih-page-header h1,
  .ih-page-header .display-6 {
    font-size: 22px !important;
  }
  .ih-page-header p,
  .ih-page-header .text-muted {
    font-size: 13px !important;
  }
}

/* Mobile (≤576px) */
@media (max-width: 576px) {
  /* Content padding */
  .container, .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Page header */
  .ih-page-header {
    padding: 16px 14px 14px;
  }
  .ih-page-header h1,
  .ih-page-header .display-6 { font-size: 20px !important; }

  /* Stat cards */
  .ih-content { padding: 14px 10px; }
  .ih-stat-card { padding: 14px; }
  .ih-stat-card .stat-value { font-size: 24px; }

  /* Tables — make them scroll horizontally */
  .table-responsive { -webkit-overflow-scrolling: touch; }
  .table { font-size: 13px; }
  .table th, .table td { padding: 8px 10px; white-space: nowrap; }

  /* Cards */
  .card { border-radius: var(--radius) !important; }
  .card-body { padding: 14px !important; }
  .card-header { padding: 12px 14px !important; }

  /* Buttons — full width stacking on tiny screens */
  .btn-group-mobile-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .btn-group-mobile-stack .btn { width: 100%; }

  /* Modals */
  .modal-dialog { margin: 8px; }
  .modal-content { border-radius: var(--radius-lg); }

  /* Hide less important table columns */
  .d-mobile-none { display: none !important; }

  /* Badge wrapping */
  .badge { font-size: 10px !important; }

  /* Breadcrumb smaller */
  .breadcrumb { font-size: 12px; }

  /* Page header action row — stack vertically */
  .ih-page-header > .container,
  .ih-page-header > .container-fluid {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  /* Footer — single column on phones */
  .ih-footer .row > [class*="col-"] {
    margin-bottom: 20px;
  }
}

/* Tiny phones (≤400px) — extra compression */
@media (max-width: 400px) {
  .ih-nav .navbar-brand { gap: 7px; }
  .ih-nav .navbar-brand .brand-icon { width: 32px; height: 32px; font-size: 14px; }
  .ih-nav .nav-link { padding: 10px 10px !important; font-size: 13px !important; }
  .ih-page-header h1 { font-size: 18px !important; }
  .ih-page-header .ih-eyebrow { font-size: 10px; }
}
