﻿/* wwwroot/css/courses/course-loader.css */
/* Overlay loader for courses; scoped to existing markup (#coursesLoading + .course-page). */

.course-page {
    position: relative;
}

.course-loading[hidden] {
    display: none !important;
}

.course-loading {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.65);
}

.course-loading__spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.18);
    border-top-color: rgba(0, 0, 0, 0.7);
    animation: courseSpin 0.8s linear infinite;
}

@keyframes courseSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Keep text for screen readers only */
.course-loading__text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
