/* =============================================
   MediEdu - Modern Medical Education Theme
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary:      #0a5c53; /* Deep Teal */
  --primary-dk:   #063c36;
  --primary-lt:   #e6f4f2;
  --accent:       #f59e0b; /* Amber */
  --accent-lt:    #fef3c7;
  --teal-accent:  #0d9488; /* Bright Teal */
  --teal-lt:      #f0fdfa;
  --dark:         #0f172a; /* Slate Dark */
  --slate:        #334155;
  --muted:        #64748b;
  --border:       #e2e8f0;
  --border-dk:    #cbd5e1;
  --bg:           #f8fafc;
  --white:        #ffffff;
  --shadow-sm:    0 2px 4px rgba(10, 92, 83, 0.04), 0 1px 2px rgba(10, 92, 83, 0.02);
  --shadow:       0 10px 25px -5px rgba(10, 92, 83, 0.06), 0 8px 10px -6px rgba(10, 92, 83, 0.03);
  --shadow-lg:    0 20px 25px -5px rgba(10, 92, 83, 0.08), 0 10px 10px -6px rgba(10, 92, 83, 0.04);
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    20px;
  --radius-xl:    32px;
}

body {
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  font-size: 15px;
}

a { color: var(--primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--primary-dk); }
img { max-width: 100%; display: block; }

/* Responsive Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header/Top Bar */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
}
.site-header .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-area img {
  height: 42px;
  width: auto;
}
.logo-text h1 {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.5px;
}
.logo-text p {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Desktop Navigation Links */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 24px;
}
.desktop-nav-link {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--slate);
  transition: color 0.2s;
}
.desktop-nav-link:hover {
  color: var(--primary);
}
.desktop-auth-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Header actions (Mobile) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-actions .bell-btn {
  font-size: 20px;
  color: var(--slate);
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}
.header-actions .bell-btn::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 1.5px solid var(--white);
}
.header-actions .hamburger-btn {
  font-size: 20px;
  color: var(--slate);
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 48px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.hero-badge {
  display: inline-block;
  background: var(--primary-lt);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-title {
  font-size: 36px;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero-desc {
  font-size: 16px;
  color: var(--slate);
  margin-bottom: 28px;
  max-width: 540px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.btn, .btn-primary, .btn-success, .btn-secondary, .btn-outline, .btn-now, .btn-danger, .btn-warning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius, 8px);
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: inherit;
  vertical-align: middle;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: var(--white) !important;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(8, 75, 131, 0.15);
}
.btn-primary:hover {
  background: var(--primary-dk);
  border-color: var(--primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(8, 75, 131, 0.25);
}

.btn-success {
  background: #10b981;
  color: var(--white) !important;
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}
.btn-success:hover {
  background: #059669;
  border-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-lt);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--white);
  color: var(--slate);
  border-color: var(--border-dk);
}
.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--slate);
  transform: translateY(-2px);
}
.trust-element {
  display: flex;
  align-items: center;
  gap: 12px;
}
.student-avatars {
  display: flex;
  align-items: center;
}
.student-avatars img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--white);
  margin-left: -10px;
}
.student-avatars img:first-child {
  margin-left: 0;
}
.rating-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate);
}
.rating-info .stars {
  color: #f59e0b;
}
.hero-illustration {
  margin-top: 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-illustration img {
  width: 100%;
  height: auto;
}

/* Key Statistics */
.stats-section {
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.stat-card {
  text-align: center;
  padding: 12px;
}
.stat-card .stat-icon {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 8px;
}
.stat-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
}
.stat-card p {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* Main Categories */
.categories-section {
  padding: 40px 0;
}
.section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 24px;
  text-align: center;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary-lt);
}
.category-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 20px;
}
.category-card p {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate);
}

/* Soft colors for category icons */
.icon-courses { background: #e0f2fe; color: #0284c7; }
.icon-notes { background: #dcfce7; color: #16a34a; }
.icon-flashcards { background: #fee2e2; color: #dc2626; }
.icon-mocktests { background: #e0f2f1; color: #0f766e; }
.icon-qna { background: #e0e7ff; color: #4f46e5; }
.icon-blog { background: #f3e8ff; color: #9333ea; }
.icon-notice { background: #fef3c7; color: #d97706; }
.icon-consultancy { background: #fae8ff; color: #c084fc; }

/* Top Courses Preview */
.courses-section {
  padding: 40px 0;
}
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.section-header-flex h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
}
.view-all-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.courses-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.courses-scroller::-webkit-scrollbar {
  height: 6px;
}
.courses-scroller::-webkit-scrollbar-track {
  background: var(--border);
}
.courses-scroller::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}
.mini-course-card {
  min-width: 280px;
  width: 280px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.mini-course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.mini-course-thumb {
  height: 150px;
  background: #004d40;
  position: relative;
  overflow: hidden;
}
.mini-course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mini-course-body {
  padding: 20px;
}
.mini-course-body h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}
.mini-course-body p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.progress-container {
  margin-top: 12px;
}
.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
}
.progress-text {
  font-size: 11px;
  color: var(--slate);
  font-weight: 700;
  margin-top: 6px;
  display: block;
}

/* Motivation Banner */
.motivation-banner {
  margin: 32px 0;
  background: linear-gradient(135deg, #e6f4f2 0%, #f0fdfa 100%);
  border: 1px solid #ccede8;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}
.motivation-banner .trophy-icon {
  font-size: 48px;
  color: var(--accent);
}
.motivation-banner h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}
.motivation-banner p {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 16px;
}
.btn-sm-accent {
  background: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-sm-accent:hover {
  background: var(--primary-dk);
}

/* Upcoming Mock Test */
.mocktest-section {
  padding: 32px 0;
}
.mocktest-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  align-items: stretch;
}
.mocktest-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.mocktest-icon {
  font-size: 32px;
  color: var(--primary);
}
.mocktest-details h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}
.mocktest-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}
.mocktest-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-now {
  background: var(--primary);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
}
.btn-now:hover {
  background: var(--primary-dk);
}

/* Recent Blog Posts */
.blog-section {
  padding: 32px 0;
}
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.blog-item {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.blog-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.blog-item img {
  width: 90px;
  height: 90px;
  border-radius: var(--radius);
  object-fit: cover;
}
.blog-item-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
.blog-item-details h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.4;
}
.blog-item-details .date {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* Q&A / Community CTA */
.qna-section {
  padding: 32px 0;
}
.qna-banner {
  background: linear-gradient(135deg, #e6f4f2 0%, #f0fdfa 100%);
  border: 1px solid #ccede8;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.qna-content {
  max-width: 75%;
  z-index: 2;
}
.qna-content h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}
.qna-content p {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 16px;
}
.qna-graphic {
  position: absolute;
  right: 16px;
  bottom: -20px;
  font-size: 100px;
  color: rgba(10, 92, 83, 0.06);
  z-index: 1;
}

/* Footer Links & Info */
.site-footer {
  background: var(--primary-dk);
  color: #cbd5e1;
  padding: 56px 0 28px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.footer-col h4 {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col a {
  color: #cbd5e1;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--accent);
}
.social-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: white;
  font-size: 18px;
}
.social-links a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 36px;
  font-size: 13px;
  color: #94a3b8;
}

/* Mobile Bottom Navigation Bar (Hidden on desktop) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
  gap: 3px;
}
.bottom-nav-item i {
  font-size: 18px;
}
.bottom-nav-item.active {
  color: var(--primary);
}

/* Modal Styling */
.premium-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.premium-modal.open {
  display: flex;
}
.premium-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}
.premium-modal-content {
  position: relative;
  background: var(--white);
  width: 100%;
  max-width: 550px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 10001;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.premium-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  background: var(--bg);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  z-index: 10;
  transition: all 0.2s;
}
.premium-modal-close:hover {
  background: #f1f5f9;
  color: var(--primary);
}
.premium-modal-header-block {
  background: var(--primary);
  color: var(--white);
  padding: 32px 24px;
}
.premium-modal-header-block h2 {
  font-size: 20px;
  font-weight: 800;
  margin-top: 6px;
  color: var(--white);
  line-height: 1.3;
}
.premium-modal-header-block .modal-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-lt);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.premium-modal-body-block {
  padding: 24px;
  overflow-y: auto;
  font-size: 14.5px;
  color: var(--slate);
}

/* Table format in Modal */
.modal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.modal-table th, .modal-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.modal-table th {
  background: var(--bg);
  font-weight: 700;
  font-size: 13.5px;
}

/* Sidebar overlay navigation */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--white);
  z-index: 1001;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.mobile-sidebar.open {
  right: 0;
}
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.sidebar-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}
.sidebar-close {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-link-item {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  display: none;
}
.sidebar-overlay.open {
  display: block;
}

/* =============================================
   Responsive Design & Desktop View Media Queries
   ============================================= */
@media (max-width: 767px) {
  body {
    padding-bottom: 72px; /* Space for bottom navigation bar on mobile */
  }
}

@media (min-width: 768px) {
  /* Hide Mobile Bottom Nav */
  .bottom-nav {
    display: none;
  }
  
  /* Header adjustments */
  .desktop-nav {
    display: flex;
  }
  .header-actions .hamburger-btn {
    display: none;
  }
  
  /* Hero Section Grid */
  .hero-section .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
  }
  .hero-title {
    font-size: 44px;
  }
  .hero-illustration {
    margin-top: 0;
  }
  
  /* Statistics 4 Columns */
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 24px 32px;
  }
  
  /* Categories 4 Columns */
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  
  /* Courses Grid (Instead of scroller) */
  .courses-scroller {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    overflow-x: visible;
  }
  .mini-course-card {
    width: 100%;
    min-width: 0;
  }
  
  /* Motivation Banner */
  .motivation-banner {
    flex-direction: row;
    text-align: left;
    align-items: center;
    padding: 32px 48px;
  }
  .motivation-banner .trophy-icon {
    font-size: 56px;
  }
  .motivation-banner p {
    margin-bottom: 0;
  }
  .motivation-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 24px;
  }
  
  /* Upcoming Mock Test Card */
  .mocktest-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .btn-now {
    min-width: 140px;
  }
  
  /* Blog grid */
  .blog-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .blog-item {
    flex-direction: column;
    height: 100%;
  }
  .blog-item img {
    width: 100%;
    height: 180px;
  }
  
  /* Q&A Section */
  .qna-banner {
    padding: 48px;
  }
  .qna-content {
    max-width: 60%;
  }
  
  /* Footer Grid */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
  }
}

/* =============================================
   Authentication Pages Styling
   ============================================= */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}
.auth-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 420px;
}
.auth-logo-top {
  text-align: center;
  margin-bottom: 24px;
}
.auth-logo-top img {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
}
.auth-logo-top h1 {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
}
.auth-logo-top p {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--slate);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-dk);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--white);
  color: var(--dark);
  font-family: inherit;
  transition: all 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 92, 83, 0.12);
}
.form-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13.5px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.alert-success {
  background: var(--teal-lt);
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.alert-info {
  background: var(--primary-lt);
  color: var(--primary-dk);
  border: 1px solid #b2f5ea;
}
.strength-bar {
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  margin-top: 6px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width .3s, background .3s;
}
.strength-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}

/* =============================================
   Countdown Timer Styling
   ============================================= */
.imat-countdown {
  display: flex;
  gap: 16px;
  margin-top: 0;
  flex-wrap: wrap;
}
.countdown-item {
  background: var(--primary-lt);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  text-align: center;
  min-width: 88px;
  box-shadow: var(--shadow-sm);
}
.countdown-item .num {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 4px;
}
.countdown-item .label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--primary-dk);
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* =============================================
   Dedicated Countdown Banner Styling
   ============================================= */
.imat-countdown-banner {
  background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.countdown-banner-content {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.countdown-banner-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.countdown-banner-header .banner-badge {
  background: var(--primary);
  color: var(--white);
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}
.countdown-banner-header h2 {
  font-size: 30px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 10px;
  font-family: var(--font-display);
}
.countdown-banner-header p {
  font-size: 14.5px;
  color: var(--slate);
  font-weight: 600;
}
.countdown-banner-footer {
  margin-top: 8px;
}

/* =============================================
   Premium Hero Section Styling (IMAT 2026 Layout)
   ============================================= */
.premium-hero {
  background: radial-gradient(circle at 80% 20%, rgba(10, 92, 83, 0.04) 0%, var(--bg) 100%);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}
.hero-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 992px) {
  .hero-grid-layout {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 48px;
  }
}
.hero-badge-premium {
  background: var(--teal-lt);
  color: var(--primary);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.05em;
  border: 1px solid rgba(10, 92, 83, 0.1);
  margin-bottom: 16px;
}
.imat-title-group {
  margin-bottom: 24px;
}
.imat-main-title {
  font-size: 44px;
  font-weight: 900;
  color: var(--primary-dk);
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .imat-main-title {
    font-size: 64px;
  }
}
.imat-main-title .year-highlight {
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.stethoscope-icon {
  font-size: 0.555em;
  color: var(--accent);
  opacity: 0.95;
  transform: rotate(-10deg);
}
.imat-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate);
  margin-top: 4px;
}
@media (min-width: 768px) {
  .imat-subtitle {
    font-size: 24px;
  }
}
.dates-divider-container {
  display: flex;
  align-items: center;
  margin: 28px 0 20px;
}
.dates-divider-container::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: 12px;
}
.divider-label {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--slate);
  letter-spacing: 0.08em;
}

/* Important Dates Grid */
.important-dates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
@media (min-width: 576px) {
  .important-dates-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.date-card, .date-card-highlighted {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}
.date-card:hover, .date-card-highlighted:hover {
  transform: translateY(-2px);
}
.date-card-highlighted {
  border-color: var(--primary);
  background: var(--primary-lt);
}
.date-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.bg-teal {
  background: var(--teal-lt);
  color: var(--primary);
}
.bg-primary-solid {
  background: var(--primary);
  color: var(--white);
}
.date-details {
  display: flex;
  flex-direction: column;
}
.date-details .label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}
.date-card-highlighted .date-details .label {
  color: var(--primary-dk);
}
.date-details .val {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

/* Exam Structure Strip */
.exam-structure-strip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
@media (min-width: 768px) {
  .exam-structure-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 992px) {
  .exam-structure-strip {
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
  }
}
.structure-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (min-width: 992px) {
  .structure-item {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}
.bg-circle-dark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-dk);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.item-icon {
  font-size: 18px;
  color: var(--primary);
}
.structure-item .text {
  display: flex;
  flex-direction: column;
}
.structure-item .num {
  font-size: 15px;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.1;
}
.structure-item .lbl {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--slate);
  line-height: 1.2;
}

/* Eligibility Banner */
.eligibility-banner {
  background: var(--bg);
  border: 1px dashed var(--border-dk);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eligibility-banner .el-icon {
  font-size: 18px;
  color: var(--primary);
}
.eligibility-banner .el-text {
  font-size: 12.5px;
  color: var(--slate);
  margin: 0;
  line-height: 1.4;
}

/* Scoring System Card */
.scoring-system-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  border-top: 4px solid var(--primary);
}
.scoring-system-card .card-header {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.scoring-system-card .tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--slate);
  letter-spacing: 0.06em;
}
.scoring-rates-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
@media (min-width: 576px) {
  .scoring-rates-row {
    flex-direction: row;
    justify-content: space-between;
  }
}
.rate-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rate-item .icon-circle {
  font-size: 18px;
}
.success-icon { color: #059669; }
.danger-icon { color: #dc2626; }
.neutral-icon { color: var(--muted); }
.val-group {
  display: flex;
  flex-direction: column;
}
.val-group .pts {
  font-size: 15px;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.1;
}
.val-group .lbl {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 600;
}
.max-score-badge {
  background: var(--primary-dk);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
}
.hero-graphic-desktop {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero-graphic-desktop img {
  width: 100%;
  height: auto;
  display: block;
}

/* =============================================
   IMAT 2026/27 Seats Increasing Hero Styles
   ============================================= */
.imat-seats-hero {
  background: radial-gradient(circle at 10% 20%, rgba(10, 92, 83, 0.02) 0%, rgba(248, 250, 252, 0.8) 100%);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.seats-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 992px) {
  .seats-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }
}
.badge-imat-year-wrapper {
  margin-bottom: 16px;
}
.badge-imat-year {
  display: inline-block;
  border: 1px solid rgba(10, 92, 83, 0.3);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-dk);
  background: rgba(10, 92, 83, 0.03);
  letter-spacing: 0.02em;
}
.seats-title {
  font-size: 40px;
  font-weight: 800;
  color: #0c2340; /* Dark premium blue */
  line-height: 1.15;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
@media (min-width: 768px) {
  .seats-title {
    font-size: 52px;
  }
}
.seats-title .teal-highlight {
  color: #0b5c53; /* Official brand teal */
}
.title-underline {
  width: 64px;
  height: 4px;
  background: #0b5c53;
  border-radius: 2px;
  margin-bottom: 24px;
}
.seats-desc {
  font-size: 17px;
  line-height: 1.5;
  color: #4b5563;
  margin-bottom: 32px;
  font-weight: 500;
}
@media (min-width: 768px) {
  .seats-desc {
    font-size: 19px;
  }
}

/* Seats stats card */
.seats-stats-card {
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 520px;
  margin-bottom: 36px;
}
.stats-left, .stats-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.stats-left {
  flex: 1.2;
}
.stats-right {
  flex: 1;
}
.stats-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(10, 92, 83, 0.08);
  color: #0b5c53;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stats-numbers {
  display: flex;
  flex-direction: column;
}
.stats-numbers .val {
  font-size: 36px;
  font-weight: 800;
  color: #0b5c53;
  line-height: 1;
}
.stats-numbers .lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.stats-divider-line {
  width: 1px;
  height: 56px;
  background: #e2e8f0;
}
.trend-icon-wrapper {
  font-size: 24px;
  color: #10b981; /* Emerald trend green */
}
.trend-numbers {
  display: flex;
  flex-direction: column;
}
.trend-numbers .trend-val {
  font-size: 24px;
  font-weight: 800;
  color: #10b981;
  line-height: 1;
}
.trend-numbers .trend-lbl {
  font-size: 10.5px;
  font-weight: 600;
  color: #6b7280;
  margin-top: 4px;
  white-space: nowrap;
}

/* Bottom Strip */
.seats-bottom-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #374151;
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
  max-width: 550px;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.item-icon-blue {
  color: #0b5c53;
  font-size: 15px;
}
.style-paw {
  transform: rotate(-15deg);
}
.strip-divider {
  color: #d1d5db;
  font-weight: 300;
}
@media (max-width: 576px) {
  .seats-bottom-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .strip-divider {
    display: none;
  }
}

/* Graphic Area */
.seats-hero-graphic-wrapper {
  width: 100%;
}
.seats-hero-graphic {
  position: relative;
  overflow: hidden;
}
.seats-hero-graphic img {
  width: 100%;
  height: auto;
  display: block;
  mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 25%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 25%);
}
.floating-universities-banner {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: #064e3b; /* Dark Green */
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}
.banner-icon-wrapper {
  font-size: 18px;
  color: #a7f3d0;
}
.banner-text {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
}
.banner-text strong {
  font-weight: 800;
  color: #a7f3d0;
}
@media (max-width: 768px) {
  .floating-universities-banner {
    position: relative;
    bottom: 0;
    right: 0;
    margin: 12px;
    justify-content: center;
  }
}

/* =============================================
   Student Dashboard & Portal Styles
   ============================================= */
.student-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}
.student-header .logo img {
  height: 40px;
  display: block;
}
.student-header nav {
  display: flex;
  gap: 20px;
}
.student-header nav a {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.student-header .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.student-header .user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 6px;
}
.student-header .logout-btn {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.student-header .logout-btn:hover {
  background: var(--primary-dk);
  color: var(--white);
}

.student-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.student-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.student-course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.student-course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.student-course-card .thumb {
  aspect-ratio: 16/9;
  width: 100%;
  background: var(--primary-lt);
  position: relative;
  overflow: hidden;
}
.student-course-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.student-course-card .thumbnail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 48px;
  color: var(--primary);
  background: var(--primary-lt);
}
.student-course-card .body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.student-course-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
}
.student-course-card p {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 16px;
  flex-grow: 1;
}
.student-course-card .meta {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.student-course-card .meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 500px;
  margin: 40px auto;
  box-shadow: var(--shadow-sm);
}
.empty-state .icon {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 16px;
}
.empty-state h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--slate);
  font-size: 14.5px;
  margin-bottom: 20px;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm) !important;
}
.mt-2 {
  margin-top: 16px;
}
.text-muted {
  color: var(--muted);
}

/* ==========================================================================
   ADMIN LAYOUT & SIDEBAR STYLES
   ========================================================================== */

.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-soft, #f8fafc);
}

/* Sidebar styling */
.sidebar {
  width: 260px;
  background: var(--white, #ffffff);
  border-right: 1px solid var(--border, #e2e8f0);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.sidebar-close-btn {
  display: none;
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--muted, #64748b);
  cursor: pointer;
}

.sidebar-brand {
  padding: 20px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.nav-section {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #64748b);
  font-weight: 700;
  margin: 16px 0 8px 12px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--slate, #334155);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s ease;
  margin-bottom: 4px;
}

.sidebar-nav a:hover {
  background: var(--bg-soft, #f8fafc);
  color: var(--primary, #084b83);
}

.sidebar-nav a.active {
  background: rgba(8, 75, 131, 0.08);
  color: var(--primary, #084b83);
  font-weight: 600;
}

.sidebar-nav a .icon {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

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

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: #ef4444;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.sidebar-footer a:hover {
  background: #fef2f2;
}

/* Main Content Area */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  height: 70px;
  background: var(--white, #ffffff);
  border-bottom: 1px solid var(--border, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--dark, #0f172a);
}

.admin-content {
  padding: 30px;
  flex: 1;
  overflow-y: auto;
}

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

.stat-card {
  background: var(--white, #ffffff);
  padding: 20px;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--border, #e2e8f0);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
}

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-icon-wrap.blue {
  background: #eff6ff;
  color: #3b82f6;
}

.stat-icon-wrap.green {
  background: #f0fdf4;
  color: #22c55e;
}

.stat-icon-wrap.amber {
  background: #fffbeb;
  color: #f59e0b;
}

.stat-info h3 {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  color: var(--dark, #0f172a);
}

.stat-info p {
  font-size: 13px;
  color: var(--muted, #64748b);
  margin: 2px 0 0 0;
  font-weight: 500;
}

/* Responsive sidebar */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }
  
  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    bottom: 0;
    z-index: 1000;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
  }
  
  .sidebar-close-btn {
    display: block;
  }
  
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
  }
  
  .admin-layout.sidebar-open .sidebar {
    left: 0;
  }
  
  .admin-layout.sidebar-open .sidebar-overlay {
    display: block;
  }
}

/* Dashboard Columns Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}
@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Table Cards */
.table-card {
  background: var(--white, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
  margin-bottom: 24px;
}
.table-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white, #ffffff);
}
.table-card-header h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--dark, #0f172a);
}

/* Data Table Styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.data-table th {
  padding: 12px 20px;
  background: var(--bg-soft, #f8fafc);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted, #64748b);
  border-bottom: 1px solid var(--border, #e2e8f0);
  letter-spacing: 0.05em;
}
.data-table td {
  padding: 14px 20px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  color: var(--slate, #334155);
  vertical-align: middle;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr:hover td {
  background: var(--bg-soft, #f8fafc);
}

/* Role Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-student {
  background: #eff6ff;
  color: #3b82f6;
}
.badge-admin {
  background: #fef2f2;
  color: #ef4444;
}
.badge-manager {
  background: #fdf2f8;
  color: #db2777;
}

/* Admin user profile header */
.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-user .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.admin-user span {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

/* Page Card & Entry Card container styles */
.page-card {
  background: var(--white, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 12px);
  padding: 24px;
  box-shadow: var(--shadow-sm, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
  margin-bottom: 24px;
}
.page-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--dark, #0f172a);
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-card p {
  margin-top: 0;
  line-height: 1.6;
}

.entry-card {
  background: var(--bg-soft, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.15s ease;
}
.entry-card:hover {
  background: var(--white);
  border-color: var(--primary-lt);
  box-shadow: var(--shadow-sm);
}

.mb-2 {
  margin-bottom: 24px !important;
}

/* Red button helper in admin */
.btn-danger {
  background: #ef4444;
  color: var(--white) !important;
  border-color: #ef4444;
}
.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-2px);
}

/* Table actions horizontal layout */
.table-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
}

/* Orange/Warning button styling */
.btn-warning {
  background: #f59e0b;
  color: var(--white) !important;
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}
.btn-warning:hover {
  background: #d97706;
  border-color: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.25);
}

/* Premium Table Layout Optimization */
.data-table {
  min-width: 1100px;
}
.data-table th, .data-table td {
  white-space: nowrap;
}
.data-table td strong {
  white-space: normal;
  display: inline-block;
  max-width: 250px;
}

/* Premium Responsive Mobile Overrides */
@media (max-width: 576px) {
  /* Topbar stacking to prevent heading wrapping */
  .admin-topbar {
    height: auto !important;
    padding: 12px 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .admin-topbar > div:first-child {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
  .admin-topbar h2 {
    font-size: 16px !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }
  .topbar-actions {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-start !important;
  }
  .topbar-actions .btn {
    width: 100% !important;
  }

  /* Content area spacing */
  .admin-content {
    padding: 16px 12px !important;
  }

  /* Grid card margins */
  .stats-grid {
    gap: 12px !important;
  }

  /* Make form and list action buttons full-width */
  .admin-content .btn,
  .admin-content a.btn {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}



