/* Shared navbar styles (single source for all pages) */
.navbar {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.92) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 0.3rem 0 !important;
  min-height: 60px;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.15);
}

.navbar-brand img {
  height: 35px;
  width: auto;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: #2c3e50 !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 0.3rem 0.8rem !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

.navbar-nav .nav-link:hover {
  color: #007bff !important;
  transform: translateY(-2px);
  text-decoration: none !important;
}

.navbar-nav .nav-link.active {
  color: #0056b3 !important;
  font-weight: 600;
  text-decoration: none !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: var(--ocean-gradient);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

@media (max-width: 991.98px) {
  .navbar {
    padding: 0.5rem 0;
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .navbar-brand img {
    height: 40px;
  }

  .navbar-toggler {
    border: none;
    padding: 6px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.05));
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
  }

  .navbar-toggler:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2), rgba(0, 123, 255, 0.1));
    transform: scale(1.05);
  }

  .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin: 15px -15px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 0;
  }

  .navbar-nav {
    padding: 20px 0;
  }

  .navbar-nav .nav-item {
    margin: 8px 0;
  }

  .navbar-nav .nav-link {
    padding: 15px 25px !important;
    border-radius: 15px;
    margin: 0 15px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    color: #2c3e50 !important;
  }

  .navbar-nav .nav-link:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.05));
    color: #007bff !important;
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
  }

  .navbar-nav .nav-link.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white !important;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
  }

  .navbar-nav .nav-link::after,
  .navbar-nav .nav-link.active::after,
  .navbar-nav .nav-link:hover::after {
    display: none !important;
  }
}
