.ba-switch {
    position: relative;
    display: block;
    width: 76px;
    height: 20px;
    margin: 6px 0 6px 0;
}

.dark .ba-layout .menu.empty:hover, .light .ba-layout .menu.empty:hover {
    background-color: inherit;
}

.ba-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ba-switch-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #8C8C8C;
    -webkit-transition: .4s;
    transition: .4s;
}

    .ba-switch-slider:before {
        position: absolute;
        content: "";
        height: 12px;
        width: 12px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

.ba-switch input:checked + .ba-switch-slider {
    background-color: #039BE5;
}

.ba-switch input:focus + .ba-switch-slider {
    box-shadow: 0 0 1px #039BE5;
}

.ba-switch input:checked + .ba-switch-slider:before {
    -webkit-transform: translateX(56px);
    -ms-transform: translateX(56px);
    transform: translateX(56px);
}

/* Rounded sliders */
.ba-switch-slider{
    border-radius: 34px;
}

    .ba-switch-slider:before {
        border-radius: 50%;
    }


.ba-switch-label-on, .ba-switch-label-off {
    position: absolute;
    top: 0;
    left: 0px;
    line-height: 18px;
    color: #fff;
    user-select: none;
    right: 0;
    text-align: center;
    display: none;
}


.ba-switch input:not(:checked) + .ba-switch-slider + .ba-switch-label-off {
    display: inline-block;
}


.ba-switch input:checked + .ba-switch-slider + .ba-switch-label-off + .ba-switch-label-on {
    display: inline-block ;
}
