/* Checkbox - iOS style
 * https://watashi.xyz/css-custom-checkbox/
 */
.toggle-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 1rem;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-switch .slider {
    position: relative;
    width: 50px;
    height: 26px;
    background-color: #ccc;
    border-radius: 26px;
    margin-right: 12px;
    transition: background-color 0.3s ease;
}

.toggle-switch .slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input[type="checkbox"]:checked + .slider {
    background-color: #0076f6;
}

.toggle-switch input[type="checkbox"]:checked + .slider::before {
    transform: translateX(24px);
}

.toggle-switch input[type="checkbox"]:focus + .slider {
    outline: 2px solid #0076f6;
    outline-offset: 2px;
}

.toggle-switch .label-text {
    font-weight: normal;
}
