/* Modern Modern Design System for Attendance SaaS (Bengali & English UI) */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.25);
  
  --secondary: #0f172a;
  --secondary-light: #1e293b;
  
  --accent: #6366f1;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.35);
  
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Hind Siliguri', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

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

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.page {
  display: none;
  min-height: 100vh;
}

.page.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons System */
.btn {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-main);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 17px;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.glow-effect {
  position: relative;
  overflow: hidden;
}

.glow-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.glow-effect:hover::after {
  opacity: 1;
}

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

.badge-active { background: #dcfce7; color: #15803d; }
.badge-trial { background: #fef3c7; color: #b45309; }
.badge-suspended { background: #fee2e2; color: #b91c1c; }

/* Navbar */
.navbar {
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.5px;
}

.logo-highlight {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
}

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

/* Hero Section */
.hero {
  padding: 100px 0 80px;
  background: radial-gradient(circle at 50% 0%, #eff6ff 0%, #f8fafc 70%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: rgba(37, 99, 235, 0.12);
  top: -100px;
  left: 10%;
}

.shape-2 {
  width: 350px;
  height: 350px;
  background: rgba(99, 102, 241, 0.12);
  top: 50px;
  right: 10%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero h1 {
  font-size: 50px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px 36px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 860px;
  margin: 0 auto;
}

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

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-color);
}

/* Features Section */
.features {
  padding: 100px 0;
  background: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 36px;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
  background: #ffffff;
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-blue { background: #dbeafe; color: #2563eb; }
.icon-green { background: #d1fae5; color: #059669; }
.icon-purple { background: #ede9fe; color: #7c3aed; }
.icon-amber { background: #fef3c7; color: #d97706; }
.icon-rose { background: #ffe4e6; color: #e11d48; }
.icon-cyan { background: #cffaff; color: #0891b2; }

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Pricing Section */
.pricing {
  padding: 100px 0;
  background: var(--bg-main);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: center;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  transition: var(--transition-normal);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: scale(1.03);
}

.popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.pricing-header h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.price {
  font-size: 42px;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
}

.price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-header p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
}

/* FAQ Section */
.faq {
  padding: 90px 0;
  background: #ffffff;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-question {
  padding: 20px 24px;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  font-weight: 600;
}

.faq-icon {
  font-size: 24px;
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0, 1, 0, 1);
  color: var(--text-muted);
  font-size: 15px;
}

.faq-item.open .faq-answer {
  padding: 0 24px 20px;
  max-height: 300px;
  transition: all 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* Footer */
.footer {
  background: var(--secondary);
  color: #ffffff;
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-light);
  margin-top: 16px;
  max-width: 360px;
}

.footer-links h4 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 17px;
}

.footer-links a {
  display: block;
  color: var(--text-light);
  margin-bottom: 10px;
  font-size: 15px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--secondary-light);
  padding-top: 24px;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}

/* Auth Cards */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: radial-gradient(circle at 50% 0%, #eff6ff 0%, #f8fafc 80%);
}

.auth-card {
  background: #ffffff;
  padding: 44px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--border-color);
}

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

.auth-header h2 {
  font-size: 26px;
  margin: 16px 0 6px;
}

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

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition-fast);
  background: #ffffff;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.error-message {
  color: var(--danger);
  font-size: 14px;
  margin-bottom: 16px;
  min-height: 20px;
}

.auth-divider {
  text-align: center;
  margin: 24px 0;
  position: relative;
  color: var(--text-light);
  font-size: 13px;
}

.auth-divider::before, .auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--border-color);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

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

/* Dashboard Layout */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 270px;
  background: var(--secondary);
  color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 1px solid var(--secondary-light);
}

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

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 20px;
  cursor: pointer;
  display: none;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-nav::-webkit-scrollbar {
  display: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #f1f5f9;
  border-radius: var(--radius-md);
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-item svg {
  stroke: #cbd5e1;
  transition: stroke 0.2s ease;
}

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

.nav-item:hover svg {
  stroke: #ffffff;
}

.nav-item.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

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

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--secondary-light);
}

.trial-badge-box {
  background: #fef3c7;
  color: #b45309;
  padding: 10px;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.main-content {
  flex: 1;
  margin-left: 270px;
  background: var(--bg-main);
  min-height: 100vh;
}

.top-bar {
  height: 72px;
  padding: 0 32px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}

/* Sleek Filter Bar - Single Horizontal Row Layout */
.filter-bar, .filter-box {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  background: #ffffff !important;
  padding: 14px 20px !important;
  border-radius: 12px !important;
  border: 1px solid var(--border-color) !important;
  margin-bottom: 20px !important;
}

.filter-bar input,
.filter-bar select,
.filter-box input,
.filter-box select {
  width: auto !important;
  min-width: 150px !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
}
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-bar h1 {
  font-size: 22px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-display {
  font-weight: 600;
  font-size: 15px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.content-area {
  padding: 32px;
}

.section {
  display: none;
}

.section.active {
  display: block;
  animation: fadeIn 0.2s ease-in;
}

/* Cards & Stats */
.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.stat-card .stat-value {
  font-size: 32px;
  font-weight: 800;
}

.stat-card .stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-card.primary .stat-value { color: var(--primary); }
.stat-card.success .stat-value { color: var(--success); }
.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.danger .stat-value { color: var(--danger); }

/* Data Tables */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

th, td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

tr:hover {
  background: #f8fafc;
}

/* Modals & Scrollable Dialogs */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}

.modal {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 540px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  margin: auto;
  position: relative;
}

.modal h2 {
  font-size: 22px;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
}

/* Modern Form Inputs & Select Controls (Matching Image 2 Style) */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="time"],
input[type="date"],
input[type="month"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
  font-size: 14px;
}

/* Collapsible Sidebar Styles */
.sidebar {
  width: 270px;
  background: var(--secondary);
  color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 1px solid var(--secondary-light);
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-header {
  height: 72px;
  padding: 0 20px;
  background: var(--secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  z-index: 1;
}

.sidebar-nav::-webkit-scrollbar {
  display: none;
}

.main-content {
  transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed {
  width: 72px;
}

.sidebar.collapsed .sidebar-header {
  height: 72px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  z-index: 20;
}

.sidebar.collapsed .sidebar-header .logo-group {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .logo-highlight,
.sidebar.collapsed .sidebar-nav .nav-item span,
.sidebar.collapsed .sidebar-footer {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

.sidebar.collapsed .sidebar-school-icon {
  width: 28px !important;
  height: 28px !important;
  display: block !important;
  margin: 0 auto;
}

.sidebar.collapsed .sidebar-nav {
  padding: 16px 6px;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 14px 0;
  gap: 0;
  border-radius: 12px;
}

.sidebar.collapsed .nav-item svg {
  width: 22px;
  height: 22px;
}

.main-content.expanded {
  margin-left: 72px;
}

/* Action Dropdown Menu for Compact Table Rows */
.action-dropdown {
  position: relative;
  display: inline-block;
}

.action-dropdown-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.action-dropdown-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.action-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: #ffffff;
  min-width: 150px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 500;
  overflow: hidden;
}

.action-dropdown-content.show {
  display: block;
  animation: fadeIn 0.15s ease-out;
}

.action-dropdown-content button,
.action-dropdown-content a {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.15s;
}

.action-dropdown-content button:hover,
.action-dropdown-content a:hover {
  background: var(--bg-main);
}

.action-dropdown-content button.danger-item {
  color: var(--danger);
}

.action-dropdown-content button.danger-item:hover {
  background: #fee2e2;
}

/* Responsive UI */
@media (max-width: 900px) {
  .hero h1 { font-size: 36px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat-divider { width: 100%; height: 1px; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .menu-toggle, .sidebar-toggle { display: block; }
  .nav-links { display: none; }
  .footer-content { grid-template-columns: 1fr; gap: 36px; }
}
