/* ---------- Navbar General ---------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #333;
  padding: 0.5em 1em;
  position: relative;
  flex-wrap: wrap;
}

.navbar ul.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
  align-items: center;
}

.navbar li {
  margin: 0.5em 1em;
}

.navbar a {
  color: white;
  text-decoration: none;
}

.navbar a:hover {
  text-decoration: underline;
}

/* ---------- Hamburger Menu (legacy, optional) ---------- */
.navbar-toggle {
  display: none;
  position: absolute;
  right: 1em;
  top: 0.6em;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ---------- Sidebar toggle buttons ---------- */
.sidebar-toggle-icons {
  display: none; /* hidden by default */
  gap: 8px;
}

.sidebar-toggle-icons button {
  background-color: #006699;
  color: white;
  border: none;
  padding: 0.4em 0.8em;
  border-radius: 5px;
  font-size: 1.2rem;
  cursor: pointer;
}

.sidebar-toggle-icons button:hover {
  background-color: #004d73;
}

/* Position left and right toggle icons */
.sidebar-toggle-icons.left {
  order: -1; /* left side */
}

.sidebar-toggle-icons.right {
  order: 1; /* right side */
}

/* ---------- Responsive Layout for Tablets/Mobile ---------- */
@media (max-width: 768px) {
  /* Nav links stacked vertically, hidden by default */
  .nav-links {
    flex-direction: column;
    align-items: center;
    display: none;
    width: 100%;
    background-color: #333;
    margin-top: 0.5em;
  }

  .nav-links.active {
    display: flex;
  }

  /* Show sidebar toggle buttons */
  .sidebar-toggle-icons {
    display: flex;
    margin-top: 0.5em;
    justify-content: center;
  }

  .nav-links li {
    margin: 0.5em 0;
  }

  /* Hamburger menu fallback (if used) */
  .navbar-toggle {
    display: block;
  }
}
