
:root {
    --site-font-stack: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --seeone-main-background-color: #064C79;
    --seeone-main-blue-color: #042e49;
}

html, body {
    font-family: var(--site-font-stack);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--site-font-stack);
    font-weight: 600;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.main-site-info {
    background-color: var(--seeone-main-background-color);
}

.sitemap-panel .sitemap-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.sitemap-panel .sitemap-search .rz-textbox {
    font-size: 0.9rem;
    padding: 6px 8px;
}

.sitemap-list {
    padding-right: 4px;
}

.sitemap-item {
    border-bottom: 1px solid #f1f1f1;
}

    .sitemap-item:last-child {
        border-bottom: none;
    }

.sitemap-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 48px);
}

.sitemap-route {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.sitemap-actions .rz-button {
    padding: 6px;
    min-width: 34px;
}

/* Navigation Manager Styling */
.nav-root-header {
    background: var(--seeone-main-background-color);
    color: #fff;
}

.nav-root-route,
.nav-child-route {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
}
/*********************************/

/********************************************
 * PANEL MENU BASE COLORS
 ********************************************/
/* Top-level and nested containers */
.rz-panelmenu,
.rz-panel-menu,
.rz-navigation-menu {
    background-color: #042e49 !important;
}

/********************************************
* DEFAULT ITEM BACKGROUND
********************************************/
.rz-panelmenu .rz-navigation-item-link,
.rz-panelmenu .rz-navigation-item-link .rz-link-text {
    background-color: #042337 !important;
    color: rgba(255,255,255,0.9) !important;
}

/********************************************
* HOVER STATE
********************************************/
.rz-panelmenu .rz-navigation-item-link:hover,
.rz-panelmenu .rz-navigation-item-link:hover .rz-link-text {
    background-color: var(--seeone-main-background-color) !important; /* your hover blue */
    color: #fff !important;
}

/********************************************
* ACTIVE / SELECTED ITEM
********************************************/
.rz-panelmenu .rz-navigation-item-wrapper.rz-state-active > .rz-navigation-item-link,
.rz-panelmenu .rz-navigation-item-link.rz-state-active,
.rz-panelmenu .rz-navigation-item-link.rz-active {
    background-color: #0a6ba6 !important; /* active color */
    color: #fff !important;
    font-weight: 600;
}

/********************************************
* GROUP HEADERS (accordion headers)
********************************************/
.rz-panelmenu .rz-panelmenu-header,
.rz-panelmenu .rz-panelmenu-header .rz-navigation-item-link {
    background-color: #042e49 !important;
    color: rgba(255,255,255,0.95) !important;
}

/********************************************
* GROUP HEADER (HOVER & ACTIVE)
********************************************/
    .rz-panelmenu .rz-panelmenu-header:hover,
    .rz-panelmenu .rz-panelmenu-header:hover .rz-navigation-item-link {
        background-color: var(--seeone-main-background-color) !important;
        color: #fff !important;
    }

.rz-panelmenu .rz-panelmenu-header.rz-state-active,
.rz-panelmenu .rz-panelmenu-header.rz-state-active .rz-navigation-item-link {
    background-color: #0a6ba6 !important;
    color: #fff !important;
}

    .rz-panel-menu .rz-navigation-item {
        border-block-end: none;
    }

    .rz-panel-menu .rz-navigation-item-wrapper {
        background: #042e49;
    }

.rz-panel-menu .rz-navigation-menu .rz-navigation-item .rz-navigation-item-link {
    background: #042337;
}

/* expander content container background 
.rz-expander .rz-expander-content,
.rz-expander .rz-navigation-menu {
    background-color: #042e49 !important;
}
*/

.white-fieldset,
.white-fieldset .rz-fieldset-content,
.white-fieldset .rz-fieldset-legend {
    background-color: #ffffff !important;
}

/* default submenu item background */
.rz-expander .rz-navigation-item .rz-navigation-item-wrapper,
.rz-expander .rz-navigation-item .rz-navigation-item-link {
    background-color: #042337 !important; /* submenu item bg */
    color: rgba(255,255,255,0.92) !important;
    transition: background-color .12s ease, color .12s ease;
}

/* ---------------------------
   Hover state (both wrapper & link)
   --------------------------- */
    .rz-expander .rz-navigation-item .rz-navigation-item-wrapper:hover > .rz-navigation-item-link,
    .rz-expander .rz-navigation-item .rz-navigation-item-link:hover,
    .rz-expander .rz-navigation-item .rz-navigation-item-wrapper:hover,
    .rz-expander .rz-navigation-item:hover {
        background-color: var(--seeone-main-background-color) !important; /* hover color */
        color: #fff !important;
    }

/* ensure icons/text inside also flip to white on hover */
.rz-expander .rz-navigation-item .rz-navigation-item-link:hover .rz-navigation-item-text,
.rz-expander .rz-navigation-item .rz-navigation-item-wrapper:hover .rz-navigation-item-text {
    color: #fff !important;
}

/* wrapper-level active (Radzen sometimes applies this) */
.rz-expander .rz-navigation-item .rz-navigation-item-wrapper-active,
.rz-expander .rz-navigation-item .rz-navigation-item-wrapper.rz-navigation-item-wrapper-active {
    background-color: #0a6ba6 !important; /* selected color */
    color: #fff !important;
}

/* link-level active */
.rz-expander .rz-navigation-item .rz-navigation-item-link-active,
.rz-expander .rz-navigation-item .rz-navigation-item-link.rz-navigation-item-link-active,
.rz-expander .rz-navigation-item .rz-navigation-item-link.active,
.rz-expander .rz-navigation-item .rz-navigation-item-link[aria-current="page"] {
    background-color: #0a6ba6 !important;
    color: #fff !important;
    font-weight: 600 !important;
}

/* ensure wrapper + link active combination is handled */
.rz-expander .rz-navigation-item .rz-navigation-item-wrapper-active > .rz-navigation-item-link.rz-navigation-item-link-active,
.rz-expander .rz-navigation-item .rz-navigation-item-wrapper.rz-navigation-item-wrapper-active > .rz-navigation-item-link[aria-current="page"] {
    background-color: #0a6ba6 !important;
    color: #fff !important;
}

.rz-expander .rz-navigation-item .rz-navigation-item-link:focus {
    outline: 2px solid rgba(10,107,166,0.25);
    outline-offset: 2px;
}

.rz-expander .rz-navigation-item .rz-navigation-item-icon,
.rz-expander .rz-navigation-item .rz-navigation-item-text {
    color: rgba(255,255,255,0.88) !important;
}

.rz-expander .rz-navigation-item .rz-navigation-item-link.rz-active .rz-navigation-item-icon,
.rz-expander .rz-navigation-item .rz-navigation-item-link.rz-state-active .rz-navigation-item-icon,
.rz-expander .rz-navigation-item .rz-navigation-item-link:hover .rz-navigation-item-icon {
    color: #fff !important;
}

/* Profile menu container */
.rz-profile-menu,
.rz-profile-menu .rz-navigation-menu {
    background-color: #ffffff !important;
}
/* Icon glyph */
.icon-preview {
    font-family: "Material Icons";
    font-size: 22px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Root header: white icons on blue background */
.nav-root-header .icon-preview {
    color: #ffffff;
    background: transparent;
}

.icon-badge {
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    padding: 2px 4px;
}

.rz-layout-body {
    background: var(--rz-background, #fff);
}

.rz-header {
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0;
/*    border-bottom: none;*/
}

.rz-sidebar {
    top: 0 !important;
    margin-top: 0 !important;
}

/*.rz-sidebar-toggle {
    border-inline-end: none;
}*/

.rz-sidebar .rz-panelmenu {
    height: calc(100vh - 96px);
    overflow-y: auto;
}

html, body, #app, .main, .rz-app {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sitemap-route {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
}

.sitemap-item-route {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
}

/* Spinner */
.cg-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0,0,0,0.08);
    border-top-color: rgba(0,0,0,0.45);
    border-radius: 50%;
    animation: cg-spin 1s linear infinite;
    box-sizing: border-box;
}

    /* smaller modifier */
    .cg-spinner.sm {
        width: 20px;
        height: 20px;
        border-width: 2px;
    }

    /* subtle color variants (optional) */
    .cg-spinner.light {
        border: 3px solid rgba(255,255,255,0.12);
        border-top-color: rgba(255,255,255,0.9);
    }

@keyframes cg-spin {
    to {
        transform: rotate(360deg);
    }
}

.rubric-root,
.rubric-toggle-btn,
.rubric-overlay,
.rubric-panel {
    position: fixed !important;
    z-index: 10050 !important;
}


.rubric-toggle-btn {
    bottom: 1rem;
    right: 1rem;
    z-index: 10001;
    pointer-events: auto;
}

.rubric-overlay {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.15);
    z-index: 10002;
    pointer-events: none; /* IMPORTANT: don't block scroll/clicks */
    -webkit-tap-highlight-color: transparent;
}

.rubric-panel {
    top: 4rem;
    right: 1rem;
    bottom: 4rem;
    width: 420px;
    max-width: calc(100vw - 2rem);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 10003;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rubric-panel-header {
    background: var(--seeone-main-blue-color);
    padding: 0.75rem 1rem;
    color: white;
    flex-shrink: 0;
}

.rubric-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

@media (max-width: 600px) {
    .rubric-panel {
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
}

/* Scoring rubric descriptor panel (tracker detail) — mirrors rubric panel pattern */
.descriptor-root,
.descriptor-toggle-btn,
.descriptor-panel {
    position: fixed !important;
    z-index: 10050 !important;
}

.descriptor-toggle-btn {
    bottom: 1rem;
    right: 1rem;
    z-index: 10001;
    pointer-events: auto;
}

.descriptor-panel {
    top: 4rem;
    right: 1rem;
    bottom: 4rem;
    width: 420px;
    max-width: calc(100vw - 2rem);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 10003;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.descriptor-panel-header {
    background: var(--seeone-main-blue-color);
    padding: 0.75rem 1rem;
    color: white;
    flex-shrink: 0;
}

.descriptor-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

@media (max-width: 600px) {
    .descriptor-panel {
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
}

/* Claims on mainlayout */
.floating-user-card {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 1300;
    max-width: calc(100vw - 32px);
    background: white;
    color: #111;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.06);
}

.floating-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.floating-close {
    border: none;
    background: transparent;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 6px;
}

.claims-list {
    margin-top: 6px;
    max-height: 160px;
    overflow: auto;
    padding-right: 6px;
}

.claim-item {
    font-size: 0.85rem;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.04);
}

.claim-type {
    color: #666;
    font-weight: 600;
    font-size: 0.78rem;
}

.claim-value {
    color: #222;
}

/* ModuleForm (SLO) View */
.readonly-field {
    background-color: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.75rem;
    min-height: 2.5rem;
}

.readonly-field-empty {
    background-color: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.75rem;
    min-height: 2.5rem;
    color: #999;
    font-style: italic;
}

.readonly-textarea {
    background-color: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.75rem;
    min-height: 100px;
    white-space: pre-wrap;
}

/* SLO Growth Tracker Detail — responsive header card */
@media (max-width: 576px) {
    .tracker-header-row {
        flex-direction: column !important;
    }

    .tracker-header-actions {
        justify-content: flex-start !important;
        width: 100%;
    }
}

.file-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    background-color: #fafafa;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .file-upload-area:hover {
        border-color: var(--rz-primary);
        background-color: #f0f7ff;
    }

.pending-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background-color: #fffbea;
    border-left: 3px solid #ffd93d;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.pending-file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.readonly-badge {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.required-indicator {
    color: #d32f2f;
    font-weight: bold;
    margin-left: 0.25rem;
}

.validation-error-border {
    border: 2px solid #d32f2f !important;
    border-radius: 4px;
}

.validation-error-text {
    color: #d32f2f;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}


/* let header area be visible and flexible */
.header-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    flex-wrap: nowrap; /* keep them on one line when possible */
    overflow: visible; /* avoid parent clipping */
}

    /* make Radzen buttons smaller and allow shrinking */
    .header-actions .rz-button {
        box-sizing: border-box;
        padding: 0.28rem 0.6rem; /* smaller padding */
        font-size: 0.85rem; /* smaller text */
        line-height: 1;
        min-width: 0; /* allow shrink below Radzen defaults */
        white-space: nowrap; /* avoid multiline labels */
        flex: 0 1 auto; /* allow them to shrink when needed */
    }

/* tweak the brand/logo so it doesn't steal space on small screens */
@media (max-width: 480px) {
    .brand img {
        height: 36px;
    }

    .header-actions .rz-button {
        font-size: 0.6rem;
        padding: 0.22rem 0.5rem;
    }

    .rz-header .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

.pmb-header-icon.rzi {
    font-size: 1.2rem;
    color: #1d4ed8;
}

.pmb-title {
    font-size: 1.1rem;
    font-weight: 650;
    color: #1e293b;
}

/* Session Warning Panel */
#session-warning-panel {
    position: fixed;
    top: 60px;
    right: 12px;
    z-index: 10000;
    width: 260px;
    background: #f6f7fa;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.07);
    padding: 1.1rem 1.1rem 1rem;
    opacity: 0;
    transform: scale(0.93);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

    #session-warning-panel::before {
        content: '';
        position: absolute;
        top: -7px;
        right: 20px;
        width: 13px;
        height: 13px;
        background: #f6f7fa;
        border-left: 1px solid rgba(0, 0, 0, 0.07);
        border-top: 1px solid rgba(0, 0, 0, 0.07);
        transform: rotate(45deg);
    }

#session-warning-panel.session-warning-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

#session-warning-panel .swp-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

#session-warning-panel .swp-icon {
    font-size: 1.1rem;
    color: #d97706;
}

#session-warning-panel .swp-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111;
}

#session-warning-panel .swp-message {
    font-size: 0.8rem;
    color: #666;
    margin: 0 0 0.25rem;
}

#session-warning-panel .swp-countdown {
    font-size: 2rem;
    font-weight: 700;
    color: #d97706;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

#session-warning-panel .swp-actions {
    display: flex;
    gap: 0.5rem;
}

#session-warning-panel .swp-continue {
    flex: 1;
    background: #064C79;
    color: white;
    border: none;
    padding: 7px 0;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

#session-warning-panel .swp-continue:hover {
    background: #043a5e;
}

#session-warning-panel .swp-logout {
    flex: 1;
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 7px 0;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

#session-warning-panel .swp-logout:hover {
    border-color: #bbb;
    color: #333;
}

/* Replace RadzenTabs nav with native select dropdown — dashboard only */
.dash-tabs .rz-tabview-nav {
    display: none !important;
}

.dot-pulse span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2A9D8F;
    animation: dp .9s ease-in-out infinite;
}

    .dot-pulse span:nth-child(2) {
        animation-delay: .2s;
    }

    .dot-pulse span:nth-child(3) {
        animation-delay: .4s;
    }

@keyframes dp {
    0%, 80%, 100% {
        transform: scale(.6);
        opacity: .4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ── Student Progress Overview (Components/Partials/Tracker/StudentProgressOverview.razor) ── */
.spo-container {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

/* Header */
.spo-header {
    background: linear-gradient(135deg, #042e49 0%, #064C79 100%);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.spo-title {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.spo-subtitle {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 0.82rem;
}

.spo-ci-badges {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.spo-ci-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    color: #475569;
}

    .spo-ci-badge.locked {
        background: rgba(34, 197, 94, 0.15);
    }

    .spo-ci-badge.active {
        background: rgba(59, 130, 246, 0.15);
        border-color: rgba(59, 130, 246, 0.4);
        color: #3b82f6;
        font-weight: 700;
    }

/* Desktop grid (scrollable) */
.spo-grid-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.spo-grid-scroll {
    min-width: 600px; /* ensures grid doesn't collapse */
}

.spo-col-header {
    display: grid;
    padding: 10px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spo-row {
    display: grid;
    padding: 10px 24px;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

    .spo-row.even {
        background: #fff;
    }

    .spo-row.odd {
        background: #fafbfc;
    }

/* Mobile card list (hidden by default) */
.spo-mobile-list {
    display: none;
}

.spo-mobile-card {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
}

    .spo-mobile-card:last-child {
        border-bottom: none;
    }

.spo-mobile-student {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spo-mobile-grades {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.spo-mobile-grade-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
    flex: 1;
}

.spo-mobile-grade-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* Shared elements */
.spo-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}

.spo-goal-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
}

.spo-grade-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid;
}

.spo-grade-na {
    font-size: 0.72rem;
    color: #94a3b8;
    font-style: italic;
}

.spo-grade-active {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #3b82f6;
    font-size: 0.72rem;
    font-weight: 500;
}

.spo-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
    animation: spo-pulse 2s infinite;
}

@keyframes spo-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Tablets / small desktops: header stacks if needed */
@media (max-width: 768px) {
    .spo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 16px;
    }

    .spo-ci-badges {
        align-self: flex-start;
    }

    .spo-col-header,
    .spo-row {
        padding: 10px 16px;
    }
}

/* Mobile: hide grid, show cards */
@media (max-width: 640px) {
    .spo-grid-wrapper {
        display: none;
    }

    .spo-mobile-list {
        display: block;
    }

    .spo-ci-badge {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
}

/* ═══ Test-site banner (shown when ShowTestSiteBanner is true, e.g. AzureTest) ═══ */
.test-site-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 16px;
    background: linear-gradient(90deg, #d97706, #ea580c);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1100; /* above the Radzen header */
}

.oc-login-scene {
    position: relative;
    z-index: 0;
    animation: meshShift 20s ease-in-out infinite alternate;
}

    .oc-login-scene::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle, rgba(18,18,196,0.1) 1px, transparent 1px);
        background-size: 28px 28px;
        pointer-events: none;
        z-index: 0; /* behind content */
    }

    /* ensure inner content renders above the pseudo-element */
    .oc-login-scene > * {
        position: relative;
        z-index: 1;
    }

@keyframes meshShift {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 50% 50%;
    }

    100% {
        background-position: 100% 100%;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}