/* ==========================================================================
   Reusable blocking loading veil (_LoadingOverlay.cshtml).

   Covers its nearest positioned ancestor (give that container
   `position: relative`) with a translucent layer so the underlying content
   stays visible behind it. Toggle with the `is-open` class (loading-overlay.js).
   ========================================================================== */

.loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(1.5px);
}

.loading-overlay.is-open {
    display: flex;
}

.loading-overlay__modal {
    width: 100%;
    max-width: 260px;
    text-align: center;
}

.loading-overlay__title {
    font-size: 14px;
    font-weight: 600;
    color: #2d3e4e;
    line-height: 1.4;
    letter-spacing: -0.1px;
    margin: 0 0 14px;
}

.loading-overlay__bar {
    position: relative;
    height: 6px;
    width: 100%;
    background: #e3e8eb;
    border-radius: 999px;
    overflow: hidden;
}

.loading-overlay__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    border-radius: 999px;
    background: linear-gradient(90deg, #10c9be, #2b92e0);
    animation: loading-overlay-slide 1.3s ease-in-out infinite !important;
}

@keyframes loading-overlay-slide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}
