.toggle-switch {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
 
}

.toggle-switch input[type="checkbox"] {
  display: none;
 
}
.toggle-switch span.toggle-slider {
  margin-left: 2mm;
}

.toggle-slider {
  width: 40px;
  height: 20px;
  background-color: #ff0000;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  margin-right: 10px;
}

.toggle-slider:before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: #fff;
  border-radius: 50%;
  transition: all 0.9s ease;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
  background-color: #4CAF50;
}

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

