/* Theme switch: compact pill with Sun/Moon icons. */

.theme-switch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full, 9999px);
    gap: 2px;
    height: 36px;
    flex-shrink: 0;
}

.theme-switch-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-muted, #707070);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full, 9999px);
    cursor: pointer;
    transition: background 200ms ease,
                color 200ms ease,
                box-shadow 200ms ease;
    position: relative;
}

.theme-switch-btn:hover {
    color: var(--text-secondary, #a1a1aa);
}

.theme-switch-btn:focus-visible {
    outline: 2px solid var(--primary-500, #6366f1);
    outline-offset: 1px;
}

.theme-switch-btn[aria-pressed="true"] {
    background: linear-gradient(135deg, var(--primary-500, #6366f1), var(--accent-purple, #8b5cf6));
    color: #fff;
    box-shadow: 0 1px 6px rgba(99, 102, 241, 0.35);
    cursor: default;
}

.theme-switch-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    .theme-switch-btn {
        transition: none;
    }
}
