/* CEE navigation loading indicator
   A thin top progress bar + a centered spinner with rotating, context-aware
   phrases, so slow page loads feel intentional and personal. */

.cee-load-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #2e9e7a, #1f7357);
    box-shadow: 0 0 8px rgba(46, 158, 122, 0.6);
    z-index: 999999;
    opacity: 0;
    transition: width 0.2s ease, opacity 0.3s ease;
    pointer-events: none;
}

/* Centered overlay shown during navigation waits. */
.cee-load-center {
    position: fixed;
    inset: 0;
    z-index: 999998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.86), rgba(241, 249, 245, 0.8));
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

body.cee-loading .cee-load-center {
    opacity: 1;
    pointer-events: auto;
}

.cee-load-center .cee-load-spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

.cee-load-text {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1f7357;
    background: #ffffff;
    padding: 9px 18px;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(46, 158, 122, 0.18);
    max-width: 80vw;
    text-align: center;
    transition: opacity 0.18s ease;
}

.cee-load-spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(46, 158, 122, 0.25);
    border-top-color: #2e9e7a;
    animation: cee-spin 0.7s linear infinite;
    display: inline-block;
}

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

@media (prefers-reduced-motion: reduce) {
    .cee-load-spinner { animation: none; }
    .cee-load-bar { transition: opacity 0.3s ease; }
    .cee-load-center { transition: opacity 0.25s ease; }
    .cee-load-text { transition: none; }
}
