.switch-label {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 22px;
}

    .switch-label input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: 0.5s;
    transition: 0.5s ease;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 20px;
        width: 20px;
        left: 1px;
        bottom: 1px;
        background-color: white;
        -webkit-transition: 0.5s;
        transition: 0.5s ease;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    }

.toggle-btn:checked + .slider {
    background-color: #28a745;
}

.toggle-btn:focus + .slider {
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.toggle-btn:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }