/* ============================================
   LOADING OVERLAY STYLES
   Global loading spinner and animation styles
   ============================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.loading-overlay.active {
    display: flex !important;
    opacity: 1;
    pointer-events: all;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.loading-spinner {
    position: relative;
    width: 56px;
    height: 56px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: spinRing 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: #004c99;
    animation-delay: -0.45s;
}

.spinner-ring:nth-child(2) {
    border-top-color: #D4ED78;
    animation-delay: -0.3s;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}

.spinner-ring:nth-child(3) {
    border-top-color: #3b82f6;
    animation-delay: -0.15s;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
}

.loading-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
    letter-spacing: 0.3px;
}

/* Button loading state */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.75;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spinRing 0.6s linear infinite;
}

.btn-loading .btn-text {
    visibility: hidden;
}

/* Inline small loader for cards/sections */
.inline-loader {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.inline-loader .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #004c99;
    animation: dotPulse 1.4s ease-in-out infinite both;
}

.inline-loader .dot:nth-child(1) { animation-delay: -0.32s; }
.inline-loader .dot:nth-child(2) { animation-delay: -0.16s; }
.inline-loader .dot:nth-child(3) { animation-delay: 0s; }

