/* Profile Dropdown Component */

.navbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-dropdown {
  position: relative;
}

.user-avatar-nav {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--gradient-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(58, 134, 255, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 2px solid white;
}

.user-avatar-nav:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(58, 134, 255, 0.4);
}

.user-avatar-nav img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  min-width: 220px;
  margin-top: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1100;
  overflow: hidden;
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a,
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #212529;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.dropdown-menu a:hover,
.dropdown-item:hover {
  background: #f8f9fa;
  color: var(--primary);
  padding-left: 20px;
}

.dropdown-menu a i,
.dropdown-item i {
  font-size: 16px;
  color: var(--primary);
  width: 20px;
  text-align: center;
}

.dropdown-divider {
  height: 1px;
  background: #e9ecef;
  margin: 8px 0;
}

.logout-link {
  color: #ff006e;
  border-top: 1px solid #e9ecef;
  padding-top: 12px;
  margin-top: 8px;
}

.logout-link:hover {
  background: #ffe0e6;
  color: #ff006e;
}

.logout-link i {
  color: #ff006e;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .dropdown-menu {
    min-width: 200px;
    right: -10px;
  }

  .user-avatar-nav {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    flex-direction: row;
}

.nav-username {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 14px;
    background: #f0f4ff;
    border-radius: 20px;
    border: 1.5px solid #d0dcff;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.user-avatar-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}