.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #28393E;
  padding: 15px 30px;
  position: sticky;
  top: 0; /* This is what makes it actually stick */
  z-index: 999; /* So it stays above other content */
}

.nav-left a, .btn {
  color: #F1F0E8;
  text-decoration: none;
  margin-right: 20px;
  font-weight: bold;
}
.nav-left a:hover {
  color: #89A8B2;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-form {
  display: flex;
}
.search-input {
  padding: 5px;
}
.search-btn {
  background: #89A8B2;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
}

/* Fix the nav-left to allow dropdown positioning */
.nav-left {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

/* Dropdown container */
.dropdown-wrapper {
  position: relative;
}

/* Dropdown title styling */
.dropdown-title {
  color: white;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: bold;
  display: inline-block;
}

/* Hidden dropdown list */
.dropdown-list {
  display: none;
  position: absolute;
  top: 100%; /* show directly below Supplies */
  left: 0;
  background-color: #37474f;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
  flex-direction: column;
}

/* Dropdown links */
.dropdown-list a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  white-space: nowrap;
}

.dropdown-list a:hover {
  background-color: #546e7a;
}

/* Show on hover */
.dropdown-wrapper:hover .dropdown-list {
  display: flex;
}

.dropdown-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #37474f;
  min-width: 220px;
  max-height: 400px; /* ADJUST this if needed */
  overflow-y: auto;  /* Enables scroll */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: #888 #37474f;
}

.dropdown-list::-webkit-scrollbar {
  width: 8px;
}

.dropdown-list::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

