/* Version Switcher Dropdown */
.version-switcher {
    position: fixed;
    /* Sit below the always-visible info button (same inset, same icon size). */
    top: calc(var(--floating-ui-inset-y) + var(--floating-ui-icon-btn-size));
    right: var(--floating-ui-inset-x);
    z-index: 20000;
}

/* Keep the version switcher visible when the sidepanel is open (desktop). */
body.sidepanel-open .version-switcher {
    right: calc(var(--floating-ui-inset-x) + var(--sidepanel-width, 0px));
}

.version-switcher-select {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 32px 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    min-width: 80px;
}

.version-switcher-select:hover {
    background-color: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.version-switcher-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.version-switcher-select option {
    background: #1a1a1a;
    color: #fff;
    padding: 8px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .version-switcher-select {
        padding: 6px 28px 6px 10px;
        font-size: 12px;
        min-width: 70px;
        background-size: 10px;
        background-position: right 8px center;
    }
}

