/* GENERATED by scripts/build-legacy-css.mjs from these public/ sheets, in this order: enhanced-educational-theme.css, sidebar-visibility-essential.css, final-scrollbar-fix.css, stunning-sidebar.css, homepage-aggressive-buttons.css, sidebar-layout-fix.css. */
/* Do not edit this file: edit the sources, then run `node scripts/build-legacy-css.mjs`. */
/* 
 * TESTENZIA ENHANCED HOMEPAGE STYLING
 * Educational theme with vibrant colors for JEE & NEET test platform
 */

/* Main background with educational theme */
body {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%) !important;
  background-attachment: fixed !important;
  position: relative !important;
}

/* Educational pattern overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: -1;
}

/* Hero section styling */
.jee-neet-hero-section {
  background: linear-gradient(135deg, #4158d0 0%, #c850c0 46%, #ffcc70 100%);
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  color: white;
  border-radius: 0 0 2rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  animation: heroGradientShift 15s ease infinite alternate;
}

@keyframes heroGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Hero badge styling */
.jee-neet-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: badgePulse 3s infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  }
}

/* Hero section patterns */
.jee-neet-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

/* Hero content should be above patterns */
.jee-neet-hero-section > * {
  position: relative;
  z-index: 1;
}

/* Enhanced dashboard styling */
.enhanced-dashboard {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: dashboardEntrance 0.8s ease-out forwards;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(2deg);
  transition: transform 0.5s ease-out;
}

.enhanced-dashboard:hover {
  transform: perspective(1000px) rotateX(0deg) translateY(-5px);
}

/* Dashboard entrance animation */
@keyframes dashboardEntrance {
  0% { 
    opacity: 0;
    transform: perspective(1000px) rotateX(5deg) translateY(20px);
  }
  100% { 
    opacity: 1;
    transform: perspective(1000px) rotateX(2deg) translateY(0);
  }
}

/* Dashboard shine effect */
.dashboard-shine {
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.2) 50%, 
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  animation: shineEffect 3s infinite;
}

@keyframes shineEffect {
  to {
    left: 150%;
  }
}

/* Dashboard text coloring */
.enhanced-dashboard *, 
.performance-dashboard *, 
.analytics-dashboard * {
  color: white !important;
}

/* Ensure metrics and labels are visible */
.recharts-text, .recharts-label, .recharts-cartesian-axis-tick-value {
  fill: white !important;
  color: white !important;
}

/* Brand name styling */
.brand-testenzia {
  display: inline-block;
  font-weight: bold;
  background: linear-gradient(135deg, #3b82f6, #f97316);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 4rem;
  line-height: 1.1;
  margin: 0;
  padding: 0;
  letter-spacing: -0.02em;
}

.brand-test {
  color: #3b82f6;
  display: inline-block;
  transition: all 0.3s ease;
}

.brand-enzia {
  color: #f97316;
  display: inline-block;
  transition: all 0.3s ease;
}

/* Add hover effect to brand name */
.brand-testenzia:hover .brand-test {
  transform: translateY(-2px);
  text-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

.brand-testenzia:hover .brand-enzia {
  transform: translateY(-2px);
  text-shadow: 0 2px 10px rgba(249, 115, 22, 0.4);
}

/* Feature card styling */
.feature-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
  border-image: linear-gradient(to right, #3b82f6, #f97316);
  border-image-slice: 1;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Feature icon container */
.feature-icon-container {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(249, 115, 22, 0.1));
}

/* Button styling */
.btn-primary, .cta-button {
  background: linear-gradient(135deg, #3b82f6, #f97316);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hover effect with glow */
.btn-primary:hover, .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3), 0 4px 10px rgba(249, 115, 22, 0.3);
}

/* Button shine effect */
.btn-primary::after, .cta-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 70%;
  height: 200%;
  background: linear-gradient(
    90deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.3) 50%, 
    rgba(255,255,255,0) 100%
  );
  transform: rotate(25deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.btn-primary:hover::after, .cta-button:hover::after {
  left: 100%;
  opacity: 1;
}

/* Subject cards */
.subject-card {
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.physics-card {
  background: linear-gradient(135deg, #0061ff 0%, #60efff 100%);
}

.chemistry-card {
  background: linear-gradient(135deg, #f9d423 0%, #ff4e50 100%);
}

.mathematics-card {
  background: linear-gradient(135deg, #0ba360 0%, #3cba92 100%);
}

.subject-card h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.subject-card p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.subject-icon {
  position: absolute;
  bottom: -30px;
  right: -20px;
  font-size: 8rem;
  opacity: 0.15;
  transform: rotate(-15deg);
}

/* Student testimonial */
.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -30px;
  left: 20px;
  font-size: 150px;
  opacity: 0.1;
  font-family: serif;
}

/* Stats counter */
.stats-counter {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Enhanced Educational Theme Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInFromRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

@keyframes shine {
  0% {
    background-position: -100px;
  }
  40%, 100% {
    background-position: 300px;
  }
}

/* Educational theme specific animations */
@keyframes textPulse {
  0% { text-shadow: 0 0 0 rgba(59, 130, 246, 0); }
  50% { text-shadow: 0 0 5px rgba(59, 130, 246, 0.5); }
  100% { text-shadow: 0 0 0 rgba(59, 130, 246, 0); }
}

@keyframes iconFloat {
  0% { transform: translateY(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(-10px) scale(1.1); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 0.7; }
}

@keyframes subjectReveal {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes cardPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.02); }
  80% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-slideFromRight {
  animation: slideInFromRight 0.8s ease-out forwards;
}

.animate-slideFromLeft {
  animation: slideInFromLeft 0.8s ease-out forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 3s ease-in-out infinite;
}

.text-pulse {
  animation: textPulse 2s ease-in-out infinite;
}

.subject-reveal {
  animation: subjectReveal 5s ease infinite;
}

.feature-highlight {
  animation: cardPop 1s ease-out;
}

/* Particles styling */
.particle {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
}

/* Educational icons for subject cards */
.subject-educational-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.ed-icon {
  position: absolute;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.subject-card:hover .ed-icon {
  opacity: 0.7;
}

.ed-icon-1 {
  top: 25%;
  right: 15%;
  animation: iconFloat 4s ease-in-out infinite;
}

.ed-icon-2 {
  top: 35%;
  right: 25%;
  animation: iconFloat 4s ease-in-out 0.5s infinite;
}

.ed-icon-3 {
  top: 45%;
  right: 20%;
  animation: iconFloat 4s ease-in-out 1s infinite;
}

/* Subject Card Enhanced Styles */
.subject-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.subject-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0) 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.subject-card:hover::before {
  opacity: 1;
}

/* Enhanced Subject Card Styling */
.physics-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 25C62.1522 25 72 34.8478 72 47C72 59.1522 62.1522 69 50 69C37.8478 69 28 59.1522 28 47C28 34.8478 37.8478 25 50 25ZM50 28C39.5066 28 31 36.5066 31 47C31 57.4934 39.5066 66 50 66C60.4934 66 69 57.4934 69 47C69 36.5066 60.4934 28 50 28Z' fill='white' fill-opacity='0.1'/%3E%3Cpath d='M50 50L80 20M50 50L20 20M50 50L20 80M50 50L80 80' stroke='white' stroke-opacity='0.1' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 100px 100px;
  opacity: 0.2;
  z-index: 0;
}

.chemistry-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='10' fill='white' fill-opacity='0.1'/%3E%3Ccircle cx='70' cy='30' r='10' fill='white' fill-opacity='0.1'/%3E%3Ccircle cx='30' cy='70' r='10' fill='white' fill-opacity='0.1'/%3E%3Ccircle cx='70' cy='70' r='10' fill='white' fill-opacity='0.1'/%3E%3Ccircle cx='50' cy='50' r='12' fill='white' fill-opacity='0.1'/%3E%3Cpath d='M30 30L70 70M30 70L70 30M30 30L30 70M70 30L70 70M30 30L70 30M30 70L70 70' stroke='white' stroke-opacity='0.1' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 100px 100px;
  opacity: 0.2;
  z-index: 0;
}

.mathematics-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 40H80M20 60H80M40 20V80M60 20V80' stroke='white' stroke-opacity='0.1' stroke-width='2'/%3E%3Cpath d='M25 25L35 35M65 25L75 35M25 75L35 65M65 75L75 65' stroke='white' stroke-opacity='0.1' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 100px 100px;
  opacity: 0.2;
  z-index: 0;
}

.subject-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Button shine effect */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: var(--x-pos, 0);
  width: 30px;
  height: 100%;
  background: linear-gradient(to right, 
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.4) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: translateX(-100%) skewX(-15deg);
  transition: none;
}

.btn-primary:hover::after {
  transform: translateX(500%) skewX(-15deg);
  transition: transform 0.7s ease;
}

/* Particles container */
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Call to action section */
.cta-section {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(124, 58, 237, 0.95));
  padding: 4rem 0;
  border-radius: 16px;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
}

/* Button styles */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
  transform: rotate(45deg) translate(-90%, 0);
  transition: all 0.5s ease-in-out;
}

.btn-primary:hover::after {
  transform: rotate(45deg) translate(90%, 0);
}

/* FAQ styles */
.faq-card {
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

.faq-card:hover {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: rgba(59, 130, 246, 0.3);
}

.section-title {
  background: linear-gradient(135deg, #1e40af, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

/* Testimonial card styles */
.testimonial-card {
  background-color: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid rgba(219, 234, 254, 0.4);
  overflow: hidden;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: rgba(59, 130, 246, 0.1);
  line-height: 1;
}

/* Testimonial card gradient background */
.testimonial-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #3b82f6, #7c3aed, #ec4899);
  transform: translateY(5px);
  transition: transform 0.3s ease;
}

.testimonial-card:hover::after {
  transform: translateY(0);
}

/* Animated avatar border */
.testimonial-card .rounded-full {
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.testimonial-card .rounded-full::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, #3b82f6, #7c3aed);
  border-radius: 50%;
  z-index: -1;
}

/* Footer styling with enhanced educational theme */
footer {
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

footer svg {
  width: 100%;
  height: 80px;
}

/* Essential sidebar visibility styles - applies to all pages */
#navigation-sidebar,
.nav-sidebar,
aside.nav-sidebar {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Make sure child elements are visible */
#navigation-sidebar .logo-container,
#navigation-sidebar .small-logo,
#navigation-sidebar .nav-sidebar-footer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#navigation-sidebar .nav-list {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  height: 100% !important;
}

#navigation-sidebar .nav-list-item {
  display: flex !important;
  flex: 1 1 0 !important;
}

#navigation-sidebar .nav-list-item > a {
  display: flex !important;
  flex: 1 1 auto !important;
  height: 100% !important;
}

/* Ensure the nav items display properly */
#navigation-sidebar .nav-item,
#navigation-sidebar a,
#navigation-sidebar button {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure icons are visible */
#navigation-sidebar svg,
#navigation-sidebar .icon {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Analytics page: keep flex layout (do not use display:block — breaks footer spacing) */
body.analytics #navigation-sidebar,
body.analytics .nav-sidebar {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Final comprehensive fix for sidebar scrollbar issues */

/* Ensure the sidebar container has no scrollbar */
#navigation-sidebar,
.nav-sidebar,
aside.nav-sidebar {
  overflow: hidden !important;
  height: 100vh !important;
  max-height: 100vh !important;
}

/* Ensure proper flex nav — legacy scroll rules neutralised by sidebar-layout-fix.css */
#navigation-sidebar > nav,
.nav-sidebar > nav,
#navigation-sidebar > .nav-main,
.nav-sidebar > .nav-main {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  margin-bottom: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Make scrollbar less visible */
#navigation-sidebar > nav::-webkit-scrollbar,
.nav-sidebar > nav::-webkit-scrollbar {
  width: 3px;
}

#navigation-sidebar > nav::-webkit-scrollbar-track,
.nav-sidebar > nav::-webkit-scrollbar-track {
  background: transparent;
}

#navigation-sidebar > nav::-webkit-scrollbar-thumb,
.nav-sidebar > nav::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

/* Footer must stay visible */
#navigation-sidebar > .nav-sidebar-footer,
.nav-sidebar > .nav-sidebar-footer,
#navigation-sidebar .absolute.bottom-0,
.nav-sidebar .absolute.bottom-0 {
  overflow: visible !important;
  flex-shrink: 0 !important;
  position: relative !important;
  width: 100% !important;
  z-index: 10;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Analytics page specific fixes */
body[class*="analytics"] #navigation-sidebar,
[class*="analytics"] .nav-sidebar {
  overflow: hidden !important;
  height: 100vh !important;
  max-height: 100vh !important;
}

/* Force visible lists in navigation but prevent them from creating scrollbars */
#navigation-sidebar nav ul,
.nav-sidebar nav ul {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Fix for extended content potentially causing scrollbars */
#navigation-sidebar .overflow-hidden,
.nav-sidebar .overflow-hidden {
  overflow: hidden !important;
}

/* Stunning Professional Navigation Sidebar Styling */

/* ============================
   MAIN SIDEBAR CONTAINER
   ============================ */

.nav-sidebar {
  /* Core Layout & Positioning */
  background: #fff !important;
  border-right: none !important;
  width: 70px !important;
  min-width: 70px !important;
  max-width: 264px !important; /* expanded width, matches Navigation.tsx EXPANDED_WIDTH */
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box !important;
  border-right: 1px solid rgba(226, 232, 240, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  
  /* Enhanced visibility */
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1000 !important;
  
  /* Smooth transitions */
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  
  /* Positioning */
  position: fixed !important;
  left: 0;
  top: 0;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;

  /* Force border-box model */
  box-sizing: border-box !important;
}

.nav-sidebar.expanded {
  width: 264px !important;
}

.nav-sidebar > * {
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Subtle glass effect overlay */
.nav-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(248, 250, 252, 0.8) 50%,
    rgba(241, 245, 249, 0.7) 100%
  );
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
}

/* Elegant border accent */
.nav-sidebar::after {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    #3b82f6 20%,
    #6366f1 50%,
    #8b5cf6 80%,
    transparent 100%
  );
  border-radius: 0 2px 2px 0;
  opacity: 0; /* 2026-10-18 redesign: the active item has its own blue bar */
  transition: opacity 0.3s ease;
}

.nav-sidebar:hover::after {
  opacity: 0;
}

/* ============================
   LOGO CONTAINER STYLING
   ============================ */

.nav-sidebar .logo-container {
  position: relative;
  padding: 0.625rem 0.75rem;
  margin-bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 252, 0.9) 100%
  );
  border-bottom: 1px solid rgba(226, 232, 240, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Enhanced full logo styling when expanded */
.nav-sidebar .full-logo {
  min-height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  overflow: visible !important;
  padding: 0 16px !important;
}

/* Brand name component styling in expanded sidebar */
.nav-sidebar .brand-logo-expanded {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: scale(1) !important;
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
  overflow: visible !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

/* Enhanced brand name hover effects */
.nav-sidebar .brand-logo-expanded:hover {
  transform: scale(1.05) !important;
  filter: brightness(1.1) !important;
}

/* Brand name animation keyframes */
@keyframes brandLogoFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Apply animation when sidebar expands */
.nav-sidebar.expanded .brand-logo-expanded {
  animation: brandLogoFadeIn 0.4s ease-out forwards;
  animation-delay: 0.1s;
}

/* Elegant logo backdrop */
.nav-sidebar .logo-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.05) 0%,
    rgba(59, 130, 246, 0.02) 50%,
    transparent 100%
  );
  border-radius: 50%;
  z-index: -1;
}

/* Enhanced Small Logo */
.nav-sidebar .small-logo {
  background: linear-gradient(135deg, #4f46e5, #7c3aed, #3b82f6) !important;
  color: white !important;
  border-radius: 16px !important;
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 22px !important;
  box-shadow: 
    0 8px 24px rgba(79, 70, 229, 0.25),
    0 4px 12px rgba(79, 70, 229, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  visibility: visible !important;
  opacity: 1 !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative;
  overflow: hidden;
}

/* Magical hover effect for logo */
.nav-sidebar .small-logo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.nav-sidebar .small-logo:hover::before {
  transform: translateX(100%);
}

.nav-sidebar .small-logo:hover {
  transform: scale(1.08) rotate(3deg) !important;
  box-shadow: 
    0 12px 32px rgba(79, 70, 229, 0.35),
    0 6px 16px rgba(79, 70, 229, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Small logo text styling */
.nav-sidebar .small-logo span {
  color: white !important;
  font-weight: 800 !important;
  font-size: 22px !important;
  font-family: 'Inter', sans-serif !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  line-height: 1 !important;
}

/* Full logo styling when expanded */
.nav-sidebar .full-logo {
  width: 100% !important;
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  overflow: visible !important;
  filter: drop-shadow(0 2px 6px rgba(79, 70, 229, 0.15));
}

.nav-sidebar .brand-testenzia {
  transform: scale(0.95) !important;
  transition: all 0.3s ease !important;
}

/* ============================
   NAVIGATION ITEMS STYLING
   ============================ */

.nav-sidebar nav,
.nav-sidebar .nav-main {
  padding: 0 0.5rem;
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  margin-bottom: 0 !important;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-sidebar .nav-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-sidebar .nav-list-item {
  flex: 1 1 0;
  min-height: 0;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
}

.nav-sidebar .nav-list-item > a {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  text-decoration: none;
}

.nav-sidebar .nav-list-item .nav-item {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  display: flex !important;
  align-items: center !important;
  margin: 0.12rem 0 !important;
  padding: 0.35rem 0.55rem !important;
}

/* Footer — profile + logout */
.nav-sidebar .nav-sidebar-footer {
  flex-shrink: 0;
}

.nav-sidebar .nav-footer-profile {
  display: block;
  text-decoration: none;
  color: inherit;
}

.nav-sidebar .nav-footer-profile-inner,
.nav-sidebar .nav-footer-logout {
  width: 100%;
}

.nav-sidebar .nav-footer-logout {
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  cursor: pointer;
}

.nav-sidebar nav::-webkit-scrollbar,
.nav-sidebar .nav-main::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Navigation list styling */
.nav-sidebar nav ul:not(.nav-list) {
  padding: 0.25rem 0;
}

.nav-sidebar nav ul:not(.nav-list) li {
  margin-bottom: 0.2rem;
  position: relative;
}

/* Navigation item containers */
.nav-sidebar nav ul li a div,
.nav-sidebar .nav-item {
  border-radius: 12px !important;
  margin: 0.1rem 0 !important;
  padding: 0.45rem 0.55rem !important;
  min-height: 0 !important;
  transition: all 0.25s ease !important;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-height: 760px) {
  .nav-sidebar nav ul li a div,
  .nav-sidebar .nav-item {
    padding: 0.35rem 0.5rem !important;
  }

  .nav-sidebar .logo-container {
    min-height: 44px !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
}

/* Elegant hover animation preparation */
.nav-sidebar nav ul li a div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(79, 70, 229, 0.08) 0%,
    rgba(124, 58, 237, 0.05) 50%,
    transparent 100%
  );
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  z-index: -1;
}

/* Stunning hover effects */
.nav-sidebar nav ul li a div:hover {
  transform: translateY(-2px) translateX(3px) !important;
  box-shadow: 
    0 12px 24px rgba(79, 70, 229, 0.12),
    0 6px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(248, 250, 252, 0.8) 100%
  ) !important;
  border-color: rgba(79, 70, 229, 0.15) !important;
}

.nav-sidebar nav ul li a div:hover::before {
  width: 100%;
}

/* Active navigation item styling */
.nav-sidebar nav ul li a div.bg-blue-50,
.nav-sidebar nav ul li a div[class*="bg-blue-50"],
.nav-sidebar nav ul li a div.active-nav-item {
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.12) 0%,
    rgba(59, 130, 246, 0.08) 50%,
    rgba(124, 58, 237, 0.06) 100%
  ) !important;
  border: 1px solid rgba(79, 70, 229, 0.2) !important;
  box-shadow: 
    0 8px 20px rgba(79, 70, 229, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  position: relative;
  transform: translateY(-1px) !important;
}

/* Active item glow indicator */
.nav-sidebar nav ul li a div.bg-blue-50::after,
.nav-sidebar nav ul li a div[class*="bg-blue-50"]::after,
.nav-sidebar nav ul li a div.active-nav-item::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 
    0 0 8px rgba(79, 70, 229, 0.6),
    0 0 4px rgba(79, 70, 229, 0.4);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { 
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  50% { 
    opacity: 0.7;
    transform: translateY(-50%) scale(1.2);
  }
}

/* Navigation icons enhancement */
.nav-sidebar nav ul li a div svg {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.nav-sidebar nav ul li a div:hover svg {
  transform: scale(1.1) rotate(-2deg) !important;
  filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.3));
}

/* Navigation text styling */
.nav-sidebar nav ul li a div span {
  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  transition: all 0.3s ease !important;
}

.nav-sidebar nav ul li a div:hover span {
  font-weight: 600 !important;
  transform: translateX(2px) !important;
}

/* ============================
   USER PROFILE SECTION
   ============================ */

.nav-sidebar .fixed.bottom-0,
.nav-sidebar .absolute.bottom-0 {
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1) 70%,
    rgba(255, 255, 255, 0.95) 90%,
    rgba(255, 255, 255, 0) 100%
  ) !important;
  border-top: 1px solid rgba(226, 232, 240, 0.5) !important;
  box-shadow: 
    0 -8px 24px rgba(0, 0, 0, 0.04),
    0 -4px 12px rgba(0, 0, 0, 0.02) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 100 !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  padding-top: 20px !important;
}

/* User avatar styling */
.nav-sidebar .w-10.h-10.bg-blue-500,
.nav-sidebar .w-10.h-10.bg-gradient-to-br {
  background: linear-gradient(135deg, #4f46e5, #7c3aed, #3b82f6) !important;
  box-shadow: 
    0 6px 20px rgba(79, 70, 229, 0.3),
    0 3px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative;
  overflow: hidden;
}

/* Avatar shimmer effect */
.nav-sidebar .w-10.h-10.bg-blue-500::before,
.nav-sidebar .w-10.h-10.bg-gradient-to-br::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: translateX(-100%) rotate(45deg);
  transition: transform 0.6s ease;
}

.nav-sidebar .w-10.h-10.bg-blue-500:hover::before,
.nav-sidebar .w-10.h-10.bg-gradient-to-br:hover::before {
  transform: translateX(100%) rotate(45deg);
}

.nav-sidebar .w-10.h-10.bg-blue-500:hover,
.nav-sidebar .w-10.h-10.bg-gradient-to-br:hover {
  transform: scale(1.08) rotate(-2deg) !important;
  box-shadow: 
    0 8px 28px rgba(79, 70, 229, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* ============================
   LOGOUT BUTTON STYLING
   ============================ */

.nav-sidebar [aria-label="Logout"] {
  border-radius: 16px !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  overflow: hidden !important;
  position: relative !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Elegant logout hover effect */
.nav-sidebar [aria-label="Logout"]::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(
    to top,
    rgba(239, 68, 68, 0.08) 0%,
    rgba(239, 68, 68, 0.04) 50%,
    transparent 100%
  );
  transition: height 0.3s ease;
  z-index: -1;
  border-radius: 16px;
}

.nav-sidebar [aria-label="Logout"]:hover::before {
  height: 100%;
}

.nav-sidebar [aria-label="Logout"]:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(254, 242, 242, 0.8) 100%
  ) !important;
  transform: translateY(-2px) translateX(2px) !important;
  box-shadow: 
    0 8px 20px rgba(239, 68, 68, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  border-color: rgba(239, 68, 68, 0.15) !important;
}

.nav-sidebar [aria-label="Logout"]:hover svg {
  color: #ef4444 !important;
  transform: scale(1.1) rotate(-3deg) !important;
  filter: drop-shadow(0 2px 4px rgba(239, 68, 68, 0.3));
}

.nav-sidebar [aria-label="Logout"] span {
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
}

.nav-sidebar [aria-label="Logout"]:hover span {
  transform: translateX(3px) !important;
  color: #ef4444 !important;
  font-weight: 600 !important;
}

/* ============================
   RESPONSIVE DESIGN   ============================ */

/* ============================
   ENHANCED ANIMATIONS
   ============================ */

/* Entrance animation for navigation items */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav-sidebar.expanded nav ul li {
  animation: slideInFromLeft 0.4s ease forwards;
}

.nav-sidebar.expanded nav ul li:nth-child(1) { animation-delay: 0.1s; }
.nav-sidebar.expanded nav ul li:nth-child(2) { animation-delay: 0.15s; }
.nav-sidebar.expanded nav ul li:nth-child(3) { animation-delay: 0.2s; }
.nav-sidebar.expanded nav ul li:nth-child(4) { animation-delay: 0.25s; }

/* Floating animation for active indicator */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.nav-sidebar nav ul li a div.bg-blue-50 {
  animation: float 3s ease-in-out infinite;
}

/* ============================
   ACCESSIBILITY ENHANCEMENTS
   ============================ */

/* Focus styles for keyboard navigation */
.nav-sidebar nav ul li a div:focus,
.nav-sidebar [aria-label="Logout"]:focus {
  outline: 2px solid #4f46e5 !important;
  outline-offset: 2px !important;
  box-shadow: 
    0 0 0 4px rgba(79, 70, 229, 0.1),
    0 8px 20px rgba(79, 70, 229, 0.15) !important;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .nav-sidebar,
  .nav-sidebar * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .nav-sidebar {
    border-right: 2px solid #000;
    background: #fff;
  }
  
  .nav-sidebar nav ul li a div:hover,
  .nav-sidebar nav ul li a div.active-nav-item {
    background: #000 !important;
    color: #fff !important;
  }
}

/* ============================
   FINAL VISIBILITY OVERRIDES
   ============================ */

/* Ensure everything is visible with maximum specificity */
#navigation-sidebar,
.nav-sidebar,
aside.nav-sidebar {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#navigation-sidebar *,
.nav-sidebar *,
aside.nav-sidebar * {
  visibility: visible !important;
}

/* Force logo visibility */
#navigation-sidebar .small-logo,
#navigation-sidebar .logo-container,
.nav-sidebar .small-logo,
.nav-sidebar .logo-container {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Flex nav + footer visibility */
#navigation-sidebar .nav-main,
.nav-sidebar .nav-main {
  display: flex !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#navigation-sidebar .nav-list,
.nav-sidebar .nav-list {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  height: 100% !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#navigation-sidebar .nav-list-item,
.nav-sidebar .nav-list-item {
  display: flex !important;
  flex: 1 1 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#navigation-sidebar .nav-list-item > a,
.nav-sidebar .nav-list-item > a {
  display: flex !important;
  flex: 1 1 auto !important;
  height: 100% !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#navigation-sidebar nav ul li a div,
.nav-sidebar nav ul li a div,
#navigation-sidebar .nav-item,
.nav-sidebar .nav-item {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#navigation-sidebar .nav-sidebar-footer,
.nav-sidebar .nav-sidebar-footer,
#navigation-sidebar .fixed.bottom-0,
#navigation-sidebar .absolute.bottom-0,
.nav-sidebar .fixed.bottom-0,
.nav-sidebar .absolute.bottom-0 {
  display: block !important;
  flex-shrink: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
}

/* ============================
   ENHANCED BRAND NAME FIXES
   ============================ */

/* Ensure brand name is visible in expanded sidebar */
.nav-sidebar.expanded .brand-logo-expanded {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  max-width: none !important;
  width: auto !important;
  transform: scale(1) !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

/* Brand component parts styling */
.nav-sidebar .brand-logo-expanded .brand-test,
.nav-sidebar .brand-logo-expanded .brand-enzia {
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Fix for any potential hiding by parent containers */
.nav-sidebar .full-logo,
.nav-sidebar .full-logo > div {
  overflow: visible !important;
  max-width: none !important;
  width: auto !important;
}

/* Ensure proper text rendering */
.nav-sidebar .brand-testenzia {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

/* ============================
   MAIN CONTENT STYLING
   ============================ */

/* Background styling restored - margin disabled to avoid conflicts with NavigationWrapper */
.main-content, main {
  background: #fff !important;
  /* margin-left: 70px !important; DISABLED - conflicts with NavigationWrapper */
  padding-left: 0 !important;
  box-shadow: none !important;
  border-left: none !important;
}

/**
 * Aggressive Homepage Button Styles
 * Professional and attention-grabbing Call-to-Action buttons
 */

/* Glow animation for aggressive buttons */
@keyframes glow {
  0% {
    box-shadow: 0 0 20px rgba(251, 146, 60, 0.4), 0 0 40px rgba(251, 146, 60, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  100% {
    box-shadow: 0 0 30px rgba(251, 146, 60, 0.6), 0 0 60px rgba(251, 146, 60, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

/* Shimmer effect for button shine */
@keyframes shimmer {
  0% {
    transform: translateX(-100%) skewX(-12deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(200%) skewX(-12deg);
    opacity: 0;
  }
}

/* Enhanced pulse animation */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.9;
  }
}

/* Bounce effect for icons */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
  60% {
    transform: translateY(-2px);
  }
}

/* Urgent call-to-action styling */
.aggressive-cta-button {
  position: relative;
  background: linear-gradient(135deg, #f97316, #ef4444, #ec4899);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  cursor: pointer;
  animation: pulse 2s infinite, glow 2s ease-in-out infinite alternate;
  box-shadow: 
    0 0 25px rgba(251, 146, 60, 0.5), 
    0 0 50px rgba(251, 146, 60, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.12);
}

.aggressive-cta-button:hover {
  transform: scale(1.1) translateY(-2px);
  animation: glow 1s ease-in-out infinite alternate;
  box-shadow: 
    0 0 35px rgba(251, 146, 60, 0.7), 
    0 0 70px rgba(251, 146, 60, 0.5),
    0 12px 40px rgba(0, 0, 0, 0.15);
}

.aggressive-cta-button:active {
  transform: scale(1.05) translateY(0);
}

/* Shimmer overlay effect */
.aggressive-cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: skewX(-12deg);
  animation: shimmer 3s ease-in-out infinite;
}

/* Icon animations */
.aggressive-cta-button .rocket-icon {
  animation: bounce 2s ease-in-out infinite;
}

.aggressive-cta-button .arrow-icon {
  transition: transform 0.3s ease;
}

.aggressive-cta-button:hover .arrow-icon {
  transform: translateX(0.5rem) scale(1.2);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .aggressive-cta-button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    gap: 0.5rem;
  }
  
  .aggressive-cta-button:hover {
    transform: scale(1.05) translateY(-1px);
  }
}

/* Secondary button styling (Explore Tests) */
.secondary-cta-button {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: #374151;
  border: 2px solid #fed7aa;
  border-radius: 1rem;
  padding: 1rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.secondary-cta-button:hover {
  background: white;
  border-color: #f97316;
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.2);
  transform: translateY(-1px);
}

/* Accessibility improvements */
.aggressive-cta-button:focus,
.secondary-cta-button:focus {
  outline: 3px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .aggressive-cta-button,
  .aggressive-cta-button::before,
  .rocket-icon,
  .arrow-icon {
    animation: none !important;
  }
  
  .aggressive-cta-button:hover {
    transform: none !important;
  }
}

/* Additional visual emphasis */
.urgent-text {
  position: relative;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.urgent-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: shimmer 2s ease-in-out infinite;
}

/**
 * Authoritative sidebar layout — loads last among sidebar stylesheets.
 * Uses CSS grid so nav items fill the middle and footer stays pinned at the bottom.
 */

html body aside#navigation-sidebar.nav-sidebar {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  grid-template-columns: 1fr !important;
  overflow: hidden !important;
  height: 100vh !important;
  max-height: 100vh !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
}

html body aside#navigation-sidebar .logo-container {
  grid-row: 1 !important;
  flex: none !important;
  padding: 0.625rem 0.75rem !important;
  margin-bottom: 0 !important;
  min-height: 48px !important;
}

html body aside#navigation-sidebar .nav-main {
  grid-row: 2 !important;
  flex: none !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  margin-bottom: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Neutralise legacy nav height hacks */
html body aside#navigation-sidebar > nav,
html body aside#navigation-sidebar > .nav-main {
  height: 100% !important;
  margin-bottom: 0 !important;
}

html body aside#navigation-sidebar .nav-list {
  display: grid !important;
  grid-template-rows: repeat(6, minmax(0, 1fr)) !important;
  flex: none !important;
  height: 100% !important;
  min-height: 0 !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  align-content: stretch !important;
}

html body aside#navigation-sidebar .nav-list-item {
  display: flex !important;
  flex: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  height: 100% !important;
}

html body aside#navigation-sidebar .nav-list-item > a {
  display: flex !important;
  flex: 1 1 auto !important;
  height: 100% !important;
  min-height: 0 !important;
  width: 100% !important;
}

html body aside#navigation-sidebar .nav-list-item .nav-item {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  display: flex !important;
  align-items: center !important;
}

html body aside#navigation-sidebar .nav-sidebar-footer {
  grid-row: 3 !important;
  display: block !important;
  flex: none !important;
  flex-shrink: 0 !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 20 !important;
  padding: 0.5rem 0.375rem !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

html body aside#navigation-sidebar .nav-footer-profile,
html body aside#navigation-sidebar .nav-footer-logout {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
}

html body aside#navigation-sidebar .nav-footer-logout {
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  border: 1px solid transparent !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  justify-content: flex-start !important;
}

html body aside#navigation-sidebar.collapsed .nav-footer-logout,
html body aside#navigation-sidebar.collapsed .nav-footer-profile-inner {
  justify-content: center !important;
}

/* Footer and logo must not be clipped by legacy overflow rules */
html body aside#navigation-sidebar > .logo-container,
html body aside#navigation-sidebar > .nav-sidebar-footer {
  overflow: visible !important;
  max-height: none !important;
}
