.theme-switch {
    --switch-width: 2.8em;
    --switch-height: 1.6em;
    --knob-size: 1.12em;

    font-size: 12px;
    position: relative;
    display: inline-block;
    width: var(--switch-width);
    height: var(--switch-height);
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.theme-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--evo-dark-grey);
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.5s;
}

.theme-slider::before {
    content: "";
    position: absolute;
    height: var(--knob-size);
    width: var(--knob-size);
    left: 10%;
    bottom: 15%;
    border-radius: 50%;
    background-color: var(--evo-dark-grey);
    box-shadow: inset 8px -4px 0 0 var(--evo-light-grey);
    transition: transform 0.5s, background-color 0.5s, box-shadow 0.5s;
}

.theme-switch input:checked + .theme-slider {
    background-color: var(--evo-dark-grey);
}

.theme-switch input:checked + .theme-slider::before {
    transform: translateX(100%);
    background-color: var(--evo-dark-grey);
    box-shadow: inset 15px -4px 0px 15px var(--evo-dark-yellow);
}
