/* Container and Hidden Input */
.toggle-input {
    display: none; /* Hide the standard checkbox */
}

/* The Switch Track */
.toggle-label {
    cursor: pointer;
    width: 50px;
    height: 25px;
    background: #ccc;
    display: block;
    border-radius: 25px;
    position: relative;
    transition: background 0.3s;
}

/* The Sliding Circle */
.toggle-button {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

/* Active "On" State */
.toggle-input:checked + .toggle-label {
    background: #4caf50; /* Green for "On" */
}

.toggle-input:checked + .toggle-label .toggle-button {
    left: calc(100% - 2px);
    transform: translateX(-100%);
}