.sts-toggle {
    width: 60px;
    height: 30px;
    cursor: pointer;
    display: flex;
}

.sts-track {
    position: relative;
    width: 100%;
    height: 100%;
    background: #e5e5e5;
    border-radius: 30px;
    transition: background .25s;
}

.sts-toggle[data-theme="dark"] .sts-track {
    background: #1f1f1f;
}

.sts-icon {
    position: absolute;
    top: 50%;
    font-size: 15px;
    transform: translateY(-50%);
    display: flex;
    z-index: 2;
    transition: opacity 0.25s;
}

.sun {
    left: 7px;
}

.moon {
    right: 7px;
}

/* Light mode: sun active on knob, moon faded on track */
.sts-toggle[data-theme="light"] .sun {
    opacity: 1;
}
.sts-toggle[data-theme="light"] .sun .fa-sun {
    color: rgba(0, 0, 0, 0.85) !important;
}
.sts-toggle[data-theme="light"] .moon {
    opacity: 0.35;
}
.sts-toggle[data-theme="light"] .moon .fa-moon {
    color: rgba(0, 0, 0, 0.6) !important;
}

/* Dark mode: moon active on knob, sun faded on track */
.sts-toggle[data-theme="dark"] .moon {
    opacity: 1;
}
.sts-toggle[data-theme="dark"] .moon .fa-moon {
    color: rgba(0, 0, 0, 0.85) !important;
}
.sts-toggle[data-theme="dark"] .sun {
    opacity: 0.35;
}
.sts-toggle[data-theme="dark"] .sun .fa-sun {
    color: rgba(255, 255, 255, 0.7) !important;
}

.fa-sun::before {
    content: "\f185";
    color: inherit !important;
}

.fa-moon::before {
    content: "\f186";
    color: inherit !important;
}

.sts-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    transition: transform .25s;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.sts-toggle[data-theme="dark"] .sts-knob {
    transform: translateX(30px);
}
