  /* The switch container */
  .switch {
      position: relative;
      display: inline-block;
      width: 100px;
      height: 32px;
  }

  /* Hide default checkbox */
  .switch input {
      opacity: 0;
      width: 0;
      height: 0;
  }

  /* The slider */
  .slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #ccc;
      transition: 0.4s;
      border-radius: 24px;
  }

  /* The circle inside the slider */
  .slider:before {
      position: absolute;
      content: "";
      height: 26px;
      width: 26px;
      left: 4px;
      bottom: 4px;
      background-color: white;
      transition: 0.4s;
      border-radius: 50%;
  }

  /* When checked, change background */
  input:checked+.slider {
      background-color: #4CAF50;
  }

  /* Move the circle to the right when checked */
  input:checked+.slider:before {
      transform: translateX(64px);
  }

  /* Optional: On/Off text inside the switch */
  .slider:after {
      content: 'Disabled';
      color: white;
      position: absolute;
      right: 10px;
      top: 7px;
      font-size: 14px;
      font-family: Arial, sans-serif;
  }

  input:checked+.slider:after {
      content: 'Active';
      left: 10px;
      right: auto;
  }