/* Toggle container */
.toggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin: 10px;
}

/* Checkbox gizle */
.toggle input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
  left: 0;
  top: 0;
  cursor: pointer;
  z-index: 2;
}

/* Slider yapısı */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
  transition: background-color 0.3s ease;
}

/* Sliderın yuvarlak kısmı */
.slider::before {
  content: "";
  position: absolute;
  height: 26px;
  width: 26px;
  left: 4px;
  top: 4px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

/* Checkbox işaretliyse */
input[type="checkbox"]:checked + .slider {
  background-color: #4caf50;
}

input[type="checkbox"]:checked + .slider::before {
  transform: translateX(26px);
}
