/* --- Nav Container Scope --- */

/* Hide the checkbox logic */
.nav-container #menu-toggle {
  display: none;
}

/* The Hamburger Button (Trigger) */
.nav-container .hamburger-btn {
  font-size: 30px;
  cursor: pointer;
  padding: 15px;
  display: inline-block;
  color: #fff;
  transition: opacity 0.3s;
}

/* Sidebar Styling */
.nav-container .menu-list {
  position: fixed;
  left: -250px; /* Hidden off-screen */
  top: 0;
  width: 250px;
  height: 100vh;
  background-color: #333;
  list-style: none;
  margin: 0;
  padding: 60px 0 0 0;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

/* Open State */
.nav-container #menu-toggle:checked ~ .menu-list {
  left: 0;
}

/* Hide hamburger when menu is open */
.nav-container #menu-toggle:checked ~ .hamburger-btn {
  visibility: hidden;
  opacity: 0;
}

/* Menu Items & Hover */
.nav-container .menu-list li {
  position: relative;
  list-style: none;
}

.nav-container .menu-list a {
  display: block;
  padding: 15px 25px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #444;
  transition: background 0.2s;
}

.nav-container .menu-list a:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* Submenu (Opens to the Right) */
.nav-container .dropdown-content {
  display: none;
  position: absolute;
  top: 0;
  left: 100%; /* Align to the right edge of sidebar */
  width: 200px;
  background-color: #333;
  box-shadow: 5px 0 10px rgba(0,0,0,0.3);
  border-left: 1px solid #444;
}

.nav-container .dropdown:hover > .dropdown-content {
  display: block;
}

/* Close Button (X) */
.nav-container .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  padding: 5px;
  z-index: 101;
}

.nav-container .close-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}

/* Helper for Dropdown Icons */
.nav-container .dropbtn {
  display: flex;
  justify-content: space-between;
  align-items: center;
}