/* Modern Navigation Header Styles */
header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
}

.header-logo {
  height: 32px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  position: relative;
}

.nav-item {
  color: #374151;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-item:hover {
  color: #111827;
  background-color: #f9fafb;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #374151;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.dropdown-toggle:hover {
  color: #111827;
  background-color: #f9fafb;
}

.dropdown-arrow {
  transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 8px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1001;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  color: #374151;
  text-decoration: none;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f9fafb;
  color: #111827;
}

/* Admin Menu Item */
#admin-nav-item {
  color: #9945ff;
  background-color: #f3f0ff;
  border: 1px solid #e0d4ff;
}

#admin-nav-item:hover {
  color: #7c3aed;
  background-color: #ede9fe;
  border-color: #c4b5fd;
}

#admin-nav-item i {
  margin-right: 6px;
}

/* Auth Section (for authenticated header) */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.auth-item {
  font-size: 14px;
}

.logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #dc2626;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background-color: #fee2e2;
  color: #b91c1c;
}

/* Active states */
.nav-item.active {
  color: #111827;
  background-color: #f3f4f6;
}

.dropdown-toggle.active {
  color: #111827;
  background-color: #f3f4f6;
}

/* Mobile-specific dropdown behavior */
@media (max-width: 768px) {
  .dropdown-menu {
    display: none;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f9fafb;
    margin-top: 8px;
    border-radius: 6px;
  }
  
  .dropdown:hover .dropdown-menu {
    display: none; /* Disable hover on mobile */
  }
  
  .dropdown.active:hover .dropdown-menu {
    display: block; /* Enable for active state */
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 16px 24px;
  }
  
  .header-left {
    width: 100%;
    justify-content: center;
    margin-bottom: 16px;
  }
  
  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
  }
  
  .nav-auth {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
} 