:root {
  --primary: #fbbf24;
  --primary-dark: #4f46e5;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #f43f5e;
  --bg-body: #080c1a;
  --bg-surface: #0f1629;
  --bg-card: #131c35;
  --sidebar-bg: #0a0f1e;
  --sidebar-hover: #161e33;
  --sidebar-active: rgba(99, 102, 241, 0.15);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --sidebar-width: 260px;
  --topbar-height: 64px;
}

[data-theme="light"] {
  --bg-body: #f1f5f9;
  --bg-surface: #e2e8f0;
  --bg-card: #ffffff;
  --sidebar-bg: #1e293b;
  --sidebar-hover: rgba(255, 255, 255, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg-body);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  display: flex;
}

body.auth-body {
  display: block;
  background: #f3f4f6;
}

a {
  color: inherit;
  text-decoration: none;
}

.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  height: 100vh;
  background: #1f3e90;
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease, transform 0.3s ease;
}

.sidebar.collapsed {
  width: 72px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-section-title,
.sidebar.collapsed .submenu-caret,
.sidebar.collapsed .sub-nav-list {
  display: none;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px;
  border-bottom: 1px solid var(--border);
  min-height: var(--topbar-height);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-title {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: #f8fafc;
}

.logo-sub {
  display: block;
  font-size: 11px;
  color: #94a3b8;
}

.sidebar-toggle {
    background: #fbbf24;
    border: none;
    color: #1f3e90;
    display: none;
    border-radius: 50px;
    
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding: 12px 0;
}

.sidebar-nav::-webkit-scrollbar {
  width: 8px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 8px;
}

.nav-section-title {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #94a3b8;
  padding: 14px 20px 8px;
  font-weight: 700;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 2px 10px;
  /* border-radius: 2px; */
}

.nav-group {
  margin: 2px 10px;
  border-radius: 10px;
}

.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  border-radius: 10px;
  text-align: left;
}

.nav-group:hover .nav-group-toggle {
  background: var(--sidebar-hover);
  color: #ffffff;
}

.nav-group.active > .nav-group-toggle {
  background: var(--sidebar-active);
  box-shadow: inset 3px 0 0 var(--primary);
  color: #ffffff;
  font-weight: 600;
}

.submenu-caret {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.nav-group.active > .nav-group-toggle .submenu-caret {
  transform: rotate(180deg);
}

.sub-nav-list {
  list-style: none;
  margin: 2px 0 4px;
  padding: 0 0 0 42px;
  display: none;
}

.sub-nav-list.open {
  display: block;
}

.sub-nav-item {
  margin: 2px 0;
}

.sub-nav-item > a {
  display: block;
  color: #aebcd1;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub-nav-item > a:hover {
  background: var(--sidebar-hover);
  color: #ffffff;
}

.sub-nav-item.active > a {
  background: rgba(99, 102, 241, 0.2);
  color: #ffffff;
  font-weight: 600;
}

.nav-item > a,
.logout-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  width: 100%;
  color: #cbd5e1;
}

.logout-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.nav-item:hover,
.nav-item > a:hover,
.logout-btn:hover {
  background: #fbbf24;
  color: #1f3e90;
}

.nav-item.active {
  background: var(--sidebar-active);
  box-shadow: inset 3px 0 0 var(--primary);
}

.nav-item.active > a {
  color: #ffffff;
  font-weight: 600;
}

.sidebar .nav-label,
.sidebar .nav-icon,
.sidebar .logout-btn,
.sidebar .logout-btn .nav-label,
.sidebar .logout-btn .nav-icon {
  color: inherit;
}

.nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item > a .nav-label,
.nav-group-toggle .nav-label {
  flex: 1;
  min-width: 0;
}

.nav-icon {
  width: 20px;
  text-align: center;
}

.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

.main-wrapper.sidebar-collapsed {
  margin-left: 72px;
}

.topbar {
  height: var(--topbar-height);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-btn,
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
}

.breadcrumb {
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  margin-top: 16px;
}

.search-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  min-width: 180px;
}

.user-avatar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
}

a.user-avatar.user-avatar-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.user-avatar.user-avatar-link:hover {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2);
}

a.user-avatar.user-avatar-link:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.7);
  outline-offset: 2px;
}

.user-avatar img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.topbar-logout-form {
  margin: 0;
}

.topbar-logout-btn {
  color: #ef4444;
}

.topbar-logout-btn:hover {
  border-color: #ef4444;
}

.content-area {
  padding: 26px;
}

.auth-content-area {
  padding: 0;
  width: 100%;
  min-height: 100vh;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}

.page-title {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 26px;
}

.page-subtitle {
  margin: 4px 0 0;
  color: var(--text-secondary);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.22);
}

.card-header {
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 14px 18px;
}

.table {
  color: var(--text-secondary);
  margin-bottom: 0;
}

.table thead th {
  color: var(--text-muted);
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}

.table td {
  border-color: rgba(255, 255, 255, 0.05);
}

.dashboard-card {
  border: 1px solid rgba(99, 102, 241, 0.24);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.04));
}

.dashboard-card .label {
  color: var(--text-secondary);
}

.status-pill {
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
}

.status-pill.success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.status-pill.warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.status-pill.danger {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
}

.text-primary {
  color: #93c5fd !important;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 100%;
  max-width: 420px;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .main-wrapper {
    margin-left: 0 !important;
  }

  /* Student / Staff portal dashboards: no hamburger, no sidebar drawer on phones */
  body.hide-portal-mobile-nav .menu-btn {
    display: none !important;
  }

  body.hide-portal-mobile-nav .sidebar {
    display: none !important;
    pointer-events: none;
  }

  body.hide-portal-mobile-nav .sidebar.mobile-open {
    transform: translateX(-100%);
  }

  .search-box {
    display: none;
  }

  .content-area {
    padding: 16px;
  }

  .page-title {
    font-size: 22px;
  }
}

.page-actions {
  display: flex;
  gap: 10px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, #1f3e90, #4f46e5);
  color: #fff;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-secondary);
  border-color: var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  border-radius: 14px;
  padding: 20px;
  border: 2px solid rgb(31 62 144);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.stat-blue { background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.06)); }
.stat-green {background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.06));}
.stat-purple { background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.06)); }
.stat-orange { background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.06)); }
.stat-pink { background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(236, 72, 153, 0.06)); }
.stat-teal { background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(20, 184, 166, 0.06)); }

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-blue .stat-icon {color: #ffffff;background: rgb(99 102 241);}
.stat-green .stat-icon {color: #ffffff;background: rgb(16 185 129);}
.stat-purple .stat-icon {color: #ffffff;background: rgb(139 92 246);}
.stat-orange .stat-icon {color: #ffffff;background: rgb(249 115 22);}
.stat-pink .stat-icon {color: #ffffff;background: rgb(236 72 153);}
.stat-teal .stat-icon {color: #ffffff;background: rgb(20 184 166);}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 4px;
}

.stat-change {
  margin-top: 4px;
  font-size: 12px;
}

.stat-change.positive { color: #34d399; }
.stat-change.neutral { color: var(--text-muted); }
.stat-change.danger { color: #fb7185; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.attendance-bars {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 170px;
}

.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 6px;
}

.bar {
  width: 100%;
  height: var(--h);
  border-radius: 8px 8px 2px 2px;
}

.bar-blue {
  background: linear-gradient(180deg, #6366f1, #4f46e5);
}

.bar-group span {
  font-size: 11px;
  color: var(--text-muted);
}

.select-small {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 4px 8px;
}

.course-enrollment-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.enroll-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.enroll-course {
  width: 130px;
  color: var(--text-secondary);
  font-size: 12px;
}

.enroll-bar-wrap {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.enroll-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #818cf8);
}

.enroll-bar.bar-green { background: linear-gradient(90deg, #10b981, #34d399); }
.enroll-bar.bar-purple { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.enroll-bar.bar-orange { background: linear-gradient(90deg, #f97316, #fb923c); }
.enroll-bar.bar-pink { background: linear-gradient(90deg, #ec4899, #f472b6); }

.enroll-count {
  width: 28px;
  text-align: right;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .page-actions {
    width: 100%;
  }
}

.table-card {
  overflow: hidden;
}

.header-filters {
  display: flex;
  gap: 8px;
}

.filter-select-sm,
.filter-input {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 7px;
  padding: 5px 10px;
}

.fees-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.fee-stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fee-stat-card i { font-size: 22px; color: #34d399; }
.fee-stat-card.red { border-color: rgba(244,63,94,0.3); }
.fee-stat-card.red i { color: #fb7185; }
.fee-stat-card.yellow { border-color: rgba(245,158,11,0.3); }
.fee-stat-card.yellow i { color: #fbbf24; }
.fee-stat-card.purple { border-color: rgba(139,92,246,0.3); }
.fee-stat-card.purple i { color: #a78bfa; }

.fsc-val {
  display: block;
  font-size: 20px;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
}

.fsc-lbl {
  font-size: 12px;
  color: var(--text-muted);
}

.action-btns {
  display: flex;
  gap: 6px;
}

.act-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.badge-green {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.attendance-calendar-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.attendance-calendar-table {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
}

.attendance-calendar-table thead th {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
}

.attendance-calendar-table td {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  padding: 8px;
  background: var(--bg-card);
}

.attendance-calendar-table tr td:last-child,
.attendance-calendar-table tr th:last-child {
  border-right: none;
}

.calendar-day-box {
  min-height: 88px;
}

.calendar-day-no {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 13px;
}

.attendance-calendar-table td.is-out-month {
  background: rgba(148, 163, 184, 0.07);
}

.attendance-calendar-table td.is-out-month .calendar-day-no {
  color: var(--text-muted);
}

.attendance-calendar-table td.is-today {
  box-shadow: inset 0 0 0 2px rgba(96, 165, 250, 0.8);
}

.attendance-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
}

.attendance-status-pill.status-present { background: rgba(16, 185, 129, 0.2); color: #059669; }
.attendance-status-pill.status-absent { background: rgba(239, 68, 68, 0.2); color: #dc2626; }
.attendance-status-pill.status-leave { background: rgba(245, 158, 11, 0.2); color: #d97706; }
.attendance-status-pill.status-late { background: rgba(59, 130, 246, 0.2); color: #2563eb; }
.attendance-status-pill.status-halfday { background: rgba(100, 116, 139, 0.2); color: #475569; }

.calendar-time-label {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1000px) {
  .fees-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .fees-stats {
    grid-template-columns: 1fr;
  }
}

.modal-overlay-custom {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
}

.modal-overlay-custom.open {
  display: flex;
}

.modal-custom {
  width: min(760px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
}

.modal-subject {
  width: min(820px, 100%);
}

.modal-custom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.modal-custom-body {
  padding: 18px;
}

.btn-close-course {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
}

.cycle-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mapping-group-box {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.mapping-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.course-map-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

.course-map-header {
  padding: 10px 12px;
  background: var(--bg-card);
}

.course-map-header label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-map-sems {
  display: none;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: rgba(99, 102, 241, 0.05);
}

.course-map-branches {
  display: none;
  padding: 6px 8px 4px;
  border-top: 1px solid var(--border);
  background: rgba(99, 102, 241, 0.03);
}

.branch-map-item {
  margin: 6px 0 8px 12px;
}

.branch-map-header {
  padding: 6px 10px;
  background: var(--bg-card);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.branch-map-header label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.semester-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 8px;
  margin-right: 8px;
  margin-top: 6px;
}

@media (max-width: 700px) {
  .cycle-name-grid {
    grid-template-columns: 1fr;
  }
}

/* Hostel Allotment â€” match Hostel Master: plain cards + Bootstrap tabs */
.hostel-allotment-subtabs .nav-link {
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
}

.hostel-allotment-subtabs .nav-link:hover {
  color: var(--text-primary);
  border-color: rgba(99, 102, 241, 0.35);
}

.hostel-allotment-subtabs .nav-link.active {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

.hostel-bed-pick-summary {
  border: 1px dashed var(--border);
  background: rgba(148, 163, 184, 0.06);
}

.hostel-bed-pick-summary--done {
  border-style: solid;
  border-color: var(--primary) !important;
  background: rgba(99, 102, 241, 0.08);
}

.hostel-bed-pick-summary--done #allotmentBedPickLabel {
  color: var(--text-primary) !important;
}

/* Hostel Fees â€” overdue due/balance emphasis */
@keyframes hostel-fee-due-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.hostel-fee-due-blink {
  animation: hostel-fee-due-blink 1.1s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hostel-fee-due-blink {
    animation: none;
    opacity: 1;
  }
}

/* Student/Staff responsive dashboard shell (mobile/tablet) */
.mobile-dashboard-shell {
  display: none;
}

@media (max-width: 991.98px) {
  .desktop-dashboard-content {
    display: none !important;
  }

  .mobile-dashboard-shell {
    display: block;
    background: #f6f8fc;
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
  }

  .mobile-dashboard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-dashboard-hello {
    color: var(--text-muted);
    font-size: 0.85rem;
  }

  .mobile-dashboard-name {
    font-family: "Outfit", sans-serif;
    font-size: 1.35rem;
    color: var(--text-primary);
  }

  .mobile-dashboard-bell {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: var(--text-secondary);
  }

  .mobile-dashboard-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    padding: 10px 12px;
  }

  .mobile-dashboard-search i {
    color: var(--text-muted);
  }

  .mobile-dashboard-search input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
  }

  .mobile-section-title {
    font-family: "Outfit", sans-serif;
    color: var(--text-secondary);
    margin-bottom: 10px;
  }

  .mobile-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .mobile-dash-tile {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    min-height: 96px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    text-align: center;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(99, 102, 241, 0.15);
    touch-action: manipulation;
    position: relative;
    z-index: 0;
  }

  .mobile-dash-tile:active {
    transform: scale(0.98);
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.06);
  }

  .mobile-dash-tile i {
    color: var(--primary);
    font-size: 1.15rem;
  }

  .mobile-dash-tile span {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.15;
  }
}

@media screen and (max-width:567px){
	.sidebar-toggle {display: block;}
	.breadcrumb {margin-top: 16px;}
	.page-header {flex-direction: column;}
}


