/* ─── PREKSHA GLOBAL STYLES ─────────────────────────────────────── */
:root {
  --primary: #6C3CE1;
  --primary-dark: #4A1FA8;
  --secondary: #00D4FF;
  --accent: #FF6B2C;
  --accent2: #FFD700;
  --green: #00E676;
  --pink: #FF4081;
  --bg-dark: #070714;
  --bg-card: #0E0E26;
  --bg-card2: #15152E;
  --text: #E8E8F0;
  --text-muted: #7777A0;
  --border: rgba(108, 60, 225, 0.22);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Nunito', sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Role colours */
  --role-superuser: #FF4081;
  --role-management: #FFD700;
  --role-teacher: #00D4FF;
  --role-student: #00E676;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════
   NAV — Updated with dual auth buttons
═══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 7, 20, 0.75);
  backdrop-filter: blur(28px) saturate(1.6);
  border-bottom: 1px solid transparent;
  padding: 0 2rem;
  overflow: visible;
}

nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 20%, var(--secondary) 40%, var(--accent) 60%, var(--green) 80%, transparent 100%);
  background-size: 200% 100%;
  animation: navScan 3s linear infinite;
}

nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(108, 60, 225, 0.08) 0%, transparent 100%);
  pointer-events: none;
}

@keyframes navScan {
  0% {
    background-position: 200% 0
  }

  100% {
    background-position: -200% 0
  }
}



.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 12px rgba(255, 107, 44, 0.4);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: nowrap;
  overflow: hidden;
}

.nav-links a,
.nav-links button {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-links a:hover,
.nav-links button:hover {
  color: #fff;
  background: rgba(108, 60, 225, 0.2);
}

.nav-links a.active {
  color: #fff;
  background: rgba(108, 60, 225, 0.25);
}

.nav-badge {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Role badge in navbar */
.role-pill {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-mono);
  border: 1px solid;
}

.role-pill.superuser {
  background: rgba(255, 64, 129, 0.15);
  color: #FF4081;
  border-color: rgba(255, 64, 129, 0.35);
}

.role-pill.management {
  background: rgba(255, 215, 0, 0.15);
  color: #FFD700;
  border-color: rgba(255, 215, 0, 0.35);
}

.role-pill.teacher {
  background: rgba(0, 212, 255, 0.12);
  color: #00D4FF;
  border-color: rgba(0, 212, 255, 0.3);
}

.role-pill.student {
  background: rgba(0, 230, 118, 0.12);
  color: #00E676;
  border-color: rgba(0, 230, 118, 0.3);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: transparent;
  border-radius: 8px;
  transition: background 0.2s;
}

.nav-hamburger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile drawer */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(7, 7, 20, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-mobile-drawer.open {
  display: flex;
}

.nav-mobile-drawer a,
.nav-mobile-drawer button {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  width: 100%;
  text-decoration: none;
}

.nav-mobile-drawer a:hover,
.nav-mobile-drawer button:hover {
  color: #fff;
  background: rgba(108, 60, 225, 0.2);
}

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 18px rgba(108, 60, 225, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(108, 60, 225, 0.55);
}

.btn-accent {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 107, 44, 0.4);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 44, 0.55);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(108, 60, 225, 0.5);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ─── CARDS ──────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

.card:hover {
  border-color: rgba(108, 60, 225, 0.45);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.card-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

/* ─── FORMS ──────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--font-mono);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  background: rgba(108, 60, 225, 0.06);
}

.form-control::placeholder {
  color: var(--text-muted);
}

select.form-control option {
  background: var(--bg-card2);
  color: var(--text);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  font-size: 0.78rem;
  color: #FCA5A5;
  margin-top: 0.3rem;
  display: none;
}

.form-error.show {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media(max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ─── ALERTS ─────────────────────────────────────────────────────── */
.alert {
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.86rem;
  display: none;
  align-items: flex-start;
  gap: 0.6rem;
}

.alert.show {
  display: flex;
}

.alert-success {
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: #86EFAC;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}

.alert-warning {
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.25);
  color: #FDE68A;
}

.alert-info {
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: #67E8F9;
}

/* ─── STAT TILES ────────────────────────────────────────────────── */
.stat-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.stat-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--tile-color, var(--primary));
}

.stat-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.stat-tile-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--tile-color, var(--secondary));
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-tile-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-mono);
}

/* ─── TABLE ──────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 600px;
}

.data-table th {
  padding: 0.85rem 1rem;
  background: var(--bg-card2);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(108, 60, 225, 0.04);
}

/* ─── BADGES ──────────────────────────────────────────────────────── */
.badge {
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-mono);
  border: 1px solid;
  display: inline-block;
}

.badge-active {
  background: rgba(0, 230, 118, 0.1);
  color: #86EFAC;
  border-color: rgba(0, 230, 118, 0.3);
}

.badge-inactive {
  background: rgba(239, 68, 68, 0.1);
  color: #FCA5A5;
  border-color: rgba(239, 68, 68, 0.3);
}

.badge-verified {
  background: rgba(0, 212, 255, 0.1);
  color: #67E8F9;
  border-color: rgba(0, 212, 255, 0.25);
}

.badge-pending {
  background: rgba(255, 215, 0, 0.1);
  color: #FDE68A;
  border-color: rgba(255, 215, 0, 0.25);
}

/* ─── MODAL ──────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.modal-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.7rem;
  justify-content: flex-end;
}

/* ─── TABS ───────────────────────────────────────────────────────── */
.dash-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.dash-tabs::-webkit-scrollbar {
  display: none;
}

.dash-tab {
  padding: 12px 20px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
}

.dash-tab:hover {
  color: var(--text);
}

.dash-tab.active {
  color: #fff;
  border-bottom-color: var(--primary);
}

.dash-panel {
  display: none;
}

.dash-panel.active {
  display: block;
}

/* ─── LOADING ─────────────────────────────────────────────────────── */
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(108, 60, 225, 0.3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 20, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  flex-direction: column;
  gap: 1rem;
}

.loading-overlay p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ─── TOAST ───────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  max-width: 300px;
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.toast-success {
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: #86EFAC;
}

.toast-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.toast-info {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: #67E8F9;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(20px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

/* ─── UTILITIES ───────────────────────────────────────────────────── */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.fw-bold {
  font-weight: 700;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.flex-wrap {
  flex-wrap: wrap;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media(max-width:900px) {
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:600px) {

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ─── RESPONSIVE NAVBAR ───────────────────────────────────────────── */
@media(max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}

/* ─── DASHBOARD LAYOUT ─────────────────────────────────────────── */
.dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}

.dash-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.dash-sidebar-user {
  padding: 0 1.2rem 1.2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.dash-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.7rem;
}

.dash-username {
  font-weight: 700;
  font-size: 0.9rem;
}

.dash-useremail {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 1.2rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  background: transparent;
  border-top: none;
  border-right: none;
  border-bottom: none;
  width: 100%;
  text-align: left;
}

.dash-nav-item:hover {
  color: var(--text);
  background: rgba(108, 60, 225, 0.1);
}

.dash-nav-item.active {
  color: #fff;
  background: rgba(108, 60, 225, 0.18);
  border-left-color: var(--primary);
}

.dash-nav-item i {
  width: 18px;
  text-align: center;
}

.dash-main {
  padding: 2rem;
  overflow-x: hidden;
}

.dash-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.dash-page-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

@media(max-width: 900px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    position: fixed;
    left: -100%;
    top: 64px;
    width: 260px;
    height: calc(100vh - 64px);
    z-index: 500;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
  }

  .dash-sidebar.open {
    left: 0;
  }

  .dash-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 499;
    top: 64px;
  }

  .dash-sidebar-overlay.open {
    display: block;
  }
}

/* ─── SECTION HEADER ─────────────────────────────────────────────── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(108, 60, 225, 0.12);
  border: 1px solid rgba(108, 60, 225, 0.3);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.7rem;
  font-family: var(--font-mono);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.section-title span {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Search bar */
.search-bar {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.search-bar .form-control {
  max-width: 300px;
}

/* ─── ADDED: Role pill (used by preksha-nav.js on all pages) ─── */
.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.64rem;
  font-weight: 700;
  font-family: var(--font-mono, 'Fira Code', monospace);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid;
  white-space: nowrap;
}

.role-pill.superuser {
  background: rgba(255, 64, 129, 0.15);
  color: #FF4081;
  border-color: rgba(255, 64, 129, 0.35);
}

.role-pill.management {
  background: rgba(255, 215, 0, 0.15);
  color: #FFD700;
  border-color: rgba(255, 215, 0, 0.35);
}

.role-pill.teacher {
  background: rgba(0, 212, 255, 0.12);
  color: #00D4FF;
  border-color: rgba(0, 212, 255, 0.3);
}

.role-pill.student {
  background: rgba(0, 230, 118, 0.12);
  color: #00E676;
  border-color: rgba(0, 230, 118, 0.3);
}

/* ─── ADDED: Toast animation (used by preksha-nav.js) ─── */
@keyframes toastSlide {
  from {
    opacity: 0;
    transform: translateX(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}