header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 var(--nav-padding);
}

/* ===== LOGO STYLES ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex: 0 0 auto; /* Don't grow or shrink */
}

.logo:hover {
  transform: translateY(-1px);
}

.logo a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text::before {
  content: 'U';
  width: 36px;
  height: 36px;
  background: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.logo-main {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: -0.5px;
}

/* ===== NAVIGATION STYLES ===== */
nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1; /* Take up the remaining space and center content */
  margin: 0 40px; /* Add some breathing room from logo and search */
}

nav ul {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0;
}

/* ===== CLEAN TEXT-ONLY NAVIGATION BUTTONS WITH COOL HOVER EFFECTS ===== */

/* Base Navigation Link Styles - Text Only */
.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: transparent;
  overflow: hidden;
  margin: 0 4px;
}

/* Cool slide-in effect for hover */
.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 105, 180, 0.15), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

/* Regular navigation links - Keep text-only, cool hover */
.nav-link:not(.btn):not(.btn-primary):not(.btn-secondary) {
  background: transparent;
}

.nav-link:not(.btn):not(.btn-primary):not(.btn-secondary):hover {
  background: rgba(255, 105, 180, 0.1);
  color: var(--primary-color);
  text-decoration: none;
  transform: translateY(-2px);
}

.nav-link:not(.btn):not(.btn-primary):not(.btn-secondary):hover::before {
  left: 100%;
}

/* Current page indicator */
.nav-link.current-page:not(.btn) {
  background: rgba(255, 105, 180, 0.12);
  color: var(--primary-color);
  font-weight: 600;
}

/* Secondary button - Text only with cool hover animation */
.nav-link.btn-secondary {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-weight: 500;
}

.nav-link.btn-secondary:hover {
  background: rgba(255, 105, 180, 0.1);
  color: var(--primary-color);
  text-decoration: none;
  transform: translateY(-2px) scale(1.05);
}

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

/* Primary button - Text only with stronger hover animation */
.nav-link.btn-primary {
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-weight: 600;
}

.nav-link.btn-primary:hover {
  background: rgba(255, 105, 180, 0.15);
  color: #ff45a0;
  text-decoration: none;
  transform: translateY(-2px) scale(1.05);
}

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

/* Override specificity - Keep clean text buttons */
nav ul li a.nav-link.btn-primary {
  background: transparent !important;
  border: none !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  padding: 12px 24px !important;
  border-radius: 12px !important;
}

nav ul li a.nav-link.btn-primary:hover {
  background: rgba(255, 105, 180, 0.15) !important;
  color: #ff45a0 !important;
  text-decoration: none !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: none !important;
}

nav ul li a.nav-link.btn-secondary {
  background: transparent !important;
  border: none !important;
  color: var(--text-color) !important;
  font-weight: 500 !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  padding: 12px 24px !important;
  border-radius: 12px !important;
}

nav ul li a.nav-link.btn-secondary:hover {
  background: rgba(255, 105, 180, 0.1) !important;
  color: var(--primary-color) !important;
  text-decoration: none !important;
  transform: translateY(-2px) scale(1.05) !important;
}

/* Enhanced icon animations */
.nav-link i {
  font-size: 13px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.nav-link:hover i {
  opacity: 1;
  transform: scale(1.1) rotate(5deg);
}

/* Enhanced focus states */
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== SEARCH BAR STYLES - MOVED TO FAR RIGHT ===== */
.search-bar {
  position: relative;
  width: 240px; /* Slightly wider for better balance */
  flex: 0 0 auto; /* Don't grow or shrink */
}

.search-bar input[type="text"] {
  width: 100%;
  height: 40px;
  padding: 0 45px 0 40px;
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  font-size: 14px;
  color: var(--text-color);
  transition: all 0.3s ease;
  outline: none;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-bar input[type="text"]:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
  background: white;
  transform: translateY(-1px);
}

.search-bar input[type="text"]::placeholder {
  color: var(--light-text);
}

/* Search icon */
.search-bar .fas.fa-search:first-of-type,
.search-bar i.fas.fa-search:first-child {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--light-text);
  font-size: 14px;
  pointer-events: none;
  z-index: 2;
}

.search-bar button {
  position: absolute;
  right: 3px;
  top: 3px;
  bottom: 3px;
  width: 34px;
  border: none;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--primary-color), #ff45a0);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(255, 105, 180, 0.3);
}

.search-bar button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4);
}

/* ===== CLEAN TEXT-ONLY USER MENU ===== */
.user-menu {
  position: relative;
}

.user-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
}

.user-dropdown-toggle:hover,
.user-dropdown-toggle.active {
  background: rgba(233, 30, 99, 0.1);
  color: var(--primary-color);
}

.user-dropdown-toggle .fas.fa-user-circle {
  font-size: 16px;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-dropdown-toggle .fas.fa-chevron-down {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.user-dropdown-toggle.active .fas.fa-chevron-down {
  transform: rotate(180deg);
}

.username {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

/* ===== DROPDOWN MENU STYLES ===== */
.user-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  z-index: 1001;
}

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

.user-dropdown-menu li {
  list-style: none;
  margin: 0;
}

.user-dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.user-dropdown-menu .dropdown-item:hover {
  background: rgba(233, 30, 99, 0.08);
  color: var(--primary-color);
  text-decoration: none;
}

.user-dropdown-menu .dropdown-item.logout:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.user-dropdown-menu .dropdown-item i {
  width: 14px;
  text-align: center;
  opacity: 0.7;
  font-size: 12px;
}

.user-dropdown-menu .dropdown-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 6px 0;
}

/* ===== LEGACY DROPDOWN COMPATIBILITY ===== */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 8px;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  animation: dropdown-fade 0.3s ease;
  transform-origin: top center;
  z-index: 1001;
}

@keyframes dropdown-fade {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-menu li {
  list-style: none;
  margin: 0;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.15s ease;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: rgba(233, 30, 99, 0.08);
  color: var(--primary-color);
  text-decoration: none;
}

/* ===== MOBILE MENU BUTTON - TEXT STYLE ===== */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(233, 30, 99, 0.1);
  color: var(--primary-color);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  /* :root {
    --nav-padding: 20px;
    --header-height: 110px;
  } */

  .header-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
  }
  
  .logo {
    margin-bottom: 0;
    order: 1;
  }
  
  nav {
    order: 2;
    margin-left: auto;
  }
  
  .search-bar {
    order: 3;
    width: 100%;
    margin-top: 12px;
    max-width: none;
  }
  
  nav ul {
    gap: 8px;
  }
  
  .logo-main {
    font-size: 20px;
  }
  
  .nav-link {
    font-size: 13px;
    padding: 6px 12px;
    transition: all 0.2s ease;
  }
  
  .nav-link:hover {
    transform: translateY(-1px);
  }
  
  .user-dropdown-toggle {
    padding: 6px 10px;
  }
  
  .username {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 480px) {
  /* :root {
    --nav-padding: 16px;
    --header-height: 120px;
  } */

  .header-content {
    padding: 12px var(--nav-padding);
  }
  
  .logo-main {
    font-size: 18px;
  }
  
  nav ul {
    gap: 6px;
  }
  
  .nav-link {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .search-bar {
    margin-top: 12px;
  }
  
  .search-bar input[type="text"] {
    height: 36px;
    font-size: 13px;
    padding: 8px 40px 8px 35px;
  }
  
  .search-bar button {
    width: 30px;
    right: 3px;
  }
}