/* Modern Toggle Switch */
.toggle-container {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

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

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 2.75rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-accent);
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm) inset;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 1rem;
  width: 1rem;
  left: 0.25rem;
  bottom: 0.25rem;
  background-color: var(--bg-primary);
  border-radius: 50%;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.toggle-input:checked + .toggle-slider {
  background-color: var(--primary);
  border-color: var(--primary);
}

.toggle-input:checked + .toggle-slider:before {
  transform: translateX(1.25rem);
  background-color: var(--bg-primary);
}

.toggle-input:focus + .toggle-slider {
  box-shadow: 0 0 0 3px var(--primary-focus);
}

.toggle-input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.toggle-label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
  user-select: none;
}
