/* ============================================================================
   MADAN MOHAN MALVIYA SCHOOL ERP - MODERN DESIGN SYSTEM & STYLESHEET
   ============================================================================ */

:root {
  /* Color Palette - Dark Mode (Default) */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(31, 41, 55, 0.85);
  --bg-sidebar: #0d1322;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.3);

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --accent-primary: #6366f1;   /* Indigo */
  --accent-secondary: #8b5cf6; /* Violet */
  --accent-cyan: #06b6d4;      /* Cyan */
  --accent-success: #10b981;   /* Emerald */
  --accent-warning: #f59e0b;   /* Amber */
  --accent-danger: #ef4444;    /* Rose */
  --accent-telegram: #0088cc;  /* Telegram Blue */

  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Tokens */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(241, 245, 249, 0.95);
  --bg-sidebar: #0f172a;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(99, 102, 241, 0.2);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

/* Base Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* App Shell Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
  width: 280px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.72));
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  backdrop-filter: blur(24px) saturate(135%);
  border-right: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: var(--transition);
}

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

.school-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 1.8rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.school-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.school-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.mobile-close-sidebar {
  display: none;
}

/* Session Isolation Dropdown Widget */
.sidebar-session-widget {
  margin: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.sidebar-session-widget label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.session-dropdown {
  width: 100%;
  padding: 8px 12px;
  background: #111827;
  color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.session-dropdown:focus {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.keyboard-scroll-panel:focus {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.keyboard-scroll-panel {
  scrollbar-gutter: stable both-edges;
}

.session-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  margin-top: 8px;
  color: #94a3b8;
}

.sidebar .sidebar-session-widget label {
  color: #c7d2fe;
}

.sidebar .role-label,
.sidebar .sidebar-footer,
.sidebar .sidebar-footer small,
.sidebar .sidebar-footer strong {
  color: #e2e8f0;
}

input[type="date"],
input[type="month"],
input[type="time"],
input[type="datetime-local"] {
  color-scheme: dark;
  accent-color: var(--accent-primary);
}

input[type="date"].session-dropdown,
input[type="month"].session-dropdown,
input[type="time"].session-dropdown,
input[type="datetime-local"].session-dropdown {
  background: #111827;
  color: #ffffff;
  border: 1px solid #475569;
}

[data-theme="light"] input[type="date"]:not(.sidebar input),
[data-theme="light"] input[type="month"]:not(.sidebar input),
[data-theme="light"] input[type="time"]:not(.sidebar input),
[data-theme="light"] input[type="datetime-local"]:not(.sidebar input) {
  color-scheme: light;
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.12);
}

.exam-schedule-time-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.exam-schedule-clock-icon {
  color: #fbbf24;
  font-size: 0.95rem;
  flex-shrink: 0;
}

[data-theme="light"] .exam-schedule-clock-icon {
  color: #d97706;
}

.theme-panel-modal {
  background: var(--bg-secondary) !important;
  color: var(--text-main) !important;
}

.theme-panel-modal .theme-panel-muted {
  color: var(--text-muted) !important;
}

.theme-panel-modal .theme-panel-table-wrap {
  background: var(--bg-primary) !important;
  border-color: var(--border-color) !important;
}

.theme-panel-modal .theme-panel-table-head {
  background: var(--bg-card) !important;
  color: var(--accent-primary) !important;
}

.theme-panel-modal .theme-panel-row {
  border-bottom-color: var(--border-color) !important;
}

.theme-panel-modal .theme-panel-name {
  color: var(--text-main) !important;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.status-dot.green { background-color: var(--accent-success); box-shadow: 0 0 8px var(--accent-success); }
.status-dot.amber { background-color: var(--accent-warning); }

/* Navigation Menu */
.sidebar-nav {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  padding: 12px 12px 6px 12px;
  letter-spacing: 1px;
}

.sidebar .nav-item {
  color: #e2e8f0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #e2e8f0;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
  transition: var(--transition);
  position: relative;
}

.nav-item i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
  color: #ffffff;
  background: var(--gradient-brand);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.nav-item.highlight-nav {
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.1);
}

.nav-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: var(--accent-danger);
  color: #ffffff;
}

.nav-badge.pulse {
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* Sidebar Footer & Role Switcher */
.sidebar-footer {
  padding: 14px;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.role-selector-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.role-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.role-dropdown {
  padding: 6px 10px;
  background: #1e293b;
  color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

/* Main Content Wrapper */
.main-wrapper {
  flex: 1;
  margin-left: 280px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  max-width: calc(100vw - 280px);
}

/* Top Navbar */
.top-navbar {
  height: 70px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(12px);
}

.left-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.toggle-sidebar-btn {
  display: none;
}

.global-search-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  width: 420px;
  cursor: pointer;
  transition: var(--transition);
}

.global-search-trigger:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.search-icon {
  color: var(--text-muted);
}

.search-placeholder {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-shortcut {
  margin-left: auto;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

/* Right Nav Controls */
.right-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-nfc-tap {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-nfc-tap:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-telegram {
  background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
  color: #ffffff;
}

/* User Avatar Card */
.user-profile-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--border-color);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #7c3aed 100%);
  border: 2px solid var(--accent-primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  user-select: none;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.user-role-badge {
  font-size: 0.7rem;
  color: var(--accent-cyan);
}

/* Content Body */
.content-body {
  flex: 1;
  padding: 28px;
  min-width: 0;
  max-width: 100%;
}

/* Page Header Component */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  max-width: 100%;
}

.glass-card:hover {
  border-color: var(--border-glow);
}

/* Grid Layouts */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* KPI Cards */
.kpi-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

.kpi-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.kpi-icon-box.purple { background: rgba(99, 102, 241, 0.15); color: var(--accent-primary); }
.kpi-icon-box.green { background: rgba(16, 185, 129, 0.15); color: var(--accent-success); }
.kpi-icon-box.red { background: rgba(239, 68, 68, 0.15); color: var(--accent-danger); }
.kpi-icon-box.cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.kpi-icon-box.amber { background: rgba(245, 158, 11, 0.15); color: var(--accent-warning); }

.kpi-data {
  display: flex;
  flex-direction: column;
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
}

.kpi-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Table Styles */
.data-table-container {
  position: relative !important;
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  display: block;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

/* Broadsheet table - max-content and border-collapse separate allow Chrome native overflow scroll */
.data-table-broadsheet {
  width: max-content !important;
  min-width: 3400px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  text-align: center;
  table-layout: fixed;
}

.data-table th {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
}

.data-table tbody tr {
  transition: var(--transition);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--accent-success); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--accent-danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--accent-warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-info { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-secondary); border: 1px solid rgba(139, 92, 246, 0.3); }

/* Admission number — same chip in exams, fees ledger, student profile */
.adm-no-chip {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.02em;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(129, 140, 248, 0.45);
}

[data-theme="light"] .adm-no-chip {
  color: #312e81;
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(79, 70, 229, 0.35);
}

/* On dark profile banner — keep chip readable over purple gradient */
.profile-header-adm.adm-no-chip,
.adm-no-chip.profile-header-adm {
  margin-top: 0;
  color: #e0e7ff;
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(199, 210, 254, 0.45);
}

[data-theme="light"] .profile-header-adm.adm-no-chip,
[data-theme="light"] .adm-no-chip.profile-header-adm {
  color: #1e1b4b;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(79, 70, 229, 0.25);
}

/* Staff role label — readable on light and dark page backgrounds */
.erp-role-chip {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

[data-theme="light"] .erp-role-chip {
  color: #0f172a;
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.14);
}

.exam-student-name {
  font-weight: 800;
  font-size: 1.02rem;
  color: #38bdf8;
}

[data-theme="light"] .exam-student-name {
  color: #1d4ed8;
}

/* Student Profile Modal & Drawer */
.student-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.student-photo-large {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.timeline-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.timeline-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.timeline-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-weight: 600;
}

.timeline-body {
  padding: 18px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.close-modal-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.close-modal-btn:hover { color: var(--text-main); }

/* NFC Waves Animation */
.nfc-modal-box { text-align: center; }
.nfc-scanner-waves {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nfc-card-icon {
  font-size: 2.5rem;
  color: var(--accent-success);
  z-index: 2;
}

.wave {
  position: absolute;
  border: 2px solid var(--accent-success);
  border-radius: 50%;
  animation: ripple 2s infinite ease-out;
}
.wave1 { width: 60px; height: 60px; animation-delay: 0s; }
.wave2 { width: 80px; height: 80px; animation-delay: 0.6s; }
.wave3 { width: 100px; height: 100px; animation-delay: 1.2s; }

@keyframes ripple {
  0% { opacity: 1; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.3); }
}

.sample-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 24px;
}

.sample-nfc-card-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  transition: var(--transition);
}

.sample-nfc-card-btn:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--accent-success);
}

.card-name { font-weight: 700; color: var(--text-main); font-size: 0.9rem; }
.card-uid { font-family: monospace; font-size: 0.75rem; color: var(--accent-cyan); margin: 2px 0; }
.card-class { font-size: 0.72rem; color: var(--text-muted); }

.manual-uid-input-group {
  padding: 18px 24px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-color);
}

.input-with-button {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.input-with-button input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: monospace;
}

/* Global Search Modal Header */
.search-input-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  gap: 14px;
}

.modal-search-icon { font-size: 1.3rem; color: var(--accent-primary); }

#globalSearchInput {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 1.1rem;
  color: var(--text-main);
}

.search-results-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 12px;
}

.search-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.search-empty-state i { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.5; }

/* ============================================================================
   RESPONSIVE MOBILE & TABLET DESIGN SYSTEM
   ============================================================================ */

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.sidebar-open .sidebar-overlay {
  display: block;
  opacity: 1;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .global-search-trigger { width: 260px; }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 9999;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .toggle-sidebar-btn {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .top-navbar {
    padding: 10px 14px;
    gap: 10px;
  }
  
  .global-search-trigger {
    flex: 1;
    max-width: 210px;
    padding: 6px 10px;
    font-size: 0.78rem;
  }
  
  .search-shortcut {
    display: none !important;
  }
  
  .user-info {
    display: none !important;
  }

  .btn-nfc-tap {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .content-body {
    padding: 14px 12px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }

  .page-header > div:last-child {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .page-header .btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .page-title {
    font-size: 1.3rem;
  }

  .page-subtitle {
    font-size: 0.8rem;
  }

  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .glass-card {
    padding: 14px;
    border-radius: 14px;
  }

  .kpi-card {
    padding: 14px;
  }

  .kpi-value {
    font-size: 1.6rem;
  }

  /* Scrollable Data Tables on Mobile Touch Screens */
  .data-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--border-color);
  }

  .data-table {
    min-width: 620px;
    font-size: 0.8rem;
  }

  .data-table th, .data-table td {
    padding: 8px 10px;
    white-space: nowrap;
  }

  /* Responsive Bottom-Sheet Modals on Mobile Phones */
  .modal-overlay {
    padding: 8px;
    align-items: flex-end;
  }

  .modal-box {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 92vh !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 16px !important;
  }

  .modal-header h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .top-navbar {
    padding: 8px 10px;
  }

  .global-search-trigger {
    display: none !important;
  }

  .page-header .btn {
    flex: 1 1 100%;
  }

  .modal-box {
    padding: 14px 12px !important;
  }
}

/* ============================================================================
   BROADSHEET MATRIX STICKY COLUMNS
   Freeze S.No / Student / Father on PC AND mobile while subjects slide.
   (Previously disabled under 1024px — teachers on phones need freeze too.)
   ============================================================================ */
#subjectTableContainer,
.data-table-container.custom-matrix-scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}

.sticky-col-1,
.sticky-col-2,
.sticky-col-3 {
  position: -webkit-sticky !important;
  position: sticky !important;
  z-index: 25 !important;
  background: #0f172a !important;
  box-shadow: 2px 0 0 rgba(51, 65, 85, 0.9);
}

thead .sticky-col-1,
thead .sticky-col-2,
thead .sticky-col-3 {
  z-index: 40 !important;
  top: 0 !important;
  background: #0f172a !important;
}

.sticky-col-1 {
  left: 0 !important;
  width: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  border-right: 1px solid #334155 !important;
}

.sticky-col-2 {
  left: 50px !important;
  width: 128px !important;
  min-width: 128px !important;
  max-width: 128px !important;
  border-right: 1px solid #334155 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.sticky-col-3 {
  left: 178px !important;
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  border-right: 3px solid #6366f1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#subjectTableContainer .exam-student-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 700;
  color: #38bdf8;
}

[data-theme="light"] .sticky-col-1,
[data-theme="light"] .sticky-col-2,
[data-theme="light"] .sticky-col-3,
[data-theme="light"] thead .sticky-col-1,
[data-theme="light"] thead .sticky-col-2,
[data-theme="light"] thead .sticky-col-3 {
  background: #f1f5f9 !important;
  box-shadow: 2px 0 0 rgba(148, 163, 184, 0.55);
}

[data-theme="light"] .users-permissions-matrix .users-sticky-name,
[data-theme="light"] .users-permissions-matrix .users-sticky-role,
[data-theme="light"] .users-permissions-matrix thead .users-sticky-name,
[data-theme="light"] .users-permissions-matrix thead .users-sticky-role,
[data-theme="light"] .users-permissions-matrix tbody tr .users-sticky-name,
[data-theme="light"] .users-permissions-matrix tbody tr .users-sticky-role {
  background-color: #f8fafc !important;
}

[data-theme="light"] .users-permissions-matrix tbody tr:hover .users-sticky-name,
[data-theme="light"] .users-permissions-matrix tbody tr:hover .users-sticky-role {
  background-color: #eef2f7 !important;
}

/* Slightly narrower frozen cols on phones so marks columns stay visible */
@media (max-width: 1024px) {
  #subjectTableContainer {
    max-height: min(70vh, 560px) !important;
  }

  .sticky-col-1 {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    left: 0 !important;
    font-size: 0.75rem !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .sticky-col-2 {
    left: 36px !important;
    width: 108px !important;
    min-width: 108px !important;
    max-width: 108px !important;
    font-size: 0.78rem !important;
  }

  .sticky-col-3 {
    left: 144px !important;
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    font-size: 0.74rem !important;
  }
}

/* ============================================================================
   PREMIUM LOGIN PAGE
   ============================================================================ */
.login-page-wrap {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  position: relative;
  overflow: hidden;
}

.login-page-wrap::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.login-page-wrap::after {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  bottom: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.login-shell {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 1;
}

.login-hero {
  padding: 48px 40px;
  background: linear-gradient(145deg, #1e1b4b 0%, #312e81 45%, #0e7490 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
}

.login-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
}

.login-hero h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.15;
  margin: 24px 0 12px;
  font-weight: 800;
}

.login-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 360px;
}

.login-hero-features {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.login-hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
}

.login-hero-feature i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
}

.login-panel {
  padding: 44px 40px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
}

.login-panel h2 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  margin: 0 0 6px;
  font-weight: 800;
}

.login-panel .login-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 28px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.login-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.login-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.login-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 18px;
  font-size: 1rem;
  border-radius: 12px;
}

.login-hint {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.login-hint strong { color: var(--accent-cyan); }

.app-footer {
  padding: 14px 24px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-color);
}

html[data-theme="light"] .login-shell {
  background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .login-panel {
  background: #ffffff;
}

html[data-theme="light"] .login-input {
  background: #f8fafc;
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .login-hero {
    min-height: auto;
    padding: 32px 28px;
  }
  .login-hero h1 { font-size: 1.55rem; }
  .login-panel { padding: 32px 28px; }
}

/* User permissions matrix — freeze name + role while scrolling fee/report columns */
.users-matrix-scroll {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.users-permissions-matrix .users-sticky-name,
.users-permissions-matrix .users-sticky-role {
  position: sticky;
  z-index: 4;
  background-color: #0f172a !important;
  background-clip: padding-box;
  isolation: isolate;
  box-shadow: 2px 0 0 rgba(51, 65, 85, 0.65);
}

.users-permissions-matrix thead .users-sticky-name,
.users-permissions-matrix thead .users-sticky-role {
  z-index: 6;
  top: 0;
  background-color: #0f172a !important;
}

.users-permissions-matrix tbody tr .users-sticky-name,
.users-permissions-matrix tbody tr .users-sticky-role {
  background-color: #0f172a !important;
}

.users-permissions-matrix tbody tr:hover .users-sticky-name,
.users-permissions-matrix tbody tr:hover .users-sticky-role {
  background-color: #131c31 !important;
}

.users-permissions-matrix .users-sticky-name {
  left: 0;
  min-width: 170px;
}

.users-permissions-matrix .users-sticky-role {
  left: 170px;
  min-width: 210px;
  border-right: 2px solid rgba(56, 189, 248, 0.45);
}

.users-permissions-matrix .users-sticky-role .erp-role-chip {
  max-width: 190px;
  white-space: normal;
}

.users-permissions-matrix .users-teacher-mapping-cell {
  min-width: 220px;
  max-width: 260px;
  vertical-align: middle;
}

.users-teacher-mapping-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.users-teacher-mapping-summary .badge {
  white-space: normal;
  line-height: 1.25;
}


/* ============================================================================
   NATIVE MOBILE APP NAVIGATION DOCK & RESPONSIVE POLISH
   ============================================================================ */
.mobile-bottom-nav {
  display: none !important;
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  left: 14px;
  right: 14px;
  height: 74px;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055) 42%, rgba(8, 20, 46, 0.48));
  backdrop-filter: blur(26px) saturate(180%) brightness(1.12);
  -webkit-backdrop-filter: blur(26px) saturate(180%) brightness(1.12);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 38px;
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.56), inset 0 1px rgba(255,255,255,0.28), inset 0 -1px rgba(2, 6, 23, 0.24);
  isolation: isolate;
  overflow: hidden;
  z-index: 9999;
  justify-content: space-around;
  align-items: center;
  padding: 4px 6px;
  gap: 2px;
}

.mobile-bottom-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), transparent 36%);
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 1024px) {
  .sidebar {
    background: linear-gradient(155deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.76));
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-left: 0;
    border-radius: 0 24px 24px 0;
    box-shadow: 18px 0 45px rgba(2, 6, 23, 0.58), inset -1px 0 rgba(255,255,255,0.08);
  }
  .sidebar .nav-item {
    border: 1px solid transparent;
    border-radius: 14px;
    margin: 2px 10px;
  }
  .sidebar .nav-item:hover,
  .sidebar .nav-item.active {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(125, 211, 252, 0.28);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12);
  }
}

.mobile-nav-item {
  display: grid;
  grid-template-rows: 25px 18px;
  justify-items: center;
  align-content: center;
  color: #e2e8f0;
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px !important;
  font-weight: 800;
  line-height: 18px;
  gap: 4px;
  flex: 1 1 0;
  min-width: 0;
  height: 62px;
  padding: 5px 0;
  box-sizing: border-box;
  border-radius: 28px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-item .mobile-nav-icon {
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.mobile-nav-icon svg {
  display: block;
  width: 25px !important;
  height: 25px !important;
  flex: 0 0 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-nav-item[data-route="dashboard"],
.mobile-nav-item[data-route="dashboard"] .mobile-nav-icon { color: #7dd3fc; }
.mobile-nav-item[data-route="exams"],
.mobile-nav-item[data-route="exams"] .mobile-nav-icon { color: #c4b5fd; }
.mobile-nav-item[data-route="fees"],
.mobile-nav-item[data-route="fees"] .mobile-nav-icon { color: #fbbf24; }
.mobile-nav-item[data-route="attendance"],
.mobile-nav-item[data-route="attendance"] .mobile-nav-icon { color: #34d399; }
.mobile-nav-item[aria-controls="sidebar"],
.mobile-nav-item[aria-controls="sidebar"] .mobile-nav-icon { color: #f0abfc; }
.mobile-nav-item.active,
.mobile-nav-item:active,
.mobile-nav-item[aria-expanded="true"] {
  background: rgba(255,255,255,0.10);
  box-shadow: inset 0 1px rgba(255,255,255,0.14), 0 7px 18px rgba(125,211,252,0.12);
}
.mobile-nav-item > span { line-height: 18px; white-space: nowrap; color: inherit; font-weight: 800; }
.mobile-nav-item.active > span { color: inherit; }
.mobile-nav-item:focus-visible { outline: 2px solid #7dd3fc; outline-offset: -2px; }
@media (max-width: 370px) {
  .mobile-nav-item { font-size: 10px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav-item { transition: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mobile-bottom-nav { background: rgba(15,23,42,0.94); }
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex !important;
  }
  
  .content-body {
    padding-bottom: calc(102px + env(safe-area-inset-bottom, 0px)) !important;
  }
  
  .app-container {
    overflow-x: hidden;
  }

  /* Improved Mobile Touch Inputs */
  input, select, button {
    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
  }

  /* Smooth Mobile Card Layouts */
  .glass-card {
    border-radius: 16px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .kpi-card {
    padding: 12px !important;
  }

  .kpi-value {
    font-size: 1.35rem !important;
  }

  /* Full screen touch drawer on mobile */
  .sidebar.mobile-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 280px !important;
    max-width: 85vw !important;
    z-index: 99999 !important;
    background: #0f172a !important;
    box-shadow: 10px 0 40px rgba(0,0,0,0.85) !important;
    display: flex !important;
    flex-direction: column !important;
    transform: translateX(0) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  
  .mobile-close-sidebar {
    display: block !important;
  }
}


/* ============================================================================
   RESPONSIVE EXECUTIVE LOGIN PORTAL STYLES
   ============================================================================ */
.login-page-wrap {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  overflow: hidden;
}

.login-shell {
  width: 100%;
  max-width: 940px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(14, 165, 233, 0.12);
  background: #0f172a;
}

.login-hero {
  background: linear-gradient(145deg, #0b1329 0%, #1e1b4b 50%, #0f172a 100%);
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.login-hero-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.login-hero-logo-box {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}

.login-hero-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.login-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.login-hero-loc {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
}

.login-hero-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.65rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 12px 0;
  letter-spacing: -0.3px;
}

.login-hero-gradient {
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-hero-desc {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 24px 0;
}

.login-hero-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-hero-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px 14px;
  border-radius: 12px;
}

.login-hero-chip .chip-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.login-hero-chip span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
}

.login-hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 24px;
}

.login-hero-footer span {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 700;
}

.cloud-status-dot {
  color: #10b981 !important;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cloud-status-dot .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.login-panel {
  background: #0f172a;
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-panel-head h2 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.login-panel-head p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0 0 24px 0;
}

.login-field {
  margin-bottom: 16px;
}

.login-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.login-input {
  width: 100%;
  padding: 14px 16px;
  background: #1e293b;
  color: #ffffff;
  border: 1.5px solid #334155;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.login-submit {
  width: 100%;
  padding: 15px;
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 900;
  background: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35);
  cursor: pointer;
  box-sizing: border-box;
}

.login-panel-foot {
  margin-top: 24px;
  text-align: center;
}

.login-panel-foot small {
  color: #64748b;
  font-size: 0.75rem;
}

/* MOBILE PORTRAIT BREAKPOINT (<768px) */
@media (max-width: 768px) {
  .login-page-wrap {
    padding: 12px 10px !important;
    min-height: calc(100vh - 20px) !important;
    align-items: flex-start !important;
  }

  .login-shell {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 20px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .login-hero {
    padding: 24px 20px 18px !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .login-hero-header {
    margin-bottom: 12px !important;
    gap: 12px !important;
  }

  .login-hero-logo-box {
    width: 52px !important;
    height: 52px !important;
    border-radius: 12px !important;
    padding: 4px !important;
  }

  .login-hero-title {
    font-size: 1.25rem !important;
    margin-bottom: 6px !important;
  }

  .login-hero-desc,
  .login-hero-features-list,
  .login-hero-footer {
    display: none !important; /* Keep mobile screen compact and focused on login fields */
  }

  .login-panel {
    padding: 24px 20px 30px !important;
  }

  .login-panel-head h2 {
    font-size: 1.35rem !important;
    margin-bottom: 4px !important;
  }

  .login-panel-head p {
    font-size: 0.8rem !important;
    margin-bottom: 18px !important;
  }

  .login-input {
    padding: 14px 16px !important;
    font-size: 16px !important; /* Prevents auto zoom on mobile keyboard */
  }

  .login-submit {
    padding: 15px !important;
    font-size: 1rem !important;
  }
}
/* ============================================================================
   PROFESSIONAL LIGHT MOBILE TEACHER PORTAL
   Scoped to teacher-mobile-mode so the desktop ERP and existing login remain unchanged.
   ============================================================================ */
body.teacher-mobile-mode {
  background: #f4f7fb !important;
  color: #10223f;
}
body.teacher-mobile-mode .sidebar,
body.teacher-mobile-mode .top-navbar,
body.teacher-mobile-mode .mobile-bottom-nav,
body.teacher-mobile-mode .app-footer {
  display: none !important;
}
body.teacher-mobile-mode .main-wrapper {
  margin-left: 0 !important;
  min-height: 100vh;
  background: #f4f7fb !important;
}
body.teacher-mobile-mode .content-body {
  padding: 0 !important;
  max-width: none !important;
}
.teacher-mobile-page {
  min-height: 100vh;
  padding-bottom: 84px;
  background: #f4f7fb;
  color: #10223f;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}
.teacher-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 14px;
  background: #fff;
  border-bottom: 1px solid #e7edf5;
  position: sticky;
  top: 0;
  z-index: 20;
}
.teacher-mobile-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.teacher-mobile-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; background: #fff; box-shadow: 0 5px 14px rgba(38, 78, 129, .13); }
.teacher-mobile-school { font-weight: 900; font-size: .98rem; line-height: 1.15; white-space: nowrap; }
.teacher-mobile-portal { color: #3478e5; font-weight: 800; font-size: .77rem; margin-top: 4px; }
.teacher-mobile-portal span { color: #7c8da5; font-weight: 700; }
.teacher-mobile-icon-btn,
.teacher-mobile-title-action {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #e3eaf3; border-radius: 13px; background: #f8fafc; color: #3478e5;
  text-decoration: none; cursor: pointer; font-size: 1rem;
}
.teacher-mobile-icon-btn { color: #ed5d69; }
.teacher-mobile-content { max-width: 620px; margin: 0 auto; padding: 20px 16px 0; }
.teacher-mobile-content-tight { padding-top: 18px; }
.teacher-mobile-welcome { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.teacher-mobile-eyebrow { display: block; color: #75869e; font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.teacher-mobile-welcome h1 { margin: 5px 0 4px; color: #132949; font-size: 1.65rem; line-height: 1.12; letter-spacing: -.04em; }
.teacher-mobile-welcome p { margin: 0; color: #71829a; font-size: .82rem; font-weight: 600; }
.teacher-mobile-avatar { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; font-weight: 900; background: linear-gradient(135deg, #3478e5, #6c4fe8); box-shadow: 0 10px 22px rgba(52, 120, 229, .25); }
.teacher-mobile-scope-card { padding: 17px; background: linear-gradient(135deg, #296fe0, #4a62e3); border-radius: 22px; color: #fff; box-shadow: 0 13px 25px rgba(52, 97, 211, .2); margin-bottom: 23px; }
.teacher-mobile-scope-heading { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; font-weight: 900; }
.teacher-mobile-scope-heading i { margin-right: 6px; }
.teacher-mobile-live-dot { padding: 4px 8px; border-radius: 999px; color: #fff; background: rgba(255,255,255,.18); font-size: .67rem; }
.teacher-mobile-live-dot:before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #8effc8; vertical-align: 1px; }
.teacher-mobile-scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 17px 0 14px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.teacher-mobile-scope-grid div { text-align: center; border-right: 1px solid rgba(255,255,255,.18); }
.teacher-mobile-scope-grid div:last-child { border-right: 0; }
.teacher-mobile-scope-grid strong { display: block; font-size: 1.25rem; }
.teacher-mobile-scope-grid span { display: block; margin-top: 3px; opacity: .78; font-size: .66rem; font-weight: 800; }
.teacher-mobile-chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.teacher-mobile-chip { padding: 7px 10px; border-radius: 10px; color: #eaf1ff; background: rgba(255,255,255,.14); font-size: .7rem; font-weight: 800; }
.teacher-mobile-section-heading { margin: 0 1px 12px; }
.teacher-mobile-section-heading h2, .teacher-mobile-list-heading h2 { margin: 4px 0 0; color: #172c4b; font-size: 1.12rem; letter-spacing: -.03em; }
.teacher-mobile-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.teacher-mobile-action-card { min-height: 145px; display: flex; flex-direction: column; align-items: flex-start; padding: 16px; position: relative; overflow: hidden; border-radius: 19px; color: #fff; text-decoration: none; box-shadow: 0 9px 18px rgba(36, 65, 104, .12); }
.teacher-mobile-action-card.action-blue { background: linear-gradient(145deg, #4a91ee, #2866dc); }
.teacher-mobile-action-card.action-violet { background: linear-gradient(145deg, #a05cea, #7540d5); }
.teacher-mobile-action-card.action-green { background: linear-gradient(145deg, #28bd91, #079c79); }
.teacher-mobile-action-card.action-orange { background: linear-gradient(145deg, #f1aa50, #e4812d); }
.teacher-mobile-action-icon { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 15px; border-radius: 11px; color: #fff; background: rgba(255,255,255,.18); }
.teacher-mobile-action-card strong { font-size: .92rem; }
.teacher-mobile-action-card small { max-width: 130px; margin-top: 5px; opacity: .8; font-size: .68rem; line-height: 1.35; font-weight: 700; }
.teacher-mobile-action-card .action-arrow { position: absolute; right: 14px; bottom: 15px; opacity: .75; font-size: .75rem; }
.teacher-mobile-info-card { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 15px; border: 1px solid #dceafc; border-radius: 17px; background: #edf5ff; color: #315377; }
.teacher-mobile-info-icon { color: #3478e5; font-size: 1.2rem; }
.teacher-mobile-info-card strong { font-size: .78rem; }
.teacher-mobile-info-card p { margin: 5px 0 0; color: #69809c; font-size: .7rem; line-height: 1.45; font-weight: 600; }
.teacher-mobile-next-period { padding: 15px; margin-bottom: 12px; border-radius: 17px; color: #fff; background: linear-gradient(135deg, #182f5c, #3478e5); box-shadow: 0 9px 18px rgba(44,91,171,.16); }
.teacher-mobile-next-period.empty { background: #eaf2ff; color: #315377; box-shadow: none; }
.teacher-mobile-next-period-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: .69rem; font-weight: 900; }
.teacher-mobile-next-period-head i { margin-right: 5px; }
.teacher-mobile-next-period-head b { padding: 4px 8px; border-radius: 8px; color: inherit; background: rgba(255,255,255,.16); font-size: .64rem; }
.teacher-mobile-next-period strong { display: block; font-size: 1.03rem; }
.teacher-mobile-next-period small { display: block; margin-top: 5px; color: rgba(255,255,255,.75); font-size: .68rem; font-weight: 700; }
.teacher-mobile-next-period.empty small { color: #69809c; }
.teacher-mobile-push-card { display: flex; align-items: center; gap: 10px; padding: 12px 13px; margin-bottom: 20px; border: 1px solid #dce8fb; border-radius: 15px; background: #f0f6ff; color: #315377; }
.teacher-mobile-push-card > i { width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: #3478e5; background: #dceaff; }
.teacher-mobile-push-card div { min-width: 0; flex: 1; }
.teacher-mobile-push-card strong { display: block; font-size: .71rem; }
.teacher-mobile-push-card small { display: block; margin-top: 3px; color: #7187a3; font-size: .62rem; font-weight: 700; line-height: 1.35; }
.teacher-mobile-push-card button { padding: 8px 10px; border: 0; border-radius: 9px; color: #fff; background: #3478e5; font: inherit; font-size: .65rem; font-weight: 900; cursor: pointer; }
.teacher-mobile-push-card > span { padding: 4px 7px; border-radius: 7px; color: #058965; background: #d9f8eb; font-size: .62rem; font-weight: 900; }
.teacher-mobile-push-card.active { border-color: #bcebd9; color: #087e5e; background: #effcf7; }
.teacher-mobile-push-card.active > i { color: #0c9b6e; background: #d9f8eb; }
.teacher-mobile-push-card.denied { border-color: #ffd5d9; color: #b34b58; background: #fff7f8; }
.teacher-mobile-push-card.denied > i { color: #d85b68; background: #ffe3e6; }
.teacher-mobile-notice-card { padding: 14px; margin-bottom: 21px; border: 1px solid #e3eaf3; border-radius: 17px; background: #fff; box-shadow: 0 6px 16px rgba(45,72,105,.05); }
.teacher-mobile-notice-card .teacher-mobile-list-heading { margin-bottom: 8px; }
.teacher-mobile-notice-card .teacher-mobile-list-heading h2 { font-size: .92rem; }
.teacher-mobile-notice-card .teacher-mobile-list-heading span { color: #8292a8; font-size: .62rem; font-weight: 800; }
.teacher-mobile-notice-card article { display: flex; gap: 9px; padding: 9px 0; border-top: 1px solid #edf1f6; }
.teacher-mobile-notice-card article:first-of-type { border-top: 0; }
.teacher-mobile-notice-card article > div { min-width: 0; flex: 1; }
.teacher-mobile-notice-icon { width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 31px; border-radius: 10px; color: #e28b24; background: #fff3dd; font-size: .7rem; }
.teacher-mobile-notice-card article strong { display: block; color: #2d4667; font-size: .7rem; }
.teacher-mobile-notice-card article p { margin: 3px 0 0; overflow: hidden; color: #71849d; font-size: .65rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.teacher-mobile-notice-card article small { display: block; margin-top: 4px; color: #9aa8b8; font-size: .59rem; font-weight: 800; }
.teacher-mobile-page-title { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.teacher-mobile-page-title > a:first-child { color: #56708e; font-size: 1rem; text-decoration: none; }
.teacher-mobile-page-title h1 { margin: 3px 0 0; color: #162e50; font-size: 1.35rem; letter-spacing: -.04em; }
.teacher-mobile-page-title > div { flex: 1; }
.teacher-mobile-title-count { padding: 7px 9px; border-radius: 9px; color: #3478e5; background: #eaf2ff; font-size: .68rem; font-weight: 900; }
.teacher-mobile-filter-card, .teacher-mobile-publish-card { padding: 16px; margin-bottom: 15px; border: 1px solid #e2eaf3; border-radius: 19px; background: #fff; box-shadow: 0 7px 18px rgba(45, 72, 105, .06); }
.teacher-mobile-filter-card { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.teacher-mobile-filter-card label, .teacher-mobile-publish-card label { color: #6d7f98; font-size: .69rem; font-weight: 900; }
.teacher-mobile-filter-card select, .teacher-mobile-filter-card input, .teacher-mobile-publish-card select, .teacher-mobile-publish-card input, .teacher-mobile-publish-card textarea { width: 100%; box-sizing: border-box; min-height: 43px; padding: 10px 11px; border: 1px solid #dbe4ef; border-radius: 11px; color: #18304f; background: #f8fafc; font: inherit; font-size: .78rem; font-weight: 700; outline: none; }
.teacher-mobile-filter-card select, .teacher-mobile-filter-card input { min-width: 0; }
.teacher-mobile-filter-card select:focus, .teacher-mobile-filter-card input:focus, .teacher-mobile-publish-card select:focus, .teacher-mobile-publish-card input:focus, .teacher-mobile-publish-card textarea:focus { border-color: #5f94eb; box-shadow: 0 0 0 3px rgba(95,148,235,.12); }
.teacher-mobile-attendance-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.teacher-mobile-attendance-summary div { padding: 12px 4px; text-align: center; border: 1px solid #e4ebf4; border-radius: 13px; background: #fff; }
.teacher-mobile-attendance-summary strong { display: block; color: #1a3456; font-size: 1.05rem; }
.teacher-mobile-attendance-summary span { display: block; margin-top: 3px; color: #7a8da6; font-size: .62rem; font-weight: 800; }
.teacher-mobile-inline-leaves { margin-bottom: 19px; padding: 13px; border: 1px solid #e4ebf4; border-radius: 16px; background: #fff; }
.teacher-mobile-inline-leaves .teacher-mobile-list-heading { margin: 0 1px 9px; }
.teacher-mobile-inline-leaves .teacher-mobile-list-heading h2 { font-size: .92rem; }
.teacher-mobile-inline-leaves .teacher-mobile-list-heading a { color: #3478e5; font-size: .66rem; font-weight: 900; text-decoration: none; }
.teacher-mobile-inline-leave-list { display: flex; flex-direction: column; gap: 7px; }
.teacher-mobile-inline-leave { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 11px; color: inherit; background: #f8fafc; text-decoration: none; }
.teacher-mobile-inline-leave > span:nth-child(2) { min-width: 0; flex: 1; }
.teacher-mobile-inline-leave strong { display: block; overflow: hidden; color: #2d4667; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.teacher-mobile-inline-leave small { display: block; margin-top: 2px; color: #8292a8; font-size: .61rem; font-weight: 700; }
.teacher-mobile-inline-none { padding: 10px; color: #8292a8; font-size: .68rem; font-weight: 700; text-align: center; }
.teacher-mobile-list-heading { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin: 0 2px 10px; }
.teacher-mobile-list-heading span { color: #7b8da4; font-size: .68rem; font-weight: 800; }
.teacher-mobile-student-list, .teacher-mobile-request-list, .teacher-mobile-homework-list { display: flex; flex-direction: column; gap: 9px; }
.teacher-mobile-student-row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #e3eaf3; border-radius: 15px; background: #fff; }
.teacher-mobile-student-number { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; flex: 0 0 30px; border-radius: 10px; color: #3478e5; background: #eaf2ff; font-size: .7rem; font-weight: 900; }
.teacher-mobile-student-main { min-width: 0; flex: 1; }
.teacher-mobile-student-main strong, .teacher-mobile-request-top strong, .teacher-mobile-homework-top strong { display: block; overflow: hidden; color: #1d3555; font-size: .79rem; text-overflow: ellipsis; white-space: nowrap; }
.teacher-mobile-student-main small, .teacher-mobile-request-top small, .teacher-mobile-homework-top small { display: block; margin-top: 4px; overflow: hidden; color: #8292a8; font-size: .65rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.teacher-mobile-status-buttons { display: flex; gap: 5px; }
.teacher-mobile-status-buttons button { width: 35px; height: 35px; border: 1px solid #dce5ef; border-radius: 10px; color: #8090a7; background: #f8fafc; font-size: .75rem; font-weight: 900; cursor: pointer; }
.teacher-mobile-status-buttons button.selected-present { border-color: #21bd88; color: #fff; background: #21bd88; }
.teacher-mobile-status-buttons button.selected-absent { border-color: #ee6971; color: #fff; background: #ee6971; }
.teacher-mobile-primary-btn { width: 100%; min-height: 48px; margin-top: 17px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #3478e5, #4c63df); box-shadow: 0 9px 19px rgba(52,120,229,.2); font: inherit; font-size: .82rem; font-weight: 900; cursor: pointer; }
.teacher-mobile-primary-btn:disabled { opacity: .65; cursor: wait; }
.teacher-mobile-request-card, .teacher-mobile-homework-card { padding: 14px; border: 1px solid #e3eaf3; border-radius: 17px; background: #fff; box-shadow: 0 6px 16px rgba(45,72,105,.05); }
.teacher-mobile-request-top, .teacher-mobile-homework-top { display: flex; align-items: center; gap: 9px; }
.teacher-mobile-request-top > div:nth-child(2), .teacher-mobile-homework-top > div { flex: 1; min-width: 0; }
.teacher-mobile-student-avatar, .teacher-mobile-subject-icon { width: 35px; height: 35px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 35px; border-radius: 11px; color: #3478e5; background: #eaf2ff; font-size: .78rem; font-weight: 900; }
.teacher-mobile-subject-icon { color: #8251da; background: #f2eaff; }
.teacher-mobile-status-pill { padding: 5px 7px; border-radius: 8px; font-size: .61rem; font-weight: 900; }
.teacher-mobile-status-pill.pending { color: #b46b00; background: #fff3d9; }
.teacher-mobile-status-pill.approved { color: #0c9467; background: #dcf8ed; }
.teacher-mobile-status-pill.rejected { color: #d64d58; background: #ffeaed; }
.teacher-mobile-request-dates { display: flex; align-items: center; gap: 13px; margin: 14px 0 10px; padding: 10px; border-radius: 11px; background: #f7f9fc; }
.teacher-mobile-request-dates > div { flex: 1; }
.teacher-mobile-request-dates i { color: #9aabc0; font-size: .7rem; }
.teacher-mobile-request-dates small { display: block; color: #8292a8; font-size: .62rem; font-weight: 800; }
.teacher-mobile-request-dates strong { display: block; margin-top: 3px; color: #2d4667; font-size: .72rem; }
.teacher-mobile-request-reason, .teacher-mobile-homework-card p { margin: 9px 0 0; color: #627892; font-size: .72rem; line-height: 1.5; font-weight: 600; }
.teacher-mobile-request-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.teacher-mobile-request-actions button { min-height: 38px; border-radius: 10px; font: inherit; font-size: .7rem; font-weight: 900; cursor: pointer; }
.teacher-mobile-request-actions .approve { border: 1px solid #b7ead8; color: #078d65; background: #edfcf7; }
.teacher-mobile-request-actions .reject { border: 1px solid #ffd0d5; color: #d3525c; background: #fff5f6; }
.teacher-mobile-publish-heading { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.teacher-mobile-publish-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: #8251da; background: #f2eaff; }
.teacher-mobile-publish-heading h2 { margin: 0; color: #1b3454; font-size: .94rem; }
.teacher-mobile-publish-heading p { margin: 3px 0 0; color: #8494a9; font-size: .68rem; font-weight: 700; }
.teacher-mobile-publish-card form { display: grid; gap: 7px; }
.teacher-mobile-publish-card label span { color: #9aa8b8; font-weight: 700; }
.teacher-mobile-publish-card textarea { resize: vertical; min-height: 92px; }
.teacher-mobile-homework-top > span:last-child { color: #8292a8; font-size: .62rem; font-weight: 800; white-space: nowrap; }
.teacher-mobile-homework-card a { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: #3478e5; font-size: .7rem; font-weight: 900; text-decoration: none; }
.teacher-mobile-loading, .teacher-mobile-empty, .teacher-mobile-error { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 35px 15px; text-align: center; border: 1px dashed #d7e1ed; border-radius: 16px; background: rgba(255,255,255,.65); }
.teacher-mobile-loading { color: #5d7da7; font-size: .75rem; font-weight: 800; }
.teacher-mobile-empty i, .teacher-mobile-error i { margin-bottom: 4px; color: #9aabc0; font-size: 1.5rem; }
.teacher-mobile-empty strong, .teacher-mobile-error strong { color: #45617f; font-size: .8rem; }
.teacher-mobile-empty span, .teacher-mobile-error span { color: #8292a8; font-size: .68rem; font-weight: 700; }
.teacher-mobile-error { color: #b94d5a; border-color: #ffd0d5; background: #fff8f8; }
.teacher-mobile-error i { color: #e16b76; }
.teacher-mobile-empty-small { padding: 22px 12px; }
.teacher-mobile-bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 50; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 620px; margin: 0 auto; padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid #e6edf5; background: rgba(255,255,255,.96); box-shadow: 0 -8px 22px rgba(33,60,96,.08); }
.teacher-mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #91a0b5; font-size: .62rem; font-weight: 900; text-decoration: none; }
.teacher-mobile-bottom-nav a i { font-size: 1rem; }
.teacher-mobile-bottom-nav a.active { color: #3478e5; }
@media (min-width: 769px) {
  body.teacher-mobile-mode .teacher-mobile-page { max-width: 620px; margin: 0 auto; box-shadow: 0 0 32px rgba(45,72,105,.08); }
  body.teacher-mobile-mode .teacher-mobile-header { max-width: 584px; margin: 0 auto; }
}
@media (max-width: 410px) {
  .teacher-mobile-content { padding-right: 13px; padding-left: 13px; }
  .teacher-mobile-action-card { min-height: 138px; padding: 14px; }
  .teacher-mobile-action-card strong { font-size: .85rem; }
  .teacher-mobile-filter-card { grid-template-columns: 1fr; }
}
