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

.profile-dropdown-btn {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 30px;
  transition: all 0.3s ease;
  background-color: rgba(0, 0, 0, 0.05);
}

.profile-dropdown-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: white;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.profile-username {
  font-weight: 500;
  margin-right: 8px;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.profile-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.profile-dropdown-content {
  position: absolute;
  right: 0;
  top: 100%;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.profile-dropdown:hover .profile-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}

.profile-dropdown-content a {
  color: var(--text-color);
  padding: 10px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
}

.profile-dropdown-content a:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--primary-color);
}

.profile-icon {
  margin-right: 10px;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.dropdown-divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  margin: 8px 0;
}

/* Dark mode support */
body.dark-mode .profile-dropdown-btn {
  background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .profile-dropdown-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .profile-dropdown-content {
  background-color: #333;
}

body.dark-mode .profile-dropdown-content a {
  color: #e0e0e0;
}

body.dark-mode .profile-dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .dropdown-divider {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .profile-username {
    display: none;
  }
  
  .profile-dropdown-btn {
    padding: 6px;
  }
  
  .profile-avatar {
    margin-right: 5px;
  }
  
  .profile-dropdown-content {
    right: -10px;
  }
}
