/*
    GlobalApp reusable loading overlay.
    Keep all loader styling here so future changes remain simple.
*/
.ga-loader {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.ga-loader.is-visible {
    display: flex;
}

.ga-loader__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(2px);
}

.ga-loader__panel {
    position: relative;
    width: min(360px, 100%);
    padding: 26px 22px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.ga-loader__spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border: 5px solid #dbe8f5;
    border-top-color: #165da8;
    border-radius: 50%;
    animation: ga-loader-spin 0.8s linear infinite;
}

.ga-loader__message {
    color: #16243a;
    font-size: 18px;
    font-weight: 700;
}

.ga-loader__detail {
    margin-top: 7px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.ga-loader__progress-wrap {
    margin-top: 17px;
}

.ga-loader__progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef5;
}

.ga-loader__progress-bar {
    height: 100%;
    border-radius: inherit;
    background: #165da8;
    transition: width 0.2s ease;
}

.ga-loader__progress-text {
    margin-top: 5px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

body.ga-loader-active {
    overflow: hidden;
}

@keyframes ga-loader-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .ga-loader__spinner {
        animation-duration: 1.6s;
    }
}
