/* Loading Overlay Backdrop */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Stays slightly higher than Dialog if both are triggered */
}

/* Loading Panel Layout */
.loading-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-muted);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    min-width: 220px;
}

/* Pure CSS Keyframe Spinner */
.spinner-container {
    position: relative;
    width: 50px;
    height: 50px;
}

.custom-spinner {
    width: 100%;
    height: 100%;
    border: 3px solid var(--border-muted);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: globalSpin 0.8s linear infinite;
}

@keyframes globalSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Typography text spacing */
.loading-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
    text-align: center;
}

.hidden {
    display: none !important;
}