.navbar {
  background: #e0e3e5;
  border-bottom: 1px solid #000;
  padding: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Dark mode styles for navbar - BLACK THEME */
body.dark-mode .navbar {
  background: #1a1a2e;
  border-bottom: 1px solid #fffbf5;
}

.navbar-container {
  /* max-width: 1200px; */
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.navbar-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-right: 2rem;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.45rem;
  border-radius: 100%;
  width: 2.5rem;
  transition: background 0.2s ease;
  color: #000;
}

body.dark-mode .dark-mode-toggle {
  color: #e0e0e0;
}

.dark-mode-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}

body.dark-mode .dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.navbar-logo a {
  font-size: 1.25rem;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

 /* Add these styles to your existing CSS */
.navbar-logo .logo-image {
  height: 4rem; /* Adjust based on your design */
  margin-left: 4rem;
  /* padding: 0.4rem; */
  width: auto;
  max-width: 180px; /* Prevent logo from being too wide */
  object-fit: contain;
  transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar-logo .logo-image {
    height: 2rem; /* Slightly smaller on mobile */
    margin-left: 1rem;
    padding: 0;
    max-width: 150px;
  }

  .navbar-controls {
    margin-right: 0;
  }
}

body.dark-mode .navbar-logo a {
  color: #e0e0e0;
}

.navbar-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.navbar-menu li a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem; /* space between icon and username */
}

body.dark-mode .navbar-menu li a {
  color: #e0e0e0;
}

.navbar-menu li a:hover {
  color: #111827;
}

body.dark-mode .navbar-menu li a:hover {
  color: #ffffff;
}

.signin-btn {
  padding: 0.4rem 0.9rem;
  border: 1px solid #000;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  color: #000;
}

body.dark-mode .signin-btn {
  border-color: #e0e0e0;
  color: #e0e0e0;
}

.signin-btn:hover,
.signin-btn:hover a {
  background: #000;
  color: #fff !important;
}

body.dark-mode .signin-btn:hover,
body.dark-mode .signin-btn:hover a {
  background: #e0e0e0;
  color: #000000 !important;
}

.user-icon {
  display: flex;
  align-items: center;
}

.user-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #000;
  padding: 2px;
  transition: background 0.2s ease-in-out, border-color 0.3s ease;
  color: #000;
}

body.dark-mode .user-img {
  border-color: #e0e0e0;
  color: #e0e0e0;
}

.user-icon:hover .user-img {
  background: #000;
  color: #fff;
  filter: brightness(2);
}

body.dark-mode .user-icon:hover .user-img {
  background: #e0e0e0;
  filter: brightness(0.8);
}

.username {
  font-weight: 500;
  color: #000;
  transition: color 0.3s ease;
}

body.dark-mode .username {
  color: #e0e0e0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #000;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark-mode .mobile-menu-toggle {
  color: #e0e0e0;
}

.mobile-menu-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}

body.dark-mode .mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #e0e3e5;
  border: 1px solid #000;
  flex-direction: column;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

body.dark-mode .mobile-menu {
  background: #2d2d44;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu ul {
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  width: 100%;
  border-bottom: 1px solid rgba(66, 50, 50, 0.1);
}

body.dark-mode .mobile-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu li:last-child {
  border-bottom: none;
}

.mobile-menu li a {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: all 0.2s ease;
  gap: 0.75rem;
  font-size: 1rem;
}

body.dark-mode .mobile-menu li a {
  color: #e0e0e0;
}

.mobile-menu li a:hover {
  background: rgba(0, 0, 0, 0.05);
  padding-left: 1.75rem;
}

body.dark-mode .mobile-menu li a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-menu .user-info {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  gap: 0.75rem;
}

.mobile-menu .user-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #000;
  padding: 2px;
  transition: all 0.2s ease-in-out;
  color: #000;
}

body.dark-mode .mobile-menu .user-img {
  border-color: #e0e0e0;
  color: #e0e0e0;
}

.mobile-menu .username {
  font-weight: 500;
  color: #000;
  font-size: 1rem;
}

body.dark-mode .mobile-menu .username {
  color: #e0e0e0;
}

/* Mobile Sign In Button */
.mobile-menu .signin-btn {
  padding: 0.75rem 1.5rem;
  border: 1px solid #111827;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  color: #000;
  margin: 0.5rem 1.5rem;
  text-align: center;
  justify-content: center;
  display: flex;
}

body.dark-mode .mobile-menu .signin-btn {
  border-color: #e0e0e0;
  color: #e0e0e0;
}

.mobile-menu .signin-btn:hover {
  background: #000;
  color: #e0e3e5;
  padding-left: 1.5rem; /* Reset the hover padding from the general rule */
}

body.dark-mode .mobile-menu .signin-btn:hover {
  background: #e0e0e0;
  color: #000000;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex; /* Show only on mobile */
  }

  .dark-mode-toggle {
    margin-right: 0.5rem;
  }
  
  .navbar {
    padding: 1rem;
  }
  
  .navbar-container {
    padding: 0 0.5rem;
  }
}

@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important; /* Hide on desktop */
  }
  
  .mobile-menu {
    display: none !important;
  }
}



/* ===== CHRISTMAS THEME - NAVBAR (TEMPORARY) ===== */
/* Remove this entire block after Christmas */

/* Christmas menu items */
body.christmas-theme .signin-btn::before {
  content: "🎅";
  position: absolute;
  left: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Christmas navbar snow effect */
body.christmas-theme .navbar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: 
    radial-gradient(#c41e3a 1px, transparent 1px),
    radial-gradient(#2e8b57 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  opacity: 0.03;
  pointer-events: none;
  z-index: -1;
}

body.christmas-theme.dark-mode .navbar::after {
  background-image: 
    radial-gradient(#ff6b6b 1px, transparent 1px),
    radial-gradient(#3cb371 1px, transparent 1px);
}

/* Christmas username styling */
body.christmas-theme .username::after {
  content: "🎅";
  margin-left: 0.3rem;
  opacity: 0.8;
}
/* END CHRISTMAS THEME - NAVBAR */