﻿label.switch {
    position: relative;
    display: inline-block;
    width: 40px; /* Adjust width */
    height: 20px; /* Adjust height */
}

    .switch input {
        display: none;
    }

label.switch span.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 10px; /* Rounded corners */
    -webkit-transition: .4s;
    transition: .4s;
}

    label.switch span.slider:before {
        position: absolute;
        content: "";
        height: 16px; /* Adjust size */
        width: 16px; /* Adjust size */
        left: 2px; /* Adjust position */
        bottom: 2px; /* Adjust position */
        background-color: white;
        border-radius: 50%; /* Round shape */
        -webkit-transition: .4s;
        transition: .4s;
    }

label.switch input:checked + .slider {
    background-color: #2196F3;
}

label.switch input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

label.switch input:checked + .slider:before {
    -webkit-transform: translateX(20px); /* Adjust movement */
    -ms-transform: translateX(20px); /* Adjust movement */
    transform: translateX(20px); /* Adjust movement */
}

.switch-description {
    padding-right: 12px;
}