
/* User Profile Sidebar Section */
.user-profile-container {
  position: relative;
  display: flex;
  align-items: center;
}

button.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 180px;
  height: 40px;
  padding: 0 12px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  text-align: left;
  box-shadow: none;
}

button.user-profile-btn:hover {
  background: var(--background-secondary);
  border-color: var(--primary);
}

@media (max-width: 980px) {
  button.user-profile-btn {
    width: 100%;
  }
}

.user-profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.user-profile-info {
  flex: 1;
  min-width: 0; /* Enable truncation */
  display: flex;
  flex-direction: column;
}

.user-profile-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-profile-email {
  font-size: 11px;
  color: var(--muted-foreground);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dropdown */
.user-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: var(--popover);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 6px;
  z-index: 1000;
  flex-direction: column;
}

.user-profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 10px;
  margin-bottom: 2px;
}

.user-profile-avatar-lg {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.user-profile-info-lg {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.user-profile-info-lg .user-profile-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: -0.01em;
}

.user-profile-info-lg .user-profile-email {
    font-size: 11px;
    color: var(--muted-foreground);
}

.user-profile-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}

.user-profile-item {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 9px 12px !important;
  border: none !important;
  background: transparent !important;
  border-radius: var(--radius-md) !important;
  cursor: pointer;
  font-size: 13px !important;
  font-weight: 500;
  color: var(--foreground) !important;
  transition: background 0.15s ease;
  text-align: left !important;
  height: auto !important;
  margin: 0 !important;
  line-height: 1.3;
}

.user-profile-item:hover {
  background: var(--muted) !important;
  color: var(--foreground) !important;
}

.user-profile-item svg {
  color: var(--muted-foreground);
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.user-profile-item:hover svg {
  color: var(--foreground);
}
