/* Modern glassmorphism navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: background var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base);
  flex-shrink: 0;
}

.navbar .theme-toggle {
  margin-left: var(--space-2);
}

.theme-toggle i {
  pointer-events: none;
  font-size: 1.2rem;
}

:root[data-theme='dark'] .theme-toggle {
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  color: var(--text-primary) !important;
  font-weight: var(--font-semibold);
}

:root[data-theme='dark'] .navbar-brand {
  color: var(--text-primary) !important;
}

.navbar-nav .nav-link {
  color: var(--text-secondary);
  font-weight: var(--font-medium);
  padding: var(--space-2) var(--space-3);
  transition: color 0.2s ease;
  position: relative;
  min-height: 44px;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-blue);
}

.navbar-nav .nav-link.active {
  color: var(--accent-blue);
}

.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  background: var(--accent-blue);
  border-radius: var(--radius-full);
}

@media (max-width: var(--screen-md)) {
  .navbar-collapse {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100%;
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: right 0.2s ease;
    box-shadow: var(--shadow-md);
  }
  .navbar-collapse.show {
    right: 0;
  }
}
