﻿/* --------------------------------------------------
    Toggle Switch Container
    --------------------------------------------------*/
.toggle-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    width: 100%;
    max-width: 250px;
}

    .toggle-switch-wrapper .toggle-switch-label {
        word-break: break-word;
    }

    .toggle-switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 24px;
    }

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
        z-index: -1;
    }

.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;
}

    .toggle-slider::before {
        content: "";
        position: absolute;
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        border-radius: 50%;
        transition: transform 0.3s;
    }

.toggle-switch input:checked + .toggle-slider {
    background-color: #4A90E2;
}

    .toggle-switch input:checked + .toggle-slider::before {
        transform: translateX(26px);
    }

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}
