/* Same as bt_lead_management/public/css/loader.css (shared BlueThink loader).
   BlueThink common project loader — brand mark + colors: blue #085694 (primary), red #D62027 (accent) */

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #ffffff;
    background-image: url('../img/custom_image/bt-mark.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px auto;
    box-shadow: 0 2px 12px rgba(8, 86, 148, 0.18);
    border: 0; /* reset the old .loader ring from custom.css */
    -webkit-animation: none;
    animation: bt-loader-pulse 1.6s ease-in-out infinite;
}

.loader::before,
.loader::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 3px solid transparent;
}

.loader::before {
    border-top-color: #085694;
    border-right-color: #085694;
    animation: bt-loader-spin 0.9s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

.loader::after {
    border-bottom-color: #D62027;
    animation: bt-loader-spin 1.5s linear infinite reverse;
}

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

@keyframes bt-loader-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@media (max-width: 576px) {
    .loader {
        width: 50px;
        height: 50px;
        background-size: 24px auto;
    }

    .loader::before,
    .loader::after {
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .loader {
        animation: none;
    }

    .loader::before,
    .loader::after {
        animation-duration: 2.2s;
    }
}
