/* Moodle Dynamic Backgrounds — boot overlay (load in <head> before main script) */

html:not(.mdb-tiles-ready) body.path-course-view #region-main-box,
html:not(.mdb-tiles-ready) body.path-course-view-section #region-main-box {
    display: none !important;
}

#mdb-boot-overlay {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50vh;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

html:not(.mdb-tiles-ready) body.path-course-view #mdb-boot-overlay,
html:not(.mdb-tiles-ready) body.path-course-view-section #mdb-boot-overlay {
    display: flex;
}

#mdb-boot-overlay .mdb-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #dee2e6;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: mdb-boot-spin 0.8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    #mdb-boot-overlay .mdb-spinner {
        animation: none;
        border-top-color: #0d6efd;
    }
}
