/* =========================================
   Misc Fixes
   ========================================= */
/* Fix Settings Container Visibility - Keep visible on both Desktop & Mobile since it's the main way to access speed on desktop */
.settings-container {
    display: block;
}

/* Loading Spinner */
.loading-spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-spinner-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color, #007AFF);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Language Switching Transition */
.lang-switching * {
    transition: opacity 0.2s ease-in-out !important;
}

body.lang-switching {
    pointer-events: none;
}