/* ==========================================================================
   INAP master loader  (Content/assets/js/inap-loader.js builds the markup)
   - Full-screen overlay:  showLoader("optional message") / hideLoader()
     (also InapLoader.show / InapLoader.hide)
   - Logo only, anywhere:  <div class="inap-loader-mark"></div>
   The 12 bars of the INAP logo light up one after another, clockwise.
   ========================================================================== */

.inap-loader {
    --inap-navy: #073A5C;
    position: fixed;
    inset: 0;
    z-index: 1055;                    /* above Bootstrap modals (1050), below SweetAlert2 (1060) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(7, 40, 64, .42);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility 0s linear .18s;
    cursor: progress;
}

    .inap-loader.is-on {
        opacity: 1;
        visibility: visible;
        transition: opacity .18s ease;
    }

.inap-loader-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px 32px 18px;
    min-width: 168px;
    max-width: min(320px, 86vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 18px 50px rgba(7, 40, 64, .28), 0 2px 6px rgba(7, 40, 64, .12);
    transform: translateY(6px) scale(.96);
    transition: transform .22s cubic-bezier(.2, .8, .3, 1);
}

.inap-loader.is-on .inap-loader-card {
    transform: none;
}

.inap-loader-card .inap-loader-mark {
    width: 78px;
    height: 78px;
}

.inap-loader-msg {
    margin-top: 14px;
    font: 600 13.5px/1.4 Inter, "Segoe UI", Roboto, "Noto Sans Devanagari", Arial, sans-serif;
    color: var(--inap-navy);
    letter-spacing: .1px;
    word-break: break-word;
}

.inap-loader-sub {
    margin-top: 2px;
    font: 500 10.5px/1.3 Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: #8a99a6;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

/* ---------------------------------------------------------------- the logo mark */
.inap-loader-mark {
    display: inline-block;
    width: 56px;
    height: 56px;
    line-height: 0;
}

    .inap-loader-mark svg {
        width: 100%;
        height: 100%;
        overflow: visible;
        animation: inap-breathe 2.4s ease-in-out infinite;
    }

    .inap-loader-mark line {
        animation: inap-wave 1.2s linear infinite;
    }

    .inap-loader-mark .b0  { animation-delay: -1.2s; }
    .inap-loader-mark .b1  { animation-delay: -1.1s; }
    .inap-loader-mark .b2  { animation-delay: -1.0s; }
    .inap-loader-mark .b3  { animation-delay: -0.9s; }
    .inap-loader-mark .b4  { animation-delay: -0.8s; }
    .inap-loader-mark .b5  { animation-delay: -0.7s; }
    .inap-loader-mark .b6  { animation-delay: -0.6s; }
    .inap-loader-mark .b7  { animation-delay: -0.5s; }
    .inap-loader-mark .b8  { animation-delay: -0.4s; }
    .inap-loader-mark .b9  { animation-delay: -0.3s; }
    .inap-loader-mark .b10 { animation-delay: -0.2s; }
    .inap-loader-mark .b11 { animation-delay: -0.1s; }

    /* static logo (no animation) */
    .inap-loader-mark.is-static svg,
    .inap-loader-mark.is-static line {
        animation: none;
    }

@keyframes inap-wave {
    0%   { opacity: 1; }
    55%  { opacity: .22; }
    100% { opacity: 1; }
}

@keyframes inap-breathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(.93); }
}

@media (prefers-reduced-motion: reduce) {
    .inap-loader-mark svg { animation: none; }
    .inap-loader-mark line { animation-duration: 2.4s; }
    .inap-loader, .inap-loader-card { transition: none; }
}

@media print {
    .inap-loader { display: none !important; }
}
