/* navbar.css */
.navbar-floating {
  position: sticky;
  top: 20px;
  z-index: 1000;
  margin: 0 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 10px 25px;
  transition: all 0.4s ease;
}

/* Hiệu ứng thu lại khi cuộn trang */
.navbar-floating.scrolled {
  top: 0;
  margin: 0;
  border-radius: 0 0 20px 20px;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 800;
  color: #00b894 !important;
  font-size: 1.3rem;
}

.nav-link {
  font-weight: 600;
  color: #2d3436 !important;
  margin: 0 8px;
  transition: 0.3s;
}

.nav-link:hover {
  color: #00b894 !important;
}

/* Search Box trong Nav */
.search-box {
  background: #f1f2f6;
  border-radius: 25px;
  padding: 8px 18px;
  align-items: center;
  position: relative;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  width: 150px;
}

@media (max-width: 768px) {
  .search-box {
    position: fixed;
    top: 10px;
    margin-left: 20px;
    left: 200px;
  }
}

.badge {
  color: black;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== PROFILE DROPDOWN ========== */
.profile-dropdown-wrapper {
  position: relative;
}

.profile-trigger-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.profile-trigger-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
  transition: border-color 0.2s;
}

.profile-trigger-btn:hover .profile-trigger-avatar {
  border-color: #00b894;
}

/* Dropdown Menu */
.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 280px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 0;
  display: none;
  z-index: 1100;
  overflow: hidden;
  animation: slideIn 0.2s ease-out;
}

.profile-dropdown-menu.show {
  display: block;
}

/* Header trong dropdown */
.profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.profile-dropdown-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-dropdown-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.profile-dropdown-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-dropdown-email {
  font-size: 0.8rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Divider */
.profile-dropdown-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 0;
}

/* Menu Items */
.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #374151;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}

.profile-dropdown-item:hover {
  background: #f3f4f6;
  color: #00b894;
}

.profile-dropdown-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  color: #6b7280;
}

.profile-dropdown-item:hover i {
  color: #00b894;
}

/* Logout button */
.profile-dropdown-logout {
  color: #dc2626;
}

.profile-dropdown-logout:hover {
  background: #fef2f2;
  color: #dc2626;
}

.profile-dropdown-logout i {
  color: #dc2626;
}

@media (max-width: 576px) {
  .profile-dropdown-menu {
    right: -10px;
    width: 260px;
  }
}
