@import '_content/Microsoft.AspNetCore.Components.QuickGrid/Microsoft.AspNetCore.Components.QuickGrid.bundle.scp.css';
@import '_content/BlazingQuiz.Shared.Components/BlazingQuiz.Shared.Components.bundle.scp.css';

/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-yjfts4c5rl] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-yjfts4c5rl] {
    flex: 1;
}

.school-header[b-yjfts4c5rl] {
    background: #ffffff;
    border: 1px solid #d7e0e5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding: 10px 12px;
}

.school-header-media[b-yjfts4c5rl] {
    align-items: flex-start;
    background: #f3f6f8;
    border-radius: 6px;
    display: flex;
    height: 120px;
    justify-content: flex-start;
    overflow: hidden;
    width: 100%;
}

.school-header-media img[b-yjfts4c5rl] {
    display: block;
    height: 120px;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

.school-header-info[b-yjfts4c5rl] {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    line-height: 1.25;
    min-width: 0;
}

.school-header strong[b-yjfts4c5rl] {
    color: #05090d;
    font-size: 1.05rem;
}

.school-header span[b-yjfts4c5rl] {
    color: #56616a;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.sidebar[b-yjfts4c5rl] {
    background-image: linear-gradient(
        180deg,
        #05090d 0%,
        #07131c 52%,
        #082535 100%
    );
}

.top-row[b-yjfts4c5rl] {
    background-color: #f3f6f8;
    border-bottom: 1px solid #d7e0e5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-yjfts4c5rl]  a,
    .top-row[b-yjfts4c5rl]  .btn-link {
        color: #007db8;
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-yjfts4c5rl]  a:hover,
    .top-row[b-yjfts4c5rl]  .btn-link:hover {
        color: #006a9c;
        text-decoration: underline;
    }

    .top-row[b-yjfts4c5rl]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-yjfts4c5rl] {
        justify-content: space-between;
    }

    .top-row[b-yjfts4c5rl]  a,
    .top-row[b-yjfts4c5rl]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-yjfts4c5rl] {
        flex-direction: row;
    }

    .sidebar[b-yjfts4c5rl] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-yjfts4c5rl] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-yjfts4c5rl]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-yjfts4c5rl],
    article[b-yjfts4c5rl] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

/* ArcResonance administrative Home layout */

.admin-home-top[b-yjfts4c5rl] {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    align-items: stretch;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-home-top .school-header-square[b-yjfts4c5rl] {
    aspect-ratio: 1 / 1;
    margin-bottom: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.admin-home-top .school-header-media[b-yjfts4c5rl] {
    flex: 1;
    min-height: 0;
    height: auto;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.admin-home-top .school-header-media img[b-yjfts4c5rl] {
    width: 100%;
    height: 100%;
    max-height: 170px;
    object-fit: contain;
}

.admin-home-top .school-header-info[b-yjfts4c5rl] {
    justify-content: center;
    text-align: center;
    width: 100%;
}

.admin-home-top .school-header-info strong[b-yjfts4c5rl] {
    overflow-wrap: anywhere;
}

.admin-home-selector[b-yjfts4c5rl] {
    min-width: 0;
}

@media (max-width: 900px) {
    .admin-home-top[b-yjfts4c5rl] {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-home-top .school-header-square[b-yjfts4c5rl] {
        width: min(100%, 260px);
    }
}

/* Home dashboard: allow child content to participate in the grid */
.admin-home-top .admin-home-selector[b-yjfts4c5rl] {
    display: contents;
}

/* Active School selector occupies the right column */
.admin-home-top[b-yjfts4c5rl]  .admin-home-selector > .card {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0 !important;
    align-self: stretch;
    min-width: 0;
}

/* Dashboard statistics span both columns */
.admin-home-top[b-yjfts4c5rl]  .admin-home-selector > .dashboard-stats {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
}

/* Stack cards on narrower screens */
@media (max-width: 900px) {
    .admin-home-top[b-yjfts4c5rl]  .admin-home-selector > .card {
        grid-column: 1;
        grid-row: 2;
    }

    .admin-home-top[b-yjfts4c5rl]  .admin-home-selector > .dashboard-stats {
        grid-column: 1;
        grid-row: 3;
    }
}

/* Home dashboard grid correction */

.admin-home-top[b-yjfts4c5rl] {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.admin-home-top .school-header-square[b-yjfts4c5rl] {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0;
}

.admin-home-top .admin-home-selector[b-yjfts4c5rl] {
    display: contents;
}

/* Blazor-rendered selector and statistics */
.admin-home-top[b-yjfts4c5rl]  .card.border-primary {
    grid-column: 2;
    grid-row: 1;
    margin: 0 !important;
}

.admin-home-top[b-yjfts4c5rl]  .dashboard-stats {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
}

/* Responsive layout */
@media (max-width: 900px) {
    .admin-home-top[b-yjfts4c5rl] {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-home-top .school-header-square[b-yjfts4c5rl] {
        grid-column: 1;
        grid-row: 1;
        max-width: 260px;
    }

    .admin-home-top[b-yjfts4c5rl]  .card.border-primary {
        grid-column: 1;
        grid-row: 2;
    }

    .admin-home-top[b-yjfts4c5rl]  .dashboard-stats {
        grid-column: 1;
        grid-row: 3;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-52swlc1xyg] {
    background-color: rgba(1, 159, 232, 0.16);
}

.top-row[b-52swlc1xyg] {
    height: 3.5rem;
    background-color: rgba(5, 9, 13, 0.92);
}

.navbar-brand[b-52swlc1xyg] {
    align-items: center;
    display: flex;
    gap: 0.55rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.navbar-brand img[b-52swlc1xyg] {
    height: 42px;
    object-fit: contain;
    width: 42px;
}

.bi[b-52swlc1xyg] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-52swlc1xyg] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-52swlc1xyg] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-52swlc1xyg] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-52swlc1xyg] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.nav-item:first-of-type[b-52swlc1xyg] {
    padding-top: 1rem;
}

.nav-item:last-of-type[b-52swlc1xyg] {
    padding-bottom: 1rem;
}

.nav-item[b-52swlc1xyg]  a {
    color: #d7e0e5;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
}

.nav-item[b-52swlc1xyg]  a.active {
    background-color: rgba(1, 159, 232, 0.28);
    color: #ffffff;
}

.nav-item[b-52swlc1xyg]  a:hover {
    background-color: rgba(1, 159, 232, 0.14);
    color: #ffffff;
}

@media (min-width: 641px) {
    .navbar-toggler[b-52swlc1xyg] {
        display: none;
    }

    .collapse[b-52swlc1xyg] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-52swlc1xyg] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
