.container {
  position: relative;
}

.trigger {
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.trigger:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3);
}

.trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.5);
}

.avatar {
  border-radius: var(--radius-full);
  width: 48px;
  height: 48px;
  object-fit: cover;
  display: block;
}

.avatarPlaceholder {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary-accent);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  overflow: hidden;
  animation: dropdownFadeIn 0.15s ease-out;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.userInfo {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.userName {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.95rem;
}

.userEmail {
  color: var(--color-text-secondary);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.divider {
  height: 1px;
  background: var(--color-border);
  margin: 0;
}

.menuItem {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  font-size: 0.9rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-base);
}

.menuItem:hover {
  background: rgba(148, 163, 184, 0.1);
}

.menuItem:focus-visible {
  outline: none;
  background: rgba(148, 163, 184, 0.15);
}

.menuIcon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-text-secondary);
}
