/* Fixed Header Styles */

/* Make header stick to top when scrolling */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Add padding to body to prevent content from being hidden under fixed header */
body {
  padding-top: 50px; /* Reduced space between header and content */
}

/* Enhance header appearance when scrolled */
header.scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Make sure dropdown menus appear correctly with fixed header */
.user-dropdown-menu {
  position: absolute;
  z-index: 1001;
}

/* Mobile menu positioning */
@media (max-width: 768px) {
  .mobile-menu {
    position: fixed;
    top: 50px; /* Match the reduced height */
    height: calc(100vh - 50px);
    overflow-y: auto;
  }
  
  body {
    padding-top: 45px; /* Slightly smaller for mobile */
  }
}
