﻿/* Generic top bar switch */

.top-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
}

.top-switch-input {
    display: none;
}

.top-switch-slider {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    background-color: #6c757d;
    border-radius: 999px;
    transition: background-color 0.2s ease;
    flex: 0 0 auto;
}

    .top-switch-slider::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 18px;
        height: 18px;
        background-color: #ffffff;
        border-radius: 50%;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
        transition: transform 0.2s ease;
    }

.top-switch-input:checked + .top-switch-slider {
    background-color: #0d6efd;
}

    .top-switch-input:checked + .top-switch-slider::after {
        transform: translateX(22px);
    }

.top-switch-text {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .top-switch-text {
        white-space: normal;
    }
}
