/* ── Theme switch slider (DHA-style) ─────────────────────────────────────── */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 28px;
    cursor: pointer;
}

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

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    transition: background 0.4s;
    border-radius: 34px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.theme-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    transition: transform 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .theme-slider {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

input:checked + .theme-slider:before {
    transform: translateX(32px);
}

.theme-slider .ts-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    transition: opacity 0.3s;
    pointer-events: none;
}

.theme-slider .ts-sun {
    left: 6px;
    color: #fff;
}

.theme-slider .ts-moon {
    right: 6px;
    color: #60a5fa;
}

input:checked + .theme-slider .ts-sun {
    opacity: 0.3;
}

input:not(:checked) + .theme-slider .ts-moon {
    opacity: 0.3;
}
