﻿/* --------------------------------------------------
    Toggle Switch Container
    --------------------------------------------------*/
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

    /* Gizli checkbox */
    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
        z-index: -1;
    }

/* Slider çerçevesi (arka plan) */
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: background-color 0.3s;
}

    /* Slider üzerindeki "knob" */
    .toggle-slider::before {
        content: "";
        position: absolute;
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        border-radius: 50%;
        transition: transform 0.3s;
    }

/* Checked (on) durumu */
.toggle-switch input:checked + .toggle-slider {
    background-color: #4A90E2;
}

    .toggle-switch input:checked + .toggle-slider::before {
        transform: translateX(26px);
    }

/* Disabled durumu (isteğe bağlı) */
.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}
