/* Switch Component Styles */

.switch-root {
  display: inline-flex;
  height: 1.25rem;
  width: 2.25rem;
  flex-shrink: 0;
  cursor: pointer;
  align-items: center;
  border-radius: 9999px;
  transition: background-color 0.2s ease;
  background-color: var(--input);
}

.switch-root:focus-visible {
  outline: none;
}

.switch-root:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.switch-root[data-state='checked'] {
  background-color: var(--primary);
}

.dark .switch-root {
  background-color: var(--input);
}

.dark .switch-root[data-state='checked'] {
  background-color: var(--primary);
}

.switch-thumb {
  pointer-events: none;
  display: block;
  height: 1rem;
  width: 1rem;
  border-radius: 9999px;
  background-color: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.switch-thumb[data-state='unchecked'] {
  transform: translateX(2px);
}

.switch-thumb[data-state='checked'] {
  transform: translateX(18px);
}
