:root {
  --bg-dark: #050508;
  --bg-card: rgba(20, 20, 30, 0.7);
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --primary-neon: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.5);
  --secondary-neon: #0ea5e9;
  --secondary-glow: rgba(14, 165, 233, 0.5);
  --admin-neon: #f43f5e;
  --admin-glow: rgba(244, 63, 94, 0.5);
  --glass-bg: rgba(15, 15, 25, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-main: "Outfit", sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Premium Scrollbar */
*::-webkit-scrollbar {
  width: 6px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary-neon), var(--secondary-neon));
  border-radius: 10px;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-main);
  min-height: 100vh;
  line-height: 1.6;
}

#app {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.view {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Move views to top */
  align-items: center;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
  padding: 0;
}

.hidden {
  display: none !important;
}

.active {
  display: flex !important;
}

/* Moving Mesh Gradient Background */
.view {
  position: relative;
  background:
    radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.25), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.25), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(239, 68, 68, 0.15), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(20, 20, 35, 1), #050508);
  background-color: var(--bg-dark);
}

.auth-view::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}

.blob {
  position: absolute;
  filter: blur(100px);
  z-index: 0;
  border-radius: 50%;
  opacity: 0.4;
  mix-blend-mode: screen;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--primary-neon), #4f46e5);
  top: -200px;
  left: -200px;
  animation: flow 15s infinite ease-in-out alternate;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #0ea5e9, #2dd4bf);
  bottom: -150px;
  right: -150px;
  animation: flow 18s infinite ease-in-out alternate-reverse;
}

@keyframes flow {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(50px, 30px) scale(1.1) rotate(10deg);
  }
  66% {
    transform: translate(-30px, 50px) scale(0.9) rotate(-10deg);
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}

@keyframes slideFlipIn {
  0% {
    transform: translateX(-100vw) rotateY(-360deg);
    opacity: 0;
  }
  100% {
    transform: translateX(0) rotateY(0deg);
    opacity: 1;
  }
}

/* 3D Flip Card Container */
.perspective-container {
  perspective: 2000px;
  width: 450px; /* Wider card to fill space */
  max-width: 100vw; /* Fixes horizontal scroll trap on mobile without changing layout */
  height: 610px; /* Taller card */
  flex-shrink: 0;
  margin: 0; /* Let flex handle positioning */
  animation: slideFlipIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.flip-card.is-flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 24px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background: var(--bg-card); /* Ensure solid-ish background to prevent ghosting */
}

.card-front {
  z-index: 2;
  transform: rotateY(0deg);
}

.card-back {
  transform: rotateY(180deg);
}

/* Fix for overlapping during flip */
.flip-card.is-flipped .card-front {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.flip-card:not(.is-flipped) .card-back {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.flip-card.is-flipped .card-back {
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.4s ease 0.2s;
}

.flip-card:not(.is-flipped) .card-front {
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.4s ease 0.2s;
}

.card-face::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.ui-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  transition: var(--transition-smooth);
}

.ui-glass:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 15px rgba(139, 92, 246, 0.1);
}

.glass-container {
  background: linear-gradient(165deg, rgba(30, 30, 45, 0.7), rgba(15, 15, 25, 0.5));
  border-radius: 28px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 40px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 30px;
  text-align: center;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.admin-badge {
  position: absolute;
  top: 25px;
  right: 25px;
  background: linear-gradient(135deg, var(--admin-neon), #be123c);
  color: white;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 0 20px var(--admin-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Forms & Inputs */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
}

.input-group input {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.input-group input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary-neon);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1), 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.glow-input {
  width: 100%;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.glow-input:focus {
  outline: none;
  border-color: var(--primary-neon);
  box-shadow: 0 0 15px var(--primary-glow);
  background: rgba(255, 255, 255, 0.05);
}

/* Fix for Select dropdown option visibility in dark mode */
select option {
  background-color: #151522 !important;
  color: #f8fafc !important;
  padding: 12px !important;
}

/* Buttons */
.glow-btn {
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.glow-btn.primary {
  background: linear-gradient(135deg, var(--primary-neon), #6d28d9);
  color: white;
  box-shadow: 0 8px 25px -5px var(--primary-glow);
}

.glow-btn.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px -10px var(--primary-glow);
}

.glow-btn.danger {
  background: linear-gradient(135deg, var(--admin-neon), #e11d48);
  color: white;
  box-shadow: 0 8px 25px -5px var(--admin-glow);
}

.glow-btn.danger:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px -10px var(--admin-glow);
}

.glow-btn.danger-outline {
  background: rgba(244, 63, 94, 0.05);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--admin-neon);
}

.glow-btn.danger-outline:hover {
  background: var(--admin-neon);
  color: white;
}

.clickable {
  color: var(--secondary-neon);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.clickable:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--secondary-glow);
}

.forgot-link {
  color: var(--secondary-neon);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  opacity: 0.8;
}

.forgot-link:hover {
  opacity: 1;
  color: #fff;
  text-shadow: 0 0 8px var(--secondary-glow);
}

.switch-text {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.consolidated-scroll-container {
    overflow-x: auto;
    max-width: 100%;
    contain: content; /* Improves rendering performance for large lists */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-neon) rgba(255,255,255,0.05);
}

.consolidated-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.consolidated-scroll-container::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.consolidated-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-neon);
    border-radius: 10px;
}

.table-wrapper {
  overflow-x: auto;
}

.glass-table {
  width: 100%;
  border-collapse: collapse;
}

.glass-table th {
  text-align: left;
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
}

.glass-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.loading-cell {
  text-align: center;
  padding: 40px !important;
  color: var(--text-muted);
  font-style: italic;
}

/* Hero & Info Section Styles */
.content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around; /* Balanced distribution */
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 8%; /* Equalized side gaps */
  gap: 60px;
  z-index: 2;
  box-sizing: border-box;
  min-height: 100vh;
}

.info-section {
  max-width: 700px; /* Fill even more horizontal space */
  color: var(--text-light);
  flex-shrink: 0;
}

.badge-pro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary-neon);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 5rem;
  line-height: 1;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -2px;
  color: #fff;
}

.highlight {
  background: linear-gradient(135deg, var(--primary-neon) 0%, var(--secondary-neon) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px var(--primary-glow));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 24px;
  border-radius: 20px;
  gap: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.feature-item:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-neon);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.2);
}

.feature-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.feature-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.feature-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .content-wrapper {
    flex-direction: column;
    align-items: center; /* Center for mobile */
    justify-content: center;
    text-align: center;
    gap: 30px;
    padding: 20px;
    margin-top: 20px;
  }
  .info-section {
    margin-bottom: 20px;
    text-align: center;
    max-width: 95%;
  }
  .hero-title {
    font-size: 2rem;
  }
}

/* Modals & Help Button */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.modal-content {
  position: relative;
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  max-height: 90vh;
  overflow-y: auto;
}

.help-support-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(30, 30, 40, 0.8);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 50;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.85rem;
}
.help-support-btn:hover {
  background: rgba(139, 92, 246, 0.4);
  border-color: var(--primary-neon);
  transform: translateY(-3px);
}

/* Hide floating action buttons container after login (when auth view is not active) */
#auth-view:not(.active) ~ #floating-action-buttons {
  display: none !important;
}

/* Custom Toast Popup */
.toast-container {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 999999;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateX(0);
}
.toast-container.hidden {
  transform: translateX(150%);
  opacity: 0;
  pointer-events: none;
}
.toast-content {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 25px;
  border-radius: 12px;
  border-left: 5px solid var(--primary-neon);
  background: rgba(30, 30, 40, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  min-width: 300px;
  border-right: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.toast-content.error {
  border-left-color: var(--admin-neon);
}
#toast-icon {
  font-size: 1.8rem;
}
.toast-message {
  flex-grow: 1;
}
.toast-message h4 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  color: var(--text-light);
  letter-spacing: 0;
  text-align: left;
}
.toast-message p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.toast-close {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}
.toast-close:hover {
  color: white;
}

/* --- School Dashboard Specifics --- */
.school-blob-1 {
  background: #10b981;
  width: 350px;
  height: 350px;
  top: -50px;
  right: -50px;
  animation: float-scale 8s infinite ease-in-out alternate;
}

.school-blob-2 {
  background: #f59e0b;
  width: 250px;
  height: 250px;
  bottom: 100px;
  left: -50px;
  animation: float-scale 12s infinite ease-in-out alternate;
}

@keyframes float-scale {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  100% {
    transform: translateY(40px) scale(1.15) rotate(15deg);
  }
}

.header-info {
  display: flex;
  align-items: center;
  gap: 15px;
}
.header-info h2 {
  margin-bottom: 0;
  font-size: 1.8rem;
}

/* Dashboard Layout */
.dashboard-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 100vh;
  padding: 20px;
  gap: 30px;
  z-index: 10;
  box-sizing: border-box;
}

/* Sidebar styles */
.top-nav {
  width: 95%;
  max-width: 1440px;
  margin: 0 auto 30px auto;
  padding: 15px 25px;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  z-index: 100;
  box-sizing: border-box;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}
.nav-links {
  display: flex;
  gap: 10px;
}
.nav-links .nav-btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}
.nav-links .nav-btn.active {
  background: var(--primary-glow);
  color: var(--primary-neon);
  border: 1px solid var(--primary-neon);
}

#view-sub-status-link {
    transition: all 0.3s ease;
}

#view-sub-status-link:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
    transform: scale(1.05);
}

.sidebar {
  display: none;
}

.sidebar-header {
  margin-bottom: 25px;
  text-align: center;
}

.sidebar-header h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-grow: 1;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text-light);
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  text-align: left;
  position: relative;
  z-index: 1;
  overflow: hidden;
  white-space: nowrap;
}

.nav-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 92, 246, 0.2),
    transparent
  );
  transition: left 0.5s ease;
  z-index: -1;
}

.nav-btn:hover::before {
  left: 100%;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn.active {
  background: var(--primary-glow);
  border-color: var(--primary-neon);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.nav-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 5px var(--primary-glow));
  transition: transform 0.3s ease;
}

.nav-btn:hover .nav-icon {
  transform: scale(1.2) rotate(-5deg);
}

.sidebar-footer {
  margin-top: auto;
}

/* Main Dashboard Content Area */
.dashboard-main {
  flex-grow: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow-y: auto;
  min-height: calc(100vh - 150px);
  margin-bottom: 40px;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.main-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-light);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-neon), #0ea5e9);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Abstract 3D Empty State */
.content-area {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  perspective: 1000px;
  height: 100%;
}

.empty-state {
  text-align: center;
  padding: 50px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transform-style: preserve-3d;
  transition:
    transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.6s ease;
  cursor: default;
  align-self: center;
}

.empty-state:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
  box-shadow:
    -15px 25px 30px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(139, 92, 246, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.empty-icon {
  font-size: 5rem;
  margin-bottom: 20px;
  animation: float 4s infinite ease-in-out alternate;
  transform: translateZ(50px);
}

.empty-state h4 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  transform: translateZ(30px);
  color: var(--primary-neon);
}

.empty-state p {
  color: var(--text-muted);
  font-size: 1.1rem;
  transform: translateZ(20px);
}

/* Responsive Sidebar layout */
@media (max-width: 900px) {
  .dashboard-layout {
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
  }
  .sidebar {
    width: 100%;
    padding: 15px;
    flex-shrink: 0;
  }
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
  }
  .nav-btn {
    width: auto;
    flex-shrink: 0;
    justify-content: center;
    white-space: nowrap;
  }
  .dashboard-main {
    min-height: auto;
    flex-grow: 1;
    overflow-y: auto;
  }
}

/* Dashboard Modules Customizations */
.module-view {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.5s ease;
}

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

/* Module Table Scroll Restriction */
#view-dashboard .table-wrapper {
  max-height: 250px; /* Fits approx 5 rows + header */
  overflow-y: auto;
  overflow-x: auto;
}

.module-view.hidden {
  display: none !important;
}

.module-header {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 10px;
}

.module-header h4 {
  font-size: 1.5rem;
  color: var(--primary-neon);
}

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

.header-actions {
  display: flex;
  gap: 10px;
}

.inline-form {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.inline-form input {
  flex-grow: 1;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.inline-form input:focus {
  outline: none;
  border-color: var(--primary-neon);
  box-shadow: 0 0 10px var(--primary-glow);
}

.inline-form .glow-btn {
  margin-top: 0;
  padding: 10px 20px;
  white-space: nowrap;
}

.no-margin {
  margin: 0 !important;
}

.dashboard-modules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  width: 100%;
}

.module-content-block {
  background: linear-gradient(145deg, rgba(40, 40, 55, 0.5), rgba(20, 20, 35, 0.3));
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 35px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.module-content-block:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
}

/* Hide scrollbars within modules for a clean look */
.module-content-block,
.table-wrapper {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.module-content-block::-webkit-scrollbar,
.table-wrapper::-webkit-scrollbar {
  display: none;
}

@media (max-width: 900px) {
  .dashboard-modules-grid {
    grid-template-columns: 1fr;
  }
}

.days-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.day-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
}

.day-check:hover {
  border-color: var(--primary-neon);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
}

.day-check input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.dashboard-grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.input-group-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.input-group-grid label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.input-group-grid input[type="time"],
.input-group-grid input[type="number"] {
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group-grid input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-neon);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), 0 5px 15px rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

.star-toggle {
  cursor: pointer;
  font-size: 1.2rem;
  margin-right: 8px;
  transition:
    color 0.3s ease,
    transform 0.2s;
  user-select: none;
}

.star-toggle:hover {
  transform: scale(1.2);
}

.star-active {
  color: #eab308; /* Golden Yellow */
  text-shadow: 0 0 8px rgba(234, 179, 8, 0.5);
}

.star-inactive {
  color: #4b5563; /* Muted Grey */
}

/* =========================================================
   📱 Fully Responsive & Centered Design 
   ========================================================= */

/* Desktop & General Centering */
body {
  overflow-x: hidden; /* Prevent horizontal wobble */
}

.dashboard-layout {
  display: flex;
  flex-direction: column;
  align-items: center; /* Essential for global centering */
  justify-content: flex-start;
  width: 100%;
  overflow-x: hidden;
}

/* Admin Dashboard Specific Refinements */
#dashboard-view .glass-container {
    background: rgba(15, 15, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 35px;
}

#dashboard-view .glass-table th {
    color: #94a3b8;
    text-transform: none;
    font-size: 0.95rem;
    font-weight: 400;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#dashboard-view .glass-table td {
    padding: 22px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.status-live {
    color: #10b981;
    font-weight: 600;
}

.status-expired {
    color: #ef4444;
    font-weight: 600;
}

.admin-btn-delete {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.admin-btn-delete:hover {
    background: #ef4444;
    color: white;
}

.admin-btn-add {
    background: #6366f1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.admin-btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.dashboard-main {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Centering for School Dashboard components */
#school-dashboard-view .top-nav,
#school-dashboard-view .dashboard-main {
  margin-left: auto;
  margin-right: auto;
}


#school-dashboard-view .dashboard-main {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

#school-dashboard-view .dashboard-main::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

/* Tablet & Smaller Screens (< 1024px) */
@media (max-width: 1024px) {
  .top-nav {
    width: calc(100% - 20px);
    margin: 10px;
    padding: 10px 15px;
    flex-direction: column;
    gap: 15px;
    height: auto;
  }
  .nav-brand {
    width: 100%;
    justify-content: space-between;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
  }
  .nav-actions {
    width: 100%;
  }
  #school-logout-btn {
    width: 100%;
  }

  .dashboard-layout {
    padding: 10px !important;
  }

  .dashboard-main {
    height: auto !important; /* Allow scroll */
    min-height: calc(100vh - 180px);
  }
}

/* Mobile Screens (< 768px) */
@media (max-width: 768px) {
  h2 {
    font-size: 1.5rem;
  }
  .hero-title {
    font-size: 2rem;
  }

  /* Login Card Centering */
  .perspective-container {
    width: 90% !important;
    max-width: 360px;
    margin: 0 auto;
  }

  .card-face {
    padding: 25px 15px;
  }

  /* Dashboard Grid Controls */
  .dashboard-modules-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .dashboard-grid-form {
    grid-template-columns: 1fr !important;
  }

  .inline-form {
    flex-direction: column;
    gap: 10px;
  }

  .inline-form input {
    width: 100% !important;
  }

  /* Timetable Table Management */
  .table-wrapper {
    width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-top: 10px;
    border-radius: 8px;
  }

  .glass-table {
    min-width: 800px; /* Force scroll on mobile to avoid overlap */
  }

  /* Period Text management */
  .glass-table th,
  .glass-table td {
    padding: 10px 5px !important;
    font-size: 0.75rem !important;
  }

  .consolidated-table td div {
    white-space: normal !important; /* Allow wrap on tiny screens if needed */
    line-height: 1.2;
  }

  /* Button and UI scale */
  .glow-btn {
    width: 100%;
    font-size: 0.9rem;
  }

  .nav-btn {
    font-size: 0.85rem !important;
    padding: 8px 12px !important;
  }
}

/* Extra Small Screens */
@media (max-width: 480px) {
  .main-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .top-nav {
    padding: 10px;
  }
  .nav-links {
    flex-wrap: wrap;
  }
}

/* Dashboard Centering Styles */
.dashboard-welcome-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  width: 100%;
}

.dashboard-welcome-header h4 {
  justify-content: center;
  width: 100%;
}

.glass-container,
.module-content-block {
  margin: 0 auto;
  width: 100%;
  max-width: 1100px;
}

#view-dashboard {
  align-items: center;
}


/* --- Print & Export Optimization --- */
@media print {
  @page {
    margin: 1cm;
    size: auto;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-family: 'Inter', sans-serif !important;
  }

  /* Show the hidden print header */
  .print-only-header {
    display: block !important;
    visibility: visible !important;
  }

  #print-school-id {
    color: #000000 !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Hide everything else not needed for the timetable */
  .top-nav, 
  .main-header, 
  .nav-links, 
  .nav-actions, 
  .glow-btn, 
  .blob, 
  .dashboard-welcome-header, 
  #absent-teachers-panel,
  .btn-demo,
  input[type="file"],
  #help-btn,
  #about-btn,
  .help-support-btn,
  .toast-container,
  .modal,
  #fixed-corner-label,
  #multi-timetable-bar {
    display: none !important;
  }

  /* Clean up layout for print */
  .dashboard-layout, .content-area, .module-view, .dashboard-main {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }

  .ui-glass, .glass-table {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
  }

  /* CRITICAL: Force black text on ALL children */
  .glass-table, .glass-table *, .print-only-header * {
    color: #000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    text-shadow: none !important;
    opacity: 1 !important;
  }

  /* Fix table readability for ink - NO STICKY */
  .glass-table th, 
  .glass-table td {
    border: 1.5px solid #000 !important;
    background: transparent !important;
    position: static !important; /* Remove sticky to prevent cut-offs */
    left: auto !important;
    z-index: 1 !important;
    padding: 8px 4px !important;
  }

  .glass-table th {
    background: #eee !important;
    font-weight: 900 !important;
    text-transform: uppercase;
  }

  /* Specifically force boldness on the Period Time spans */
  .glass-table th span {
    font-weight: 800 !important;
    color: #000 !important;
    font-size: 0.9rem !important;
  }

  tr {
    page-break-inside: avoid;
  }

  .table-wrapper {
    overflow: visible !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Remove any glows or neon effects */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   TESTING USER CUSTOM LOGIN DESIGN (REMOVABLE SECTION)
   ========================================================= */

/* Floating Glow Circles */
.animated-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.animated-bg span {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: rgba(123, 92, 255, 0.25);
    animation: float_user 18s linear infinite;
    bottom: -150px;
    box-shadow: 0 0 25px #7b5cff, 0 0 50px #7b5cff;
}

.animated-bg span:nth-child(1) { left: 10%; width: 120px; height: 120px; animation-duration: 20s; }
.animated-bg span:nth-child(2) { left: 30%; width: 80px; height: 80px; animation-duration: 15s; }
.animated-bg span:nth-child(3) { left: 50%; width: 150px; height: 150px; animation-duration: 25s; }
.animated-bg span:nth-child(4) { left: 70%; width: 60px; height: 60px; animation-duration: 12s; }
.animated-bg span:nth-child(5) { left: 85%; width: 100px; height: 100px; animation-duration: 18s; }

@keyframes float_user {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateY(-1200px) rotate(720deg); opacity: 0; }
}

.login-card {
    animation: popup_user 1s ease !important;
    backdrop-filter: blur(15px) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 25px rgba(123, 92, 255, 0.4) !important;
}

@keyframes popup_user {
    0% { opacity: 0; transform: translateY(40px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.login-btn {
    position: relative;
    overflow: hidden;
    transition: 0.4s;
    background: linear-gradient(90deg, #8b5cf6, #4f46e5) !important;
}

.login-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 0 20px #8b5cf6, 0 0 40px #4f46e5 !important;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    transform: skewX(-30deg);
    transition: 0.6s;
}

.login-btn:hover::before {
    left: 120%;
}

/* Input Focus Animation Override */
#auth-view input:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 10px #8b5cf6 !important;
    transform: scale(1.02) !important;
}
/* ========================================================= */

/* --- Admin Dashboard Premium 3D Glassmorphism Cards & Filters --- */
.stats-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stats-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.stats-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
}

.stats-card.cyan-glow:hover {
    border-color: rgba(14, 165, 233, 0.5) !important;
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.25) !important;
}

.stats-card.green-glow:hover {
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.25) !important;
}

.stats-card.orange-glow:hover {
    border-color: rgba(249, 115, 22, 0.5) !important;
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.25) !important;
}

.stats-card:hover .stats-icon-container {
    transform: scale(1.15) rotate(5deg) !important;
}

/* Pulsing alert glow for Support ticket notification alert badge */
@keyframes warningPulseGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 12px rgba(249, 115, 22, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
}
.warning-pulse {
    animation: warningPulseGlow 2s infinite ease-in-out !important;
}

/* Premium Filter Pills */
.filter-pill {
    outline: none;
}

.filter-pill.active {
    background: linear-gradient(135deg, var(--primary-neon), #38bdf8) !important;
    color: #0f172a !important;
    border-color: var(--primary-neon) !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4) !important;
    transform: translateY(-2px) !important;
}

.filter-pill:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px) !important;
}

.filter-pill:active {
    transform: translateY(0) !important;
}

/* Real-time Status Badges in Admin Table */
.status-live {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1) !important;
}

.status-expired {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.1) !important;
}

/* ==========================================================================
   🔥 GORGEOUS ENTERPRISE HORIZONTAL TOP NAVBAR STYLING 🔥
   ========================================================================== */

/* Top Navbar Tab button styling */
.admin-top-navbar .sidebar-tab {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.admin-top-navbar .sidebar-tab:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

.admin-top-navbar .sidebar-tab.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(79, 70, 229, 0.1) 100%) !important;
    color: var(--primary-neon) !important;
    border-color: rgba(139, 92, 246, 0.25) !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.12) !important;
}

/* Subview container transition */
.admin-subview {
    animation: subviewFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* Scrollbar styling for main admin area */
.admin-main-content::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.admin-main-content::-webkit-scrollbar-track {
    background: transparent;
}

.admin-main-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.admin-main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Responsiveness for top navigation bar */
@media (max-width: 1024px) {
    .admin-top-navbar {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 15px 20px !important;
    }
    .admin-top-navbar nav {
        width: 100% !important;
        overflow-x: auto !important;
        padding-bottom: 5px !important;
        justify-content: flex-start !important;
    }
}

/* Premium Multi-Timetable Version Manager Styles */
.tt-slot-pill {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tt-slot-pill:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px);
}

.tt-slot-pill.active:hover {
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4) !important;
}

.tt-slot-pill.empty {
    border-style: dashed !important;
    background: rgba(255, 255, 255, 0.01) !important;
}

.tt-slot-pill.empty:hover {
    border-style: solid !important;
    border-color: var(--primary-neon) !important;
    background: rgba(139, 92, 246, 0.05) !important;
}

.tt-slot-pill.empty:hover .slot-name {
    color: #fff !important;
}

.tt-slot-pill .slot-edit:hover {
    opacity: 1 !important;
    transform: scale(1.2);
}

/* Animated School Icon styles */
@keyframes floatSchoolIcon {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.school-login-icon {
  animation: floatSchoolIcon 4s ease-in-out infinite;
}

/* ==========================================================================
   🌀 PREMIUM GLASSMORPHIC GLOBAL LOADER OVERLAY 🌀
   ========================================================================== */
#global-loader {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.85) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  transition: all 0.3s ease !important;
}

#global-loader.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

.spinner {
  width: 55px;
  height: 55px;
  border: 4.5px solid rgba(255, 255, 255, 0.05) !important;
  border-top-color: var(--primary-neon) !important;
  border-bottom-color: var(--secondary-neon) !important;
  border-radius: 50% !important;
  animation: spin 1s linear infinite !important;
  box-shadow: 0 0 25px var(--primary-glow) !important;
}

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

/* ==========================================================================
   📱 MOBILE RESPONSIVENESS AND OVERLAPPING FIXES 📱
   ========================================================================== */
@media (max-width: 768px) {
  /* Scale down hero headings & section headings to prevent clipping */
  .about-seo-section h2 {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
  }
  .about-seo-section {
    padding: 30px 20px !important;
    margin-bottom: 40px !important;
  }

  /* Make floating action buttons smaller and horizontal on mobile */
  #floating-action-buttons {
    bottom: 15px !important;
    right: 15px !important;
    flex-direction: row !important;
    gap: 8px !important;
  }
  .help-support-btn {
    padding: 10px !important;
    border-radius: 50% !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important; /* Hides text, keeps only the emoji */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
  }
  .help-support-btn .feature-icon {
    font-size: 1.15rem !important;
    margin: 0 !important;
  }
}



