
/* === Toggle switch === */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  vertical-align: middle;
  margin-left: 6px;
}

/* iCheck wrapper'ını toggle içinde tamamen gizle */
.toggle-switch .icheckbox_square-blue { display: none !important; }

/* Asıl checkbox */
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Görsel switch rayı */
.toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  transition: .2s;
  border-radius: 24px;
}

/* Top düğmesi */
.toggle-switch .slider:before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: .2s;
}

/* ÖNEMLİ: iCheck araya girdiği için general-sibling (~) kullanıyoruz */
.toggle-switch input:checked ~ .slider {
  background: #28a745;          /* ON = yeşil */
}
.toggle-switch input:checked ~ .slider:before {
  transform: translateX(26px);
}
