/* User Dropdown Styles */
.nav__user-dropdown {
  position: relative;
  display: inline-block;
}

.nav__user-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.nav__user-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.nav__btn-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.nav__user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

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

.nav__user-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.nav__user-link:hover {
  background-color: #f5f5f5;
}

.nav__user-link:first-child {
  border-radius: 8px 8px 0 0;
}

.nav__user-link:last-child {
  border-radius: 0 0 8px 8px;
}

.nav__menu-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.nav__logout-btn {
  border-top: 1px solid #e0e0e0;
  color: #dc3545;
}

.nav__logout-btn:hover {
  background-color: #fff5f5;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .nav__user-menu {
    right: -20px;
    min-width: 140px;
  }
}

/* Profile text styling */
.nav__user-dropdown .nav__user-link {
  font-weight: 500;
}

/* Animation for smooth dropdown */
.nav__user-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid white;
}

.nav__user-menu::after {
  content: '';
  position: absolute;
  top: -9px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #e0e0e0;
}
