/* Global app loading overlay - minimal & modern */
#app-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#app-loading-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

#app-loading-overlay .app-loading-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
    transform: scale(0.96);
    transition: transform 0.2s ease;
}

#app-loading-overlay.is-active .app-loading-card {
    transform: scale(1);
}

.app-loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #e2e8f0;
    border-top-color: #64748b;
    border-radius: 50%;
    animation: app-loading-spin 0.7s linear infinite;
}

.app-loading-text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    font-family: 'Inter', 'Sarabun', sans-serif;
}

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