.logo {
  height: 40px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}

/* Left side */
.nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2937;
}

/* Hidden checkbox */
.nav-checkbox {
  display: none;
}

/* Hamburger icon */
.nav-toggle-label {
  font-size: 1.8rem;
  cursor: pointer;
  user-select: none;
  display: block;
}

/* Mobile menu */
.nav-links {
  display: none;
  flex-direction: column;
  background: white;
  position: absolute;
  top: 70px;
  right: 0;
  width: 100 percent;
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  max-width: 150px;
}

/* If checkbox is checked, show menu */
.nav-checkbox:checked ~ .nav-links {
  display: flex;
}

/* Links */
.nav-links a {
  padding: 0.8rem 0;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
}

.nav-links a:hover {
  color: #111827;
}

.nav-links .active {
  color: #4f46e5;
  font-weight: 700;
}

/* Avatar */
.nav-links img {
  height: 35px;
  width: 35px;
  border-radius: 50%;
  margin-top: 1rem;
}

#header-email {
  max-width: 100 percent;
  display: block;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 500;
  color: #374151;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Desktop layout */
@media (min-width: 768px) {
  .nav-toggle-label {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 1.5rem;
    width: auto;
    padding: 0;
    box-shadow: none;
    border: none;
    align-items: center;
    max-width: none;
  }

  .nav-links a {
    padding: 0;
    margin-left: 1rem;
  }

  .nav-links img {
    height: 35px;
    width: 35px;
    border-radius: 50%;
    margin-top: 0rem;
    }

  #header-email {
    max-width: 200px;
    margin-top: 0;
    text-overflow: initial;
    white-space: normal;
    overflow: visible;
    text-align: right;
    margin-bottom: 0px;
  }
}
