/**
 * Navigation styles for light navbar variant
 * Contains sty/* Dropdown card styling for light theme */
.navbar__drawer_card {
  background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
  backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 231, 235, 0.3); /* Very transparent light gray border */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}r header, navbar, and mobile menu with light theme
 */

/* Header styling for light variant */
.header-light {
  background-color: rgba(255, 255, 255, 0.15); /* Very transparent white background */
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.2); /* Very transparent light gray border */
  transition: all 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.header-light.scrolled {
  background-color: rgba(255, 255, 255, 0.25); /* Slightly more opaque when scrolled but still very transparent */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.3); /* Slightly more visible border when scrolled */
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

/* Logo transition */
.navbar__logo img {
  transition: opacity 0.3s ease;
}

/* Default state for all navbar elements - white text on transparent background */
.navbar__link,
.navbar__drawer_trigger,
.navbar__menu a {
  color: #ffffff; /* White text */
  transition: color 0.3s ease;
}

/* Hover states for navigation links */
.navbar__link:hover,
.navbar__drawer_trigger:hover {
  color: #e5e7eb; /* Light gray on hover */
}

/* Default state for burger lines - white on transparent background */
.burger-line {
  width: 22px;
  height: 2px;
  background-color: #ffffff; /* White color */
  margin: 3px 0; /* Reduced margin for shorter navbar */
  transition: all 0.3s ease;
}

/* Button styling for light theme */
.btn-primary-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #041b76; /* Primary blue background */
  color: white !important; /* White text */
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.btn-primary-light:hover {
  background-color: #05206c; /* Darker blue on hover */
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Dropdown menu styles for light theme */
.navbar__drawer_card {
  background-color: white; /* White background */
  border: 1px solid #e5e7eb; /* Light gray border */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.navbar__drawer_card .navbar__link,
.navbar__drawer_card .navbar__link div, 
.navbar__drawer_card .navbar__link p {
  color: #1f2937 !important; /* Keep dark text in dropdowns for readability */
}

.navbar__drawer_card .navbar__link:hover {
  background-color: #f9fafb; /* Very light gray hover background */
  color: #041b76 !important; /* Primary blue text on hover */
}

/* Mobile menu styling for light theme */
.navbar__menu {
  background-color: rgba(255, 255, 255, 0.95) !important; /* More opaque white background */
  backdrop-filter: blur(12px);
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1) !important; /* Add border for definition */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important; /* Add shadow for visibility */
}

.navbar__menu:not(.hidden) {
  max-height: 500px;
}

.navbar__menu a {
  display: block;
  padding: 0.75rem 1rem !important; /* Increase padding */
  color: #1f2937 !important; /* Dark text for readability on white background */
  font-weight: 500 !important;
  border-radius: 0.375rem;
  margin: 0.25rem 0.5rem;
  transition: all 0.2s ease;
}

.navbar__menu a:hover {
  color: #316FD4 !important; /* Blue text on hover */
  background-color: rgba(49, 111, 212, 0.1) !important; /* Light blue background on hover */
}

/* Mobile menu border styling */
.navbar__menu .border-b {
  border-color: #e5e7eb !important; /* Light gray border */
}

/* Burger menu animation */
.navbar__burger[aria-expanded="true"] .burger-line:first-child {
  transform: rotate(45deg) translate(4px, 4px);
}

.navbar__burger[aria-expanded="true"] .burger-line:last-child {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Dropdown arrow rotation animation */
.group:hover svg {
  transform: rotate(180deg);
}

/* Active page highlighting */
.navbar__link.text-primary,
.navbar__drawer_trigger.text-primary {
  color: #041b76 !important; /* Primary blue for active pages */
  font-weight: 600;
}

/* Reduced padding for shorter navbar */
.header-light nav {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Logo size adjustment for shorter navbar */
.navbar__logo img {
  height: 1.25rem; /* 20px */
}

@media (min-width: 768px) {
  .navbar__logo img {
    height: 1.5rem; /* 24px */
  }
}

/* Ensure proper contrast in all states */
@media (prefers-color-scheme: dark) {
  /* Override dark mode preferences to maintain light theme */
  .header-light,
  .navbar__drawer_card,
  .navbar__menu {
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: #1f2937 !important;
  }
  
  .navbar__link,
  .navbar__drawer_trigger,
  .navbar__menu a {
    color: #1f2937 !important;
  }
}

/* Production-specific overrides for mobile menu visibility */
@media (max-width: 1023px) {
  .navbar__menu {
    background-color: white !important;
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
  }
  
  .navbar__menu a {
    color: #1f2937 !important;
    font-weight: 600 !important;
    text-shadow: none !important;
  }
  
  .navbar__menu a:hover {
    background-color: #f3f4f6 !important;
    color: #316FD4 !important;
  }
}
