/* =========================
   9. SPINNER & LOADER
   ========================= */
.spinner-border {
    color: var(--color-primary) !important;
}

.loader {
    width: 50px;
    height: 50px;
    position: relative;
    z-index: 1;
    transform: translateZ(0);
    will-change: transform;
}

.loader::before,
.loader::after {
    content: '';
    position: absolute;
    width: inherit;
    height: inherit;
    border-radius: 50%;
    mix-blend-mode: multiply;
    animation: rotate92523 2s infinite cubic-bezier(0.77, 0, 0.175, 1);
}

.loader::before {
    background-color: var(--color-primary);
}

.loader::after {
    background-color: var(--color-primary);
    animation-delay: 1s;
}

@keyframes rotate92523 {
    0%, 100% { left: 35px; }
    25% { transform: scale(.3); }
    50% { left: 0%; }
    75% { transform: scale(1); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #086973;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
