/* SMALL global toggle style for ALL checkboxes */
input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  width: 32px;          /* smaller width */
  height: 18px;         /* smaller height */
  border-radius: 999px;
  background: #ccc;
  position: relative;
  cursor: pointer;
  outline: none;
  border: none;
  box-sizing: border-box;
  vertical-align: middle;
  display: inline-block;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

/* thumb */
input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;          /* smaller thumb */
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

/* checked = ON */
input[type="checkbox"]:checked {
  background: #4caf50;
}

/* move thumb */
input[type="checkbox"]:checked::after {
  transform: translateX(14px); /* 32 - 2*2 - 14 = 14 */
}

/* focus outline */
input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 2px #4caf50;
}

/* disabled */
input[type="checkbox"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
