/* Global Loading Overlay Component */
/* Can be used across all pages with custom messages */

[x-cloak] {
    display: none !important;
}

.global-loading-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.global-loading-overlay[x-show] {
    display: flex;
}

.loading-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 27, 52, 0.35);
    backdrop-filter: blur(2px);
}

.loading-card {
    position: relative;
    background: #ffffff;
    padding: 24px 32px;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10000;
    min-width: 280px;
    justify-content: center;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid #e5e7eb;
    border-top-color: #3c90c4;
    border-radius: 50%;
    animation: loading-spin 1s linear infinite;
}

@keyframes loading-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-card p {
    color: #52606d;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 520px) {
    .loading-card {
        padding: 20px 24px;
        min-width: 240px;
    }

    .loading-spinner {
        width: 32px;
        height: 32px;
        border-width: 3px;
    }

    .loading-card p {
        font-size: 14px;
    }
}
