/* Navbar styling */
.navbar {
  background-color: #fff;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ddd;
  position: relative;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  filter: brightness(0.9);
  height: 100px;
  width: auto;
  transform: scale(1.5);
  margin: 0;
  mix-blend-mode: multiply;
}

/* Sidebar nav container */
.nav-container {
  display: flex;
  z-index: 1000;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-weight: bold;
  text-decoration: none;
  color: black;
  transition: background-color 0.3s;
}

/* Responsive */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

/* Overlay for mobile menu */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 998;
}

.dropdown {
  position: relative;
}

.dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.dropdown > a::after {
  content: "▾";
  font-size: 1rem;
  transition: transform 0.3s ease;
}

/* Animate icon rotate */
.dropdown:hover > a::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  padding: 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 15px;
  color: black;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
  transition: background-color 0.2s ease;
}

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

.nav-links .active {
  background-color: #6366f1; /* Tailwind Indigo-500 */
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
}

/* Mobile styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-container {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 250px;
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 4rem 1.5rem 1rem;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .navbar .logo {
    height: 100px;
    width: auto;
    transform: scale(1.5);
    margin: 0;
    mix-blend-mode: multiply;
  }

  .nav-container.open {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
  }

  .dropdown-menu {
    display: none;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    position: relative;
    top: 0;
    left: 0;
    box-shadow: none;
    background: none;
    padding-left: 1rem;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-toggle::after {
    content: "▾";
    float: right;
    margin-right: 1rem;
    transition: transform 0.3s;
  }

  .dropdown.open .dropdown-toggle::after {
    transform: rotate(180deg);
  }
}
