.switch-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  cursor: pointer;
  font-size: 14px;
}

.switch-label input {
  display: none; /* hide the default checkbox */
}

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

.switch-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 1px;
  left: 1px;
  transition: transform 0.3s;
}

.switch-label input:checked + .switch-slider {
  background: #4caf50; /* green when on */
}

.switch-label input:checked + .switch-slider::before {
  transform: translateX(20px);
}
