/* GLOBAL FIX — push content below navbar */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0;
  padding-top: 72px; /* navbar height */
}

/* NAVBAR BASE */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 9999;
}

/* LEFT — LOGO */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #111;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.logo-icon {
  font-size: 24px;
  color: #111;
}

/* CENTER — SEARCH */
.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.search-box {
  width: 420px !important;
  max-width: 90%;
  background: #f2f2f2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  position: relative;
}

.search-icon {
  font-size: 20px;
  color: #666;
}

#searchBar {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
}

/* SEARCH RESULTS DROPDOWN */
.search-results {
  position: absolute;
  top: 46px;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  max-height: 300px;
  overflow-y: auto;
  z-index: 99999;
}

.search-item {
  padding: 10px 14px;
  cursor: pointer;
}

.search-item:hover {
  background: #f5f5f5;
}

/* RIGHT — ICONS */
.nav-right {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 40px;
}

/* ICON STYLE */
.nav-icon {
  font-size: 26px;
  color: #111;
  text-decoration: none;
  cursor: pointer;
}

.nav-icon:hover {
  color: #000;
}

/* PROFILE BUTTON */
.nav-profile-btn {
  border: none;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.nav-profile-btn:hover {
  background: rgba(0, 0, 0, 0.07);
}

/* AVATAR IMAGE */
.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

/* DROPDOWN MENU */
.profile-wrapper {
  position: relative;
}

.profile-menu {
  position: absolute;
  right: 0;
  top: 48px;
  width: 150px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  z-index: 999999;
}

.profile-menu .pm-item {
  padding: 12px;
  font-size: 14px;
  text-decoration: none;
  color: #222;
}

.profile-menu .pm-item:hover {
  background: #f7f7f7;
}

.logout {
  color: red;
}

/* SHOW MENU ON HOVER */
.profile-wrapper:hover .profile-menu {
  display: flex;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .search-box {
    width: 250px;
  }

  .nav-right {
    gap: 18px;
  }
}
/* Make logout form behave like a normal dropdown item */
.logout-form {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Make logout button look exactly like a .pm-item link */
.logout-link {
  width: 100%;
  text-align: left;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: red; /* same as your old logout style */
  font-size: 14px;
  font-family: inherit;
}

/* Hover matches .pm-item hover */
.logout-link:hover {
  background: #f7f7f7;
}
