/*
 * Reusable dark/light toggle switch component - shared across the app.
 * Styled entirely against the --ecc-* tokens (theme-tokens.css), no
 * hardcoded colors, so it drops onto any page/layout unchanged.
 * Markup lives in resources/views/includes/theme-toggle.blade.php.
 */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.theme-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.theme-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--ecc-border, #E1E1E1);
  border-radius: 24px;
  transition: 0.2s;
}
.theme-switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--ecc-text-on-inverse, #fff);
  border-radius: 50%;
  transition: 0.2s;
}
.theme-switch input:checked + .theme-switch-slider {
  background-color: var(--ecc-primary, #2E9E30);
}
.theme-switch input:checked + .theme-switch-slider:before {
  transform: translateX(20px);
}
.theme-switch-label {
  font-size: 14px;
  color: var(--ecc-text-muted, #495057);
}
