/* ================= NAVBAR ================= */

.navbar-custom {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  padding: 8px 0; /* ⬅ reduced from 14px */
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}


/* Brand */
.navbar-brand {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.4rem !important;
  letter-spacing: 0.6px !important;
  text-decoration: none !important;
  padding: 0 20px !important;
}

/* Buttons */
.navbar-custom .btn {
  border-radius: 20px;
  padding: 6px 16px;
  font-weight: 500;
  font-size: 13.5px;
  margin: 0 4px;
}

@media (max-width: 992px) {
  .navbar-brand {
    font-size: 1.2rem;
    padding: 0 10px;
  }
  
  .navbar-custom .btn {
    font-size: 12px;
    padding: 5px 12px;
    margin: 0 2px;
  }
  
  .nav-link-item {
    display: none;
  }
  
  .nav-link-item:nth-child(1),
  .nav-link-item:nth-child(2) {
    display: inline-block;
  }
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1rem;
  }
  
  .navbar-custom .btn {
    font-size: 11px;
    padding: 4px 10px;
  }
  
  .profile-name {
    display: none !important;
  }
  
  .profile-menu {
    right: 8px;
    width: 180px;
  }
}


.navbar-custom .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.65);
}

.navbar-custom .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.navbar-custom .btn-warning {
  font-weight: 700;
  color: #1a1a1a;
}

/* ================= PROFILE DROPDOWN ================= */

.profile-dropdown {
  position: relative;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;           /* ⬅ no capsule */
  background: transparent;      /* ⬅ flat */
  transition: background 0.2s ease;
}

.profile-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
}


.profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffcc00, #ff9f00);
  color: #1a1a1a;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}



.profile-name {
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  letter-spacing: 0.2px;
}


/* Dropdown */
.profile-menu {
  position: absolute;
  top: 54px;
  right: 0;
  width: 220px;
  background: linear-gradient(180deg, #ffffff, #f1f6ff);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(13, 110, 253, 0.14);
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: all 0.22s ease;
  z-index: 999;
}

.profile-menu.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.profile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  text-decoration: none;
  color: #1f2d3d;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.profile-menu a:hover {
  background: linear-gradient(90deg, #e7f0ff, #f7faff);
  padding-left: 22px;
}

.profile-menu .divider {
  height: 1px;
  background: #e5e9f2;
  margin: 6px 0;
}

.profile-menu a.logout {
  color: #dc3545;
  font-weight: 700;
}

.profile-menu a.logout:hover {
  background: linear-gradient(90deg, #ffe5e5, #fff5f5);
}
@media (max-width: 768px) {
  .profile-trigger {
    padding: 4px 10px;
  }

  .profile-name {
    display: none; /* avatar-only on mobile */
  }

  .profile-menu {
    right: 8px;
    width: 200px;
  }
}
@media (max-width: 768px) {
  .profile-name {
    display: none;
  }

  .profile-trigger {
    padding: 4px;
  }
}
/* ================= ACTIVE NAV LINK ================= */

.navbar-custom .btn.active,
.navbar-custom .nav-link-item.active {
  background: rgba(255, 208, 0, 0.15) !important;
  border-color: #ffd000 !important;
  color: #ffd000 !important;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(255, 208, 0, 0.3);
}

