.global-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Only become visible after 250ms — fast loads never show the overlay */
    animation: fadeIn 0.2s ease-in-out 0.25s both;
}

.breathing-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.breathing-circle {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.inner-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%);
    border-radius: 50%;
    animation: breathe 4s ease-in-out infinite;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.pulse-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.pulse-ring-2 {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 1px solid rgba(118, 75, 162, 0.1);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite 0.5s;
}



@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes breathe {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 6px 24px rgba(102, 126, 234, 0.3);
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.1;
    }
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .breathing-circle {
        width: 100px;
        height: 100px;
    }

    .inner-circle {
        width: 50px;
        height: 50px;
    }

    .pulse-ring {
        width: 70px;
        height: 70px;
    }

    .pulse-ring-2 {
        width: 85px;
        height: 85px;
    }

    .breathe-text {
        font-size: 1.25rem;
    }
}
