/* Desktop navigation - visible on medium screens and up */
.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

/* Mobile navigation - visible below medium screens */
.mobile-nav {
  display: flex;
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none;
  }
}

/* Mobile menu dropdown */
.mobile-menu-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0;
}

.mobile-menu-dropdown.open {
  max-height: 500px;
  opacity: 1;
}

@media (min-width: 768px) {
  .mobile-menu-dropdown {
    display: none;
  }
}

nav {
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-bar-row {
  width: 100%;
}

@media (min-width: 768px) {
  .desktop-nav {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    margin-left: 2rem;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
  }
}

.desktop-nav-list {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  margin: 0;
  padding: 0;
}

.desktop-nav-list li {
  flex-shrink: 1;
}

.desktop-nav-list a {
  white-space: nowrap;
}

.nav-user-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: 'IBM Plex Sans', sans-serif;
  color: #374151;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.9));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}

.nav-user-inline:hover {
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .nav-user-inline {
  color: #e2e8f0;
  border-color: rgba(71, 85, 105, 0.4);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.85));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .nav-user-inline:hover {
  border-color: rgba(100, 116, 139, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-user-inline__icon {
  display: inline-flex;
  width: 0.95rem;
  height: 0.95rem;
  color: inherit;
}

.nav-user-inline__icon svg {
  width: 100%;
  height: 100%;
}

.nav-user-inline__label {
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.nav-user-inline__name {
  font-weight: 600;
  white-space: nowrap;
}

.nav-user-inline--mobile {
  margin: 0.75rem 0;
}

.nav-user-inline--admin {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.95), rgba(254, 226, 226, 0.9));
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nav-user-inline--admin:hover {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .nav-user-inline--admin {
  border-color: rgba(239, 68, 68, 0.5);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.6), rgba(69, 10, 10, 0.5));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(239, 68, 68, 0.1);
}

[data-theme="dark"] .nav-user-inline--admin:hover {
  border-color: rgba(248, 113, 113, 0.6);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3), inset 0 1px 0 rgba(239, 68, 68, 0.1);
}
