/* ==========================================================================
   HND LMS — Creative, Modern Educational SaaS Design System (2026 Edition)
   ========================================================================== */

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --primary-light: #eef2ff;
  --primary-glow: rgba(99, 102, 241, 0.28);
  
  --secondary: #7c3aed;
  --secondary-gradient: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  --secondary-light: #f5f3ff;
  
  --accent-cyan: #06b6d4;
  --accent-teal: #0d9488;
  --accent-indigo: #6366f1;
  
  --success: #059669;
  --success-light: #ecfdf5;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --info: #0284c7;
  --info-light: #f0f9ff;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --bg-main: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-border: rgba(226, 232, 240, 0.9);
  --border: #e2e8f0;
  --border-focus: #818cf8;
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 8px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.09), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 24px 48px -12px rgba(79, 70, 229, 0.18), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 28px rgba(99, 102, 241, 0.22);
  
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-fast: 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base & Typography
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

button, input, select, textarea {
  font-family: inherit;
}

/* ==========================================================================
   Creative Aurora Background & Mesh Glows
   ========================================================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  background: #f8fafc;
  padding: 32px 20px;
}

.auth-ambient-grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

.auth-ambient-blob-1 {
  position: fixed;
  width: 650px;
  height: 650px;
  top: -160px;
  left: -140px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.24) 0%, rgba(124, 58, 237, 0.12) 45%, rgba(248, 250, 252, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  animation: floatSlow 18s ease-in-out infinite alternate;
}

.auth-ambient-blob-2 {
  position: fixed;
  width: 600px;
  height: 600px;
  bottom: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, rgba(6, 182, 212, 0.12) 50%, rgba(248, 250, 252, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  animation: floatSlow 22s ease-in-out infinite alternate-reverse;
}

.auth-ambient-blob-3 {
  position: fixed;
  width: 450px;
  height: 450px;
  top: 40%;
  right: 25%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

@keyframes floatSlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.08); }
  100% { transform: translate(-20px, 25px) scale(0.95); }
}

/* ==========================================================================
   Creative Dual-Panel Auth Showcase
   ========================================================================== */

.auth-card-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1060px;
  margin: auto;
}

.auth-card-wrap.narrow-auth {
  max-width: 500px;
}

.auth-card-wrap.medium-auth {
  max-width: 680px;
}

.auth-split-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 900px) {
  .auth-split-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Left Showcase Side */
.auth-showcase-panel {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 900px) {
  .auth-showcase-panel {
    display: none; /* Hide showcase text on mobile to focus strictly on login form */
  }
}

.showcase-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  backdrop-filter: blur(8px);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.showcase-headline {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.showcase-headline .gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.showcase-subtext {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Showcase Feature Badges */
.showcase-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-feature-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.showcase-feature-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.feature-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}

.feature-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.feature-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Quick Fill Demo Pills */
.demo-fill-card {
  background: rgba(238, 242, 255, 0.6);
  border: 1px dashed #c7d2fe;
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.demo-fill-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-fill-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.demo-pill-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.demo-pill-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   Creative Auth Glass Card
   ========================================================================== */

.auth-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  padding: 38px 34px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  animation: cardFadeUp 0.35s ease-out;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

@media (max-width: 480px) {
  .auth-card {
    padding: 26px 20px;
    border-radius: var(--radius-lg);
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 26px;
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  border: 1px solid #c7d2fe;
}

.auth-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Alerts & Notifications
   ========================================================================== */

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
  animation: alertIn 0.25s ease-out;
}

.alert-error {
  background-color: var(--danger-light);
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.alert-success {
  background-color: var(--success-light);
  border: 1px solid #a7f3d0;
  color: #047857;
}

.alert-warning {
  background-color: var(--warning-light);
  border: 1px solid #fde68a;
  color: #b45309;
}

.alert-info {
  background-color: var(--info-light);
  border: 1px solid #bae6fd;
  color: #0369a1;
}

/* ==========================================================================
   Creative Inputs & Form Controls
   ========================================================================== */

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.93rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.92);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
}

.input-with-icon {
  padding-left: 42px;
}

.input-with-eye {
  padding-right: 44px;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.input-wrapper:focus-within .input-icon {
  color: var(--primary);
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.password-toggle-btn:hover {
  color: var(--text-main);
  background: #f1f5f9;
}

.form-helper {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ==========================================================================
   Visual Cohort Selection Cards (Creative Signup UI)
   ========================================================================== */

.cohort-picker-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.cohort-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

@media (max-width: 560px) {
  .cohort-card-grid {
    grid-template-columns: 1fr;
  }
}

.cohort-card {
  position: relative;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cohort-card:hover {
  border-color: #a5b4fc;
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.cohort-card.selected {
  border-color: var(--primary);
  background: #f5f3ff;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.cohort-card-radio {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.cohort-card-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 0.82rem;
}

.cohort-card-icon.blue { background: #dbeafe; color: #1d4ed8; }
.cohort-card-icon.purple { background: #ede9fe; color: #6d28d9; }

.cohort-card-code {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cohort-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin: 2px 0 6px 0;
}

.cohort-card-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Realtime Password Strength Bar */
.password-meter-wrap {
  margin-top: 6px;
}

.password-meter-bar {
  height: 4px;
  background: #e2e8f0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.password-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-pill);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.password-meter-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   Buttons & Actions
   ========================================================================== */

.form-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 0.86rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-muted);
  user-select: none;
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: var(--primary);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  text-align: center;
  min-height: 48px;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
  color: #ffffff;
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-main);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
  color: #ffffff;
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #ffffff;
}

.btn-danger-outline {
  background: transparent;
  border: 1.5px solid #fecaca;
  color: var(--danger);
}

.btn-danger-outline:hover {
  background: var(--danger-light);
  border-color: #fca5a5;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.83rem;
  min-height: 36px;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.auth-footer-links {
  margin-top: 24px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-footer-links a {
  font-weight: 700;
}

/* ==========================================================================
   Teacher Portal Layout & Desktop Sidebar
   ========================================================================== */

.app-layout {
  display: flex;
  min-height: 100vh;
}

.teacher-sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  transition: transform var(--transition-smooth);
}

.sidebar-header {
  padding: 22px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  transition: all var(--transition-fast);
}

.nav-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.nav-item.active {
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.nav-item.active svg {
  color: #ffffff;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  background: #fafafa;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  border: 1.5px solid #c7d2fe;
}

.user-info {
  flex: 1;
  overflow: hidden;
}

.user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar-mobile {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
}

.menu-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(3px);
  z-index: 35;
}

/* ==========================================================================
   Student Portal & Mobile Bottom Navigation
   ========================================================================== */

.student-wrapper {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 18px 90px 18px;
}

.student-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
}

/* Mobile Bottom Navigation Capsule */
.student-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 66px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  gap: 3px;
  transition: all var(--transition-fast);
  position: relative;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform var(--transition-fast);
}

.bottom-nav-item.active {
  color: var(--primary);
  font-weight: 800;
}

.bottom-nav-item.active svg {
  transform: translateY(-2px);
  stroke-width: 2.3;
}

.bottom-nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

/* Desktop Student Navigation */
.student-desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.student-desktop-nav .nav-link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.student-desktop-nav .nav-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.student-desktop-nav .nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

@media (min-width: 768px) {
  .student-bottom-nav {
    display: none;
  }
  .student-wrapper {
    padding-bottom: 40px;
  }
}

@media (max-width: 767px) {
  .student-desktop-nav {
    display: none;
  }
}

/* ==========================================================================
   Dashboard Components: Stats, Cards, Badges
   ========================================================================== */

.content-container {
  padding: 30px 28px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .content-container {
    padding: 18px 14px;
  }
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 14px;
}

.page-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.page-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Stat Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.primary { background: var(--primary-light); color: var(--primary); }
.stat-icon.success { background: var(--success-light); color: var(--success); }
.stat-icon.warning { background: var(--warning-light); color: var(--warning); }
.stat-icon.secondary { background: var(--secondary-light); color: var(--secondary); }

.stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Card Component */
.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
}

.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
}

.card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.card-body {
  padding: 22px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-approved, .badge-success {
  background: var(--success-light);
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-pending, .badge-warning {
  background: var(--warning-light);
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-rejected, .badge-danger {
  background: var(--danger-light);
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.badge-class {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #c7d2fe;
}

/* Table styles */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.table th {
  background: #f8fafc;
  padding: 13px 18px;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}

.table tr:hover td {
  background-color: #f8fafc;
}

/* Responsive grid for mobile view of lists */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.item-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.item-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

/* Status banner for pending/rejected student */
.account-status-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.account-status-banner.rejected {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fecaca;
}

.status-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

/* Animations */
@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes alertIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Sidebar Behavior */
@media (max-width: 900px) {
  .teacher-sidebar {
    transform: translateX(-100%);
  }
  .teacher-sidebar.open {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
  }
  .topbar-mobile {
    display: flex;
  }
  .sidebar-overlay.open {
    display: block;
  }
}
