/* theme-switcher.css
 * Styles for the theme selector dropdown and its container
 */

/* Container */
.theme-switcher {
  display: flex;
  align-items: center;
  margin: 0;
}

/* Dropdown */
.theme-select {
  min-width: 120px;
  padding: 0.35rem 2rem 0.35rem 0.75rem;
  appearance: none;
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.25em;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  border-radius: var(--radius);
  transition: all 0.2s ease;
  /* Base field look pulled from base, scoped here for the selector */
  background-color: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
  font-family: var(--font-ui, system-ui, sans-serif);
}

/* Placement tweaks when used in the top bar */
.theme-switcher-wrapper select,
.theme-switcher .theme-select {
  padding: 0.35rem 2rem 0.35rem 0.75rem;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .theme-switcher { width: 100%; }
  .theme-switcher select { flex-grow: 1; }
}

@media (max-width: 480px) {
  .theme-select { min-width: 90px; font-size: 0.85rem; }
}
