/* ---------- Theme Picker ---------- */

.theme-picker-container {
  position: relative;
}

.theme-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background 0.1s;
}

.theme-picker-trigger:hover {
  background: var(--accent-bg);
}

.theme-picker-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: 220px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 6px;
  z-index: 200;
  animation: theme-picker-in 0.15s ease-out;
}

@keyframes theme-picker-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.theme-picker-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  opacity: 0.6;
  padding: 6px 8px 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-picker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: none;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  text-align: left;
  transition: background 0.1s;
}

.theme-picker-item:hover {
  background: var(--accent-bg);
}

.theme-picker-item.active {
  font-weight: 500;
  color: var(--text-h);
}

.theme-picker-item-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
}

.theme-picker-item-label {
  flex: 1;
}

.theme-picker-check {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.theme-picker-separator {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.theme-picker-accents {
  display: flex;
  gap: 6px;
  padding: 4px 8px 6px;
}

.theme-picker-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.1s;
  padding: 0;
}

.theme-picker-swatch:hover {
  transform: scale(1.15);
}

.theme-picker-swatch.active {
  border-color: var(--text-h);
}
