/* TezToggle component styles */

.tez-toggle-container {
  /* Extends shared styles from form-fields.css */
}

.tez-toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  flex-shrink: 0;
}

.tez-toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.tez-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2c2c2c;
  transition: .4s;
  border-radius: 24px;
  border: 2px solid #444;
}

.tez-toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 2px;
  background-color: #666;
  transition: .4s;
  border-radius: 50%;
}

.tez-toggle-input:checked + .tez-toggle-slider {
  background-color: #4CAF50;
  border-color: #4CAF50;
}

.tez-toggle-input:checked + .tez-toggle-slider:before {
  transform: translateX(26px);
  background-color: white;
}

.tez-toggle-input:focus + .tez-toggle-slider {
  box-shadow: 0 0 1px #4CAF50;
}

/* Error state */
.tez-toggle-container.error .tez-toggle-slider {
  border-color: #e74c3c;
}

/* Disabled state */
.tez-toggle-container.disabled .tez-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.tez-toggle-container.disabled .tez-toggle-input {
  cursor: not-allowed;
} 