

.switch {
    position: relative;
    display: inline-block;
    width: 60px;  /* Update width */
    height: 25px; /* Update height */
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: -7px;
    background-color: #ccc;
    transition: .4s;
    border-radius: 25px; /* Adjust for new height */
}

label:before {
    position: absolute;
    content: "";
    height: 20px; /* Adjust height */
    width: 20px;  /* Adjust width */
    left: 2px;    /* Adjust position */
    bottom: 2px;  /* Adjust position */
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + label {
    background-color: #4CAF50;
}

input:checked + label:before {
    transform: translateX(35px); /* Adjust for new width */
}