/* ============================================================
   TDIIBT Higher Education Management System
   Custom Theme — Professional Blue & Gold
   Colors: Deep Navy #1a3a6b | Gold #c8860a | White #ffffff
   ============================================================ */

:root {
  /* Primary Colors — from TDIIBT Logo */
  --primary:         #1a3a6b;
  --primary-dark:    #112548;
  --primary-light:   #2a5298;
  --primary-pale:    #e8f0fe;
  --primary-dim:     rgba(26,58,107,.1);

  /* Gold Accent */
  --gold:            #c8860a;
  --gold-dark:       #9a6508;
  --gold-light:      #e0a020;
  --gold-pale:       #fef3d0;
  --gold-dim:        rgba(200,134,10,.12);

  /* Functional Colors */
  --success:         #198754;
  --success-pale:    #d1e7dd;
  --danger:          #dc3545;
  --danger-pale:     #f8d7da;
  --warning:         #fd7e14;
  --warning-pale:    #fff3cd;
  --info:            #0dcaf0;
  --info-pale:       #cff4fc;
  --purple:          #6f42c1;
  --purple-pale:     #e8d5ff;
  --teal:            #20c997;
  --teal-pale:       #d2f4ea;

  /* Neutral */
  --white:           #ffffff;
  --off-white:       #f8f9ff;
  --light:           #f4f6fb;
  --border:          #e2e8f0;
  --border-dark:     #cbd5e1;
  --text-primary:    #1e2d45;
  --text-secondary:  #4a6680;
  --text-muted:      #8a9bb4;
  --text-light:      #b8c8d8;

  /* Sidebar */
  --sidebar-bg:      #0d1f3c;
  --sidebar-dark:    #081526;
  --sidebar-item:    rgba(255,255,255,.06);
  --sidebar-hover:   rgba(200,134,10,.15);
  --sidebar-active:  rgba(200,134,10,.22);
  --sidebar-text:    rgba(255,255,255,.85);
  --sidebar-muted:   rgba(255,255,255,.45);
  --sidebar-border:  rgba(255,255,255,.08);

  /* Spacing */
  --sidebar-width:   270px;
  --topbar-height:   64px;
  --card-radius:     12px;
  --btn-radius:      8px;
  --input-radius:    8px;

  /* Shadows */
  --shadow-sm:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:          0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:       0 10px 40px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
  --shadow-gold:     0 4px 20px rgba(200,134,10,.25);
  --shadow-primary:  0 4px 20px rgba(26,58,107,.25);

  /* Transitions */
  --transition:      all .2s ease;
  --transition-slow: all .35s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: .93rem;
  color: var(--text-primary);
  background: var(--off-white);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.text-gold { color: var(--gold) !important; }
.text-primary-t { color: var(--primary) !important; }
.fw-600 { font-weight: 600; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ============================================================
   AUTH PAGES (Login / Register)
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(200,134,10,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(200,134,10,.1) 0%, transparent 50%);
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  max-width: 940px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.auth-brand {
  background: linear-gradient(160deg, rgba(10,25,58,.95), rgba(15,35,75,.95));
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 80%; height: 140%;
  background: radial-gradient(ellipse, rgba(200,134,10,.12) 0%, transparent 60%);
}

.auth-brand-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(200,134,10,.3));
}

.auth-brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 4px;
}

.auth-brand-motto {
  font-size: .85rem;
  color: var(--gold-light);
  text-align: center;
  font-style: italic;
  margin-bottom: 32px;
}

.auth-brand-tagline {
  font-size: .88rem;
  color: rgba(255,255,255,.7);
  text-align: center;
  line-height: 1.7;
  margin-bottom: 32px;
}

.auth-brand-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-brand-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  color: rgba(255,255,255,.8);
}

.auth-brand-features li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: var(--gold);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.auth-form-col {
  background: var(--white);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.auth-form-subtitle {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ============================================================
   LAYOUT — SIDEBAR + MAIN
   ============================================================ */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  transition: transform .3s ease;
  overflow: hidden;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(200,134,10,.08), transparent);
  pointer-events: none;
}

.sidebar-header {
  padding: 20px 20px 18px;
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sidebar-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.sidebar-brand-text {}
.sidebar-brand-name {
  font-size: .9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.sidebar-brand-motto {
  font-size: .62rem;
  color: var(--gold-light);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sidebar-user {
  padding: 16px 20px;
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(200,134,10,.5);
  flex-shrink: 0;
}

.sidebar-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary-dark);
  flex-shrink: 0;
  border: 2px solid rgba(200,134,10,.5);
}

.sidebar-user-name {
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.95);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: .66rem;
  color: var(--gold-light);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.sidebar-section-title {
  font-size: .6rem;
  font-weight: 700;
  color: var(--sidebar-muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 16px 20px 6px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 500;
  border-radius: 0;
  transition: var(--transition);
  position: relative;
  margin: 1px 8px;
  border-radius: 8px;
}

.sidebar-item i {
  width: 20px;
  font-size: .88rem;
  text-align: center;
  color: var(--sidebar-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.sidebar-item:hover {
  background: var(--sidebar-hover);
  color: #fff;
}

.sidebar-item:hover i { color: var(--gold); }

.sidebar-item.active {
  background: var(--sidebar-active);
  color: var(--gold-light);
  font-weight: 600;
}

.sidebar-item.active i { color: var(--gold); }

.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--gold);
  border-radius: 0 3px 3px 0;
}

.sidebar-badge {
  margin-left: auto;
  font-size: .6rem;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--gold);
  color: var(--primary-dark);
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-badge.danger { background: var(--danger); color: #fff; }

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

/* ── MAIN CONTENT ── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── TOPBAR ── */
.topbar {
  height: var(--topbar-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.topbar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}

.topbar-title small {
  display: block;
  font-size: .7rem;
  font-weight: 400;
  color: var(--text-muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-icon-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: var(--light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: .9rem;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.topbar-icon-btn:hover {
  background: var(--primary-pale);
  color: var(--primary);
}

.topbar-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--white);
}

/* ── PAGE CONTENT ── */
.page-content {
  flex: 1;
  padding: 24px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-header-left {}
.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 4px;
}

.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  font-size: .78rem;
}

.breadcrumb-item { color: var(--text-muted); }
.breadcrumb-item.active { color: var(--text-secondary); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-card {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.stat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.stat-card.gold::after   { background: var(--gold); }
.stat-card.success::after { background: var(--success); }
.stat-card.danger::after  { background: var(--danger); }
.stat-card.info::after    { background: var(--info); }
.stat-card.purple::after  { background: var(--purple); }
.stat-card.warning::after { background: var(--warning); }
.stat-card.teal::after    { background: var(--teal); }

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-icon.bg-primary-pale { background: var(--primary-pale); color: var(--primary); }
.stat-icon.bg-gold-pale    { background: var(--gold-pale);    color: var(--gold); }
.stat-icon.bg-success-pale { background: var(--success-pale); color: var(--success); }
.stat-icon.bg-danger-pale  { background: var(--danger-pale);  color: var(--danger); }
.stat-icon.bg-info-pale    { background: var(--info-pale);    color: #0891b2; }
.stat-icon.bg-purple-pale  { background: var(--purple-pale);  color: var(--purple); }
.stat-icon.bg-teal-pale    { background: var(--teal-pale);    color: #0f766e; }

.stat-body { flex: 1; min-width: 0; }

.stat-number {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-change {
  font-size: .72rem;
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title i { color: var(--primary); font-size: .9rem; }

.card-body { padding: 20px; background: var(--white); }
.card-footer { padding: 14px 20px; background: var(--light); border-top: 1px solid var(--border); }

/* ============================================================
   TABLES
   ============================================================ */
.table-card { overflow: hidden; }

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  margin: 0;
  font-size: .85rem;
}

.table thead th {
  background: var(--primary);
  color: rgba(255,255,255,.9);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 12px 16px;
  border: none;
  white-space: nowrap;
}

.table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  border-color: var(--border);
  color: var(--text-primary);
}

.table tbody tr { transition: background .15s; }
.table-hover tbody tr:hover { background: var(--primary-pale); }

.table-striped tbody tr:nth-of-type(even) td { background: var(--off-white); }
.table-striped tbody tr:nth-of-type(even):hover td { background: var(--primary-pale); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-weight: 600;
  border-radius: var(--btn-radius);
  font-size: .83rem;
  padding: 9px 18px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,58,107,.3);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-primary); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  box-shadow: 0 2px 8px rgba(200,134,10,.3);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: var(--shadow-gold); color: #fff; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(.9); color: #fff; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.9); color: #fff; }

.btn-warning { background: var(--warning); color: #fff; }
.btn-info    { background: var(--info);    color: var(--primary-dark); }

.btn-outline-primary { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

.btn-outline-gold { border: 2px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: #fff; }

.btn-light { background: var(--light); color: var(--text-primary); border: 1px solid var(--border); }
.btn-light:hover { background: var(--border); color: var(--text-primary); }

.btn-sm { padding: 6px 13px; font-size: .78rem; }
.btn-xs { padding: 4px 10px; font-size: .72rem; }
.btn-lg { padding: 12px 28px; font-size: .95rem; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; }

/* ============================================================
   FORM CONTROLS
   ============================================================ */
.form-control, .form-select {
  border-radius: var(--input-radius);
  border: 1.5px solid var(--border);
  font-size: .88rem;
  padding: 9px 14px;
  color: var(--text-primary);
  background: var(--white);
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,107,.1);
  outline: none;
}

.form-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.form-text { font-size: .75rem; color: var(--text-muted); }

.input-group-text {
  background: var(--light);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--input-radius);
}

.input-icon {
  position: relative;
}
.input-icon .form-control { padding-left: 40px; }
.input-icon i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: .9rem;
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   BADGES & PILLS
   ============================================================ */
.badge {
  font-size: .7rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: .03em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.badge-active, .status-active { background: var(--success-pale); color: #155724; }
.badge-inactive              { background: var(--danger-pale);  color: #842029; }
.badge-pending               { background: var(--warning-pale); color: #856404; }
.badge-paid                  { background: var(--success-pale); color: #155724; }
.badge-partial               { background: var(--warning-pale); color: #856404; }
.badge-unpaid                { background: var(--danger-pale);  color: #842029; }
.badge-admitted              { background: var(--primary-pale); color: var(--primary); }
.badge-scheduled             { background: var(--info-pale);    color: #0c5460; }
.badge-live                  { background: var(--danger-pale);  color: #842029; animation: pulse-live 1.5s infinite; }
.badge-primary-t             { background: var(--primary-pale); color: var(--primary); }
.badge-gold                  { background: var(--gold-pale);    color: var(--gold-dark); }

@keyframes pulse-live {
  0%,100% { opacity:1 }
  50% { opacity:.6 }
}

/* ============================================================
   AVATAR
   ============================================================ */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
}

.avatar-sm  { width: 32px; height: 32px; }
.avatar-md  { width: 44px; height: 44px; }
.avatar-lg  { width: 64px; height: 64px; }
.avatar-xl  { width: 96px; height: 96px; }
.avatar-xxl { width: 128px; height: 128px; }

.avatar-placeholder {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
}

/* ============================================================
   PROGRESS BARS
   ============================================================ */
.progress {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
}

.progress-bar {
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.progress-bar.gold {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
}

/* ============================================================
   NOTIFICATION / ALERT
   ============================================================ */
.alert {
  border-radius: 10px;
  border: none;
  padding: 14px 18px;
  font-size: .88rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-success { background: var(--success-pale); color: #155724; }
.alert-danger  { background: var(--danger-pale);  color: #842029; }
.alert-warning { background: var(--warning-pale); color: #856404; }
.alert-info    { background: var(--info-pale);    color: #0c5460; }

/* ============================================================
   NOTICE / ANNOUNCEMENT CARD
   ============================================================ */
.notice-item {
  padding: 14px 18px;
  border-left: 4px solid var(--primary);
  background: var(--white);
  border-radius: 0 8px 8px 0;
  margin-bottom: 10px;
  transition: var(--transition);
}

.notice-item:hover { border-left-color: var(--gold); }
.notice-item.urgent { border-left-color: var(--danger); background: var(--danger-pale); }
.notice-item.academic { border-left-color: var(--primary); }
.notice-item.financial { border-left-color: var(--success); }

.notice-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.notice-meta {
  font-size: .72rem;
  color: var(--text-muted);
}

/* ============================================================
   LIVE CLASS CARD
   ============================================================ */
.live-class-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  cursor: default;
}

.live-class-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.live-class-platform {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.platform-jitsi   { background: #eff6ff; color: #1d4ed8; }
.platform-zoom    { background: #eff6ff; color: #2d8cff; }
.platform-gmeet   { background: #fef2f2; color: #ea4335; }
.platform-bbb     { background: #fdf4ff; color: #7c3aed; }

.join-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.join-btn:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
  color: #fff;
}

.join-btn.live-now {
  background: linear-gradient(135deg, var(--danger), #b91c1c);
  animation: pulse-live 2s infinite;
}

/* ============================================================
   RESULT / MARKS
   ============================================================ */
.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 800;
}

.grade-A  { background: #d1fae5; color: #065f46; }
.grade-B  { background: #dbeafe; color: #1e40af; }
.grade-C  { background: var(--warning-pale); color: #92400e; }
.grade-D  { background: #fce7f3; color: #9d174d; }
.grade-F  { background: var(--danger-pale); color: #991b1b; }

/* GPA Progress */
.gpa-ring {
  width: 80px;
  height: 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gpa-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  line-height: 1;
}

.gpa-label {
  font-size: .65rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-header {
  background: var(--primary);
  color: #fff;
  padding: 16px 20px;
}

.modal-title { color: #fff; font-weight: 700; font-size: .95rem; }
.btn-close-white { filter: invert(1); opacity: .8; }
.modal-body { padding: 24px; }
.modal-footer { padding: 14px 20px; background: var(--light); }

/* ============================================================
   TABS
   ============================================================ */
.nav-tabs {
  border-bottom: 2px solid var(--border);
  gap: 4px;
}

.nav-tabs .nav-link {
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 600;
  padding: 10px 18px;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  transition: var(--transition);
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-tabs .nav-link:hover { color: var(--primary); }

.nav-tabs .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: none;
}

/* ============================================================
   DROPDOWN
   ============================================================ */
.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 180px;
}

.dropdown-item {
  border-radius: 8px;
  padding: 9px 14px;
  font-size: .83rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 9px;
  transition: var(--transition);
}

.dropdown-item i { color: var(--text-muted); width: 16px; }
.dropdown-item:hover { background: var(--primary-pale); color: var(--primary); }
.dropdown-item:hover i { color: var(--primary); }
.dropdown-divider { border-color: var(--border); margin: 6px 0; }

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  display: none;
}

.spinner-overlay.show { display: flex; }

.spinner-box {
  text-align: center;
}

.spinner-logo {
  width: 60px;
  height: 60px;
  animation: spin 1.5s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: .4;
}

.empty-state-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: .88rem;
  max-width: 360px;
  margin: 0 auto 20px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  :root { --sidebar-width: 240px; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(calc(-1 * var(--sidebar-width))); }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,.3); }
  .main-content { margin-left: 0; }
  .page-content { padding: 16px; }
  .stat-card { flex-direction: column; text-align: center; }
  .stat-icon { margin: 0 auto; }
  .topbar { padding: 0 16px; }
  .table-responsive { font-size: .78rem; }

  .hamburger-btn {
    display: flex !important;
  }
}

.hamburger-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: none;
  background: var(--light);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 199;
}

.sidebar-overlay.show { display: block; }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .sidebar, .topbar, .page-header .btn, .no-print { display: none !important; }
  .main-content { margin-left: 0; }
  .page-content { padding: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.rounded-xl { border-radius: 16px !important; }
.rounded-lg { border-radius: 12px !important; }
.shadow-none { box-shadow: none !important; }
.bg-primary-pale { background: var(--primary-pale) !important; }
.bg-gold-pale    { background: var(--gold-pale) !important; }
.border-primary  { border-color: var(--primary) !important; }
.border-gold     { border-color: var(--gold) !important; }
.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg) !important; }
.cursor-pointer { cursor: pointer; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
