
.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    cursor: pointer;
}

.theme-switch input {
    display: none;
}

.theme-switch .slider {
    position: absolute;
    inset: 0;
    background: #d1d1d1;
    border-radius: 30px;
    transition: 0.3s;
}

.theme-switch .slider:before {
    position: absolute;
    content: "🌞"; 
    font-size: 18px;
    line-height: 24px;
    height: 24px;
    width: 24px;
    left: 3px;
    top: 3px;
    text-align: center;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.theme-switch input:checked + .slider {
    background: #4c4c4c;
}

.theme-switch input:checked + .slider:before {
    content: "🌙";
    transform: translateX(30px);
}

.theme-position {
    margin-right: 12px;
    margin-top: 3px;
}
