/**
 * ============================================================
 * shared/components/LoadingOverlay/LoadingOverlay.css
 * ============================================================
 */

.loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    opacity: 0.92;
    z-index: 10;
    transition: opacity 0.4s ease;
}

.loading-overlay.hidden {
    display: none;
    pointer-events: none;
}

.spinner-ring {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-ink);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-bottom: 12px;
}

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

.loading-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 600px) {
    .spinner-ring {
        width: 32px;
        height: 32px;
        border-width: 2.5px;
        margin-bottom: 8px;
    }
    .loading-text { font-size: 0.75rem; }
}

@media (max-height: 700px) and (max-width: 600px) {
    .spinner-ring {
        width: 24px;
        height: 24px;
        border-width: 2px;
        margin-bottom: 6px;
    }
    .loading-text { font-size: 0.65rem; }
}