.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  border-bottom: 1px solid #eee;
  height: 80px;
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 10000;
}

.logo,
.logo a {
  height: 100%;
  display: flex;
  align-items: center;
}

.logo img {
  width: auto;
  display: block;
  object-fit: contain;
  max-height: 75px;
}



/* Desktop links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary-color);
  font-size: 1rem;
  transition: color 0.3s ease-in-out; 
}

.nav-links a:hover {
  color: var(--secondary-color);
  font-weight: 600;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-icon {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 50%;
  padding: 6px 8px;
  font-size: 1rem;
  cursor: pointer;
}

.user-icon i {
  color: var(--white-color);
}

/* Pop-up under user icon */
#nav_pop {
  position: absolute;
  top: 3.5rem;
  right: 2.5rem;
  background-color: var(--secondary-color);
  padding-block: 1rem;
  border-radius: 10px;
}

#nav_pop li {
  list-style: none;
  
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all ease-in-out 0.3s;
}
#nav_pop li a{
  text-decoration: none;
  color: var(--white-color);
}
#nav_pop li:hover {
  background-color: var(--primary-color);
}

/* Sidebar (mobile) */
#sidebar {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  background-color: var(--white-color);
  padding: 2rem 1rem;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { right: -100%; }
  to { right: 0; }
}

#sidebar figure img {
  width: 60%;
  height: auto;
}

#sidebar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#sidebar ul li a {
  color: var(--black-color);
  font-size: 1.1rem;
  text-decoration: none;
}

#sidebar .nav-icons {
  margin-top: 1rem;
  display: block;
}

/* Close button */
#close_sidebar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--black-color);
  cursor: pointer;
}

/* Hamburger button (mobile trigger) */
.btn-hamburger {
  display: none;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 0.5rem 0.8rem;
  font-size: 1.3rem;
  border-radius: 5px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links,
  .nav-icons {
    display: none;
  }

  .btn-hamburger {
    display: block;
  }
}
