/* ======================================
   Navbar Base
====================================== */
.navbar {
  background: linear-gradient(135deg, #FF3AAE 0%, #FF73C3 100%);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.8rem 2rem;
  transition: all 0.3s ease-in-out;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

/* When scrolling — light pink with soft shadow */
.navbar.scrolled {
  background: #FF73C3;
  box-shadow: 0 4px 12px rgba(255, 58, 174, 0.4);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(255, 182, 193, 0.3);
}

/* ======================================
   Brand Section
====================================== */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* Circular logo container */
.logo-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 4px 10px rgba(255, 58, 174, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* Actual logo image inside the wrapper */
.logo-wrapper img.navbar-logo {
  width: 90%;
  height: auto;
  border-radius: 50%;
}

/* Brand text beside logo */
.brand-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-left: 6px;
  white-space: nowrap;
}

/* ======================================
   Nav Links
====================================== */
.navbar-nav {
  gap: 1rem;
}

.nav-link {
  color: #f8fafc !important;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #fdd5df;
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fdd5df !important;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ======================================
   Buttons (Login, Dashboard, Logout)
====================================== */
.login-btn,
.dashboard-btn,
.logout-btn {
  padding: 8px 18px;
  border-radius: 25px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.login-btn {
  background: #fdd5df;
  color: #1e293b !important;
}

.login-btn:hover {
  background: #fbcfe8;
  transform: translateY(-2px);
}

.dashboard-btn {
  background: #22c55e;
  color: #ffffff !important;
}

.dashboard-btn:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

.logout-btn {
  background: #ef4444;
  color: #ffffff !important;
}

.logout-btn:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

/* ======================================
   Navbar Toggle (Mobile)
====================================== */
.navbar-toggler {
  border: none;
  background: transparent;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* ======================================
   Responsive Adjustments
====================================== */
@media (max-width: 991px) {
  .navbar {
    padding: 0.6rem 1rem;
  }

  /* Smaller logo and text side by side */
  .logo-wrapper {
    width: 50px;
    height: 50px;
  }

  .logo-wrapper img.navbar-logo {
    width: 90%;
  }

  .brand-text {
    font-size: 1.2rem;
    color: #ffeff7;
  }

  .navbar-brand {
    gap: 6px;
  }

  .navbar-nav {
    background: linear-gradient(135deg, #FF3AAE 0%, #FF73C3 100%);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    margin-top: 0.5rem;
  }

  .nav-link {
    display: block;
    padding: 10px 0;
    font-size: 1rem;
  }

  .login-btn,
  .dashboard-btn,
  .logout-btn {
    display: block;
    margin: 8px auto;
    width: 80%;
  }
}

@media (max-width: 576px) {
  .logo-wrapper {
    width: 42px;
    height: 42px;
  }

  .logo-wrapper img.navbar-logo {
    width: 85%;
  }

  .brand-text {
    font-size: 1rem;
  }

  .navbar-brand {
    gap: 4px;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .login-btn,
  .dashboard-btn,
  .logout-btn {
    width: 90%;
    font-size: 0.9rem;
  }
}
