/* Container */
.switcher-container {
  margin: 12px 0;
}

/* Composant principal */
.switcher-component {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

/* Input caché */
.switcher-component input {
  display: none;
}

/* Slider */
.switch-slider {
  position: relative;
  width: 40px;
  height: 20px;
  background: #f0f0f0;
  border-radius: 20px;
  transition: background 0.3s;
}

/* Knob */
.switch-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--knob-color, #007bff);
  border-radius: 50%;
  transition: transform 0.3s;
}

/* État activé */
.switcher-component input:checked + .switch-slider::before {
  transform: translateX(20px);
}

/* Labels */
.switch-label-on {
  font-size: 14px;
  color: #28a745;
}

.switch-label-off {
  font-size: 14px;
  color: #dc3545;
}

/* Masquer le label inactif quand activé */
.switcher-component input:checked ~ .switch-label-off {
  display: none;
}

/* Masquer le label actif quand désactivé */
.switcher-component input:not(:checked) ~ .switch-label-on {
  display: none;
}
