.nav-links {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

@media (max-width: 576px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

.nav-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding-top: 4px;
  margin-right: 20px;
  transition: border-color 0.2s;
}

.nav-link:hover {
  border-color: var(--hover-color);
}

#lead-in, #intro {
  opacity: 1;
  transition: opacity 2s ease-out;
}

/* Nav styling */
#nav {
  display: flex;
  align-items: center;
  background-color: white;
}

.main-nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1.5rem;
}

.user-dropdown {
  position: relative;
  margin-left: 1rem;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.dropdown-arrow {
  font-size: 0.7em;
  margin-left: 5px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 150px;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 100;
  overflow: hidden; /* Prevents highlight from extending beyond dropdown borders */
}

.user-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--text-color);
  text-align: left;
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: var(--hover-color);
}

/* Make button style match links */
button.dropdown-item {
  font-family: inherit;
  font-size: inherit;
}

/* Dropdown divider line */
.dropdown-divider {
  height: 1px;
  margin: 6px 0;
  background-color: #e9ecef;
}

/* Dropdown section header */
.dropdown-section-header {
  padding: 6px 12px;
  font-size: 0.75em;
  text-transform: uppercase;
  color: #666;
  font-weight: 600;
  letter-spacing: 0.5px;
  background-color: #f8f9fa;
}

/* Admin section styling */
.admin-item {
  color: #d32f2f;
}

.admin-item:hover {
  background-color: #ffe6e6;
  color: #b71c1c;
}

/* Responsive styles */
@media (max-width: 768px) {
  #nav {
    flex-wrap: wrap;
    height: auto;
    padding: 5px 15px;
  }

  .brand {
    padding: 10px 0;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin-left: 0 !important; /* Override inline margin-left:auto */
    margin-top: 5px;
    margin-bottom: 10px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-link {
    margin: 0;
    padding: 8px 12px;
    height: auto;
  }

  .user-dropdown {
    height: auto;
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  #queue_count {
    width: 100%;
    text-align: center;
    margin-left: 0 !important;
    margin-top: 10px;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .main-nav {
    flex-direction: column;
    align-items: center;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .nav-link:last-child {
    border-bottom: none;
  }
}