.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 60px;
  background-color: var(--bg-color);
  color: var(--text-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand h1 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: 10px;
}

.menu-icon {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  position: relative;
  transition: background-color 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--text-color);
  transition: all 0.3s ease;
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  top: 8px;
}

.menu-icon.open {
  background-color: transparent;
}

.menu-icon.open::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-icon.open::after {
  transform: rotate(-45deg);
  top: 0;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-item {
  padding: 8px 0;
  position: relative;
}

.navbar-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.navbar-link:hover {
  background-color: var(--button-bg);
}

/* Dropdown menu styles */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background-color: var(--bg-color);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 8px 0;
  z-index: 1001;
  margin-top: 5px;
}

.dropdown-content a {
  color: var(--text-color);
  text-decoration: none;
  padding: 10px 16px;
  display: block;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
  background-color: var(--button-bg);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Arrow indicator for dropdown */
.dropdown .navbar-link::after {
  content: "▼";
  margin-left: 5px;
  font-size: 0.7em;
  display: inline-block;
  transition: transform 0.2s ease;
}

.dropdown:hover .navbar-link::after {
  transform: rotate(180deg);
}

.navbar-end {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar-slider {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 250px;
}

.slider-label {
  color: var(--text-color);
  font-size: 14px;
  white-space: nowrap;
}

.theme-toggle-button {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background-color: var(--button-bg);
  color: var(--text-color);
  font-weight: bold;
  transition: all 0.3s ease;
}

.theme-toggle-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .navbar-slider {
    max-width: 180px;
  }
  
  .slider-label {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }
  
  .navbar-brand {
    width: 100%;
    justify-content: space-between;
  }
  
  .menu-toggle {
    display: block;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 5px;
    margin: 10px 0;
  }
  
  .navbar-menu.open {
    display: flex;
  }

  .navbar-item {
    width: 100%;
    text-align: center;
  }
  
  .dropdown-content {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    background-color: var(--card-bg);
    border-radius: 0;
    margin-top: 5px;
  }
  
  .dropdown-content a {
    text-align: center;
    padding: 8px;
  }
  
  .dropdown.active .dropdown-content {
    display: block;
  }
  
  .navbar-end {
    display: none;
    margin-top: 10px;
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  
  .navbar-end.open {
    display: flex;
  }
  
  .navbar-slider {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
} 