/**
 * @file Styles for ThemeSelector component
 */

.container {
  position: relative;
}

.trigger {
  display: flex;
  align-items: center;
  gap: var(--node-editor-space-sm, 8px);
  padding: var(--node-editor-space-sm, 6px) var(--node-editor-space-md, 12px);
  background: var(--node-editor-control-background, #1e293b);
  color: var(--node-editor-control-text-color, #f8fafc);
  border: var(--node-editor-input-border);
  border-radius: var(--node-editor-control-border-radius, 6px);
  font: var(--node-editor-control-text-font, 600 14px/1.4 system-ui);
  cursor: pointer;
  min-width: 140px;
  max-width: 200px;
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.trigger:hover {
  background: var(--node-editor-control-hover-background, #334155);
}

.triggerLabel {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.triggerIcon {
  font-size: 10px;
  opacity: 0.7;
}

.dropdown {
  position: absolute;
  top: calc(100% + var(--node-editor-space-xs, 4px));
  left: 0;
  min-width: 100%;
  max-height: 320px;
  overflow-y: auto;
  background: var(--node-editor-control-background, #1e293b);
  border: var(--node-editor-input-border);
  border-radius: var(--node-editor-card-border-radius, 8px);
  box-shadow: var(--node-editor-dialog-box-shadow);
  z-index: 1000;
  padding: var(--node-editor-space-xs, 4px);
  animation: dropdownFadeIn 0.15s ease;
}

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

.option {
  padding: var(--node-editor-space-sm, 8px) var(--node-editor-space-md, 12px);
  border-radius: var(--node-editor-control-border-radius, 6px);
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.option:hover {
  background: var(--node-editor-control-hover-background, rgba(255, 255, 255, 0.05));
}

.option[data-selected="true"] {
  background: var(--node-editor-selected-control-color, #3b82f6);
  color: var(--node-editor-selected-control-text-color, #ffffff);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .trigger {
    min-width: 120px;
  }
}
