/* Selection Component */
.selection-component {
  display: inline-flex;
}

.selection-component .options {
  display: inline-flex;
  background: var(--color-surface);
  border: 0.5px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: visible;
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px;
}

.selection-component .option-label {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  background: transparent;
  border: none;
  border-right: 1px solid var(--color-border);
}

.selection-component .option-label-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}

.selection-component .option-label-clickable:hover {
  background: var(--color-surface-hover);
}

.selection-component .option {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--color-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: color-mix(in srgb, var(--color-text) 35%, transparent);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.selection-component .option:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.selection-component .option:last-child {
  border-right: none;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.selection-component .option-label + .option:first-of-type {
  border-radius: 0;
}

.selection-component .option-label:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.selection-component .option:hover {
  background: var(--color-surface-hover);
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}

.selection-component .option.selected {
  color: var(--color-text-secondary);
}

.selection-component .option.selected:hover {
  background: var(--color-surface-hover);
}

.selection-component .checkmark {
  font-size: 12px;
  font-weight: bold;
}

.selection-component .color-indicator {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 2px;
}

.selection-component .color-indicator[data-color-type="salary"] {
  background-color: var(--chart-color-salary);
}

.selection-component .color-indicator[data-color-type="bonus"] {
  background-color: var(--chart-color-bonus);
}

.selection-component .color-indicator[data-color-type="equity"] {
  background-color: var(--chart-color-equity);
}

.selection-component .color-indicator[data-color-type="custom"] {
  background-color: var(--chart-color-custom);
}

.selection-component .option-icon {
  padding: 8px 12px;
  gap: 0;
}

.selection-component .option-icon svg {
  width: 16px;
  height: 16px;
}

/* Tooltip styles */
.selection-component .option[title] {
  position: relative;
}

.selection-component .option[title]::before {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: var(--spacing-md) var(--spacing-lg);
  background: #2d2d2d;
  color: white;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.selection-component .option[title]::after {
  content: '';
  position: absolute;
  bottom: 90%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #2d2d2d;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.selection-component .option[title]:hover::before,
.selection-component .option[title]:hover::after {
  opacity: 1;
  visibility: visible;
}