* {
  box-sizing: border-box;
}

.header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 50px;
  background-color: #ffffff;
  box-shadow: 0 2px 5px #0000001a;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.logo-img {
  width: 50px;
  height: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #4b2c20;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-link {
  text-decoration: none;
  color: #6b3e2e;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #f97fa0;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-left: 80px;
}

.header-buttons .icon {
  font-size: 1.3rem;
  color: #6b3e2e;
  text-decoration: none;
  transition:
    color 0.3s ease,
    transform 0.2s ease;
}

.header-buttons .icon:hover {
  color: #f97fa0;
  transform: scale(1.1);
}

.user-initials {
  color: #6b3e2e;
  font-weight: bolder;
  font-family: "Quicksand", sans-serif;
  font-size: 1.2rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
  border: 2px solid #6b3e2e;
}

.user-initials:hover {
  color: #f97fa0;
  border: 2px solid #f97fa0;
}

.user-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-profile-pic {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #6b3e2e;
  transition: 0.3s;
}

.user-profile-pic:hover {
  border-color: #f97fa0;
}

.dropdown-menu {
  position: absolute;
  right: 10px;
  top: 90px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 1200;
  border-radius: 6px;
  padding: 1rem;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  color: #6b3e2e;
}

.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  display: block;
  padding: 6px 10px;
  color: #6b3e2e;
  text-decoration: none;
  font-size: 14px;
}

.dropdown-item:hover {
  background-color: #f0f0f0;
}

.dropdown-item.logout {
  color: #d33;
}

.dropdown-item i {
  margin-right: 8px;
  width: 16px;
}

.user-info {
  font-size: 16px;
  margin-bottom: 10px;
}

.toastify {
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(249, 127, 160, 0.2);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 1300;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #6b3e2e;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 999;
}

.nav-overlay.show {
  display: block;
}

@media (max-width: 1023px) {
  .header {
    padding: 14px 20px;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .hamburger {
    display: flex;
  }

  .header-buttons {
    margin-left: auto;
    padding-left: 0;
    gap: 20px;
  }

  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100dvh;
    width: 70%;
    max-width: 300px;
    background: #ffffff;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
    z-index: 1100;
    padding: 90px 36px 40px;
    transition: left 0.35s ease;
    overflow-y: auto;
  }

  .nav.open {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid #f5e6dd;
  }

  .nav-link {
    display: block;
    padding: 16px 0;
    font-size: 1.05rem;
  }

  .header-buttons .icon {
    font-size: 1.2rem;
  }

  .dropdown-menu {
    right: 0;
    top: 70px;
    min-width: 180px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 12px 16px;
  }

  .logo-text {
    font-size: 1.15rem;
  }

  .logo-img {
    width: 38px;
  }

  .header-buttons {
    gap: 14px;
  }

  .user-initials {
    font-size: 1rem;
    height: 35px;
    width: 35px;
  }

  .user-profile-pic {
    height: 35px;
    width: 35px;
  }
}

@media (max-width: 320px) {
  .header {
    padding: 12px 12px;
  }

  .logo-img {
    width: 30px;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .hamburger {
    width: 30px;
    height: 30px;
  }

  .header-buttons {
    gap: 10px;
  }

  .header-buttons .icon {
    font-size: 1.05rem;
  }

  .nav {
    width: 85%;
    max-width: 260px;
    padding: 70px 20px 30px;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 12px 0;
  }

  .dropdown-menu {
    min-width: 160px;
    right: 0;
    font-size: 13px;
  }
}
