/* General Styles for the Navigation */
nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: white; /* White background for contrast */
  padding: 10px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow */
  border-bottom: 2px solid #37d3ab; /* Red underline */
}

nav img#brandLogo {
  height: 50px;
  cursor: pointer;
}

nav a.nav-link {
  background-color: transparent;
  border: none;
  font-size: 1em;
  font-weight: bold;
  color: black;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

nav a.nav-link.main:hover {
  background-color: #37d3ac52; /* Red hover background */
  color: black; /* Red text on hover */
}

nav .dropdown {
  position: relative;
  display: inline-block;
}

nav .dropdown-btn {
  background-color: transparent;
  border: none;
  font-size: 1em;
  font-weight: bold;
  color: black;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

nav .dropdown-btn:hover {
  background-color: #37d3ac3d; /* Red hover background */
  color: black;
}
span.username:hover {
  color: #37d3ab;
}
nav .dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 160px;
  border: 1px solid #37d3ab; /* Red border */
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

nav .dropdown-content a.nav-link {
  color: black;
  padding: 10px 16px;
  display: block;
  text-align: left;
}

nav .dropdown-content a.nav-link:hover {
  background-color: #37d3ac3d; /* Red hover background */
  color: black;
}

nav .dropdown:hover .dropdown-content {
  display: block; /* Show dropdown on hover */
}

/* User Section */
div.welcome {
  display: flex;
  align-items: center;
  gap: 8px;
}

span.username {
  font-weight: bold;
  color: #37d3ab; /* Highlighted red username */
}

/* Contact & Login Buttons */
a.nav-link.main {
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  nav a.nav-link {
    margin: 5px 0;
  }

  .dropdown-content {
    min-width: 120px; /* Smaller dropdowns for mobile */
  }
}
