/* NAVBAR CONTAINER */
.nav-bar {
  position: relative;
  width: 100%;
  background-color: #6b4f3b; /* warm walnut */
  padding: 0.5rem 1rem;
  color: white;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LEFT SIDE LINKS */
.nav-left a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem;
  margin-right: 1rem;
}

.nav-left a:hover {
  text-decoration: underline;
}

/* RIGHT SIDE */
.nav-right {
  display: flex;
  align-items: center;
}

.nav-right a,
#welcomeUser {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem;
  margin-left: 1rem;
  cursor: pointer;
}

.nav-right a:hover,
#welcomeUser:hover {
  text-decoration: underline;
}

/* ACTIVE PAGE HIGHLIGHT */
.active {
  text-decoration: underline;
  font-weight: 600;
}

/* DROPDOWN MENU */
.user-menu {
  position: absolute;
  right: 1rem;
  top: 3.2rem;
  background-color: #6b4f3b; /* match navbar */
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.5rem 0;
  z-index: 1000;
  width: 160px;
}

.user-menu a,
.user-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 1rem;
  color: white;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.user-menu a:hover,
.user-menu button:hover {
  background-color: rgba(255,255,255,0.1);
}

/* HIDDEN UTILITY */
.hidden {
  display: none;
}

/* MOBILE MENU TOGGLE */
.menu-toggle {
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  display: none;
}

/* MOBILE MENU */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  transition: max-height 0.3s ease;
  overflow: hidden;
}

.nav-links.show {
  display: flex;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #6b4f3b;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  .nav-links.show {
    display: flex;
  }
}
