/* /Components/BackButton.razor.rz.scp.css */
.back-btn[b-bpcjiun0v2] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #3b82f6;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.back-btn:hover[b-bpcjiun0v2] {
    background: #2563eb;
}

.back-btn svg[b-bpcjiun0v2] {
    width: 20px;
    height: 20px;
}
/* /Components/Layout/LoginLayout.razor.rz.scp.css */
.page[b-tlm380n5za] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-tlm380n5za] {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content[b-tlm380n5za] {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.app-layout[b-4d0gji6q1b] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page[b-4d0gji6q1b] {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

main[b-4d0gji6q1b] {
    flex: 1;
    width: 100%;
}

.content[b-4d0gji6q1b] {
    padding: 0;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-r5ywl3s0lr] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-r5ywl3s0lr] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-r5ywl3s0lr] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-r5ywl3s0lr] {
    font-size: 1.1rem;
}

.bi[b-r5ywl3s0lr] {
    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-r5ywl3s0lr] {
    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-r5ywl3s0lr] {
    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-r5ywl3s0lr] {
    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-r5ywl3s0lr] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-r5ywl3s0lr] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-r5ywl3s0lr] {
        padding-bottom: 1rem;
    }

    .nav-item[b-r5ywl3s0lr]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-r5ywl3s0lr]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-r5ywl3s0lr]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-r5ywl3s0lr] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-r5ywl3s0lr] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-r5ywl3s0lr] {
        display: none;
    }

    .nav-scrollable[b-r5ywl3s0lr] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-4qp2w1e183],
.components-reconnect-repeated-attempt-visible[b-4qp2w1e183],
.components-reconnect-failed-visible[b-4qp2w1e183],
.components-pause-visible[b-4qp2w1e183],
.components-resume-failed-visible[b-4qp2w1e183],
.components-rejoining-animation[b-4qp2w1e183] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-4qp2w1e183],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-4qp2w1e183],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-4qp2w1e183],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-4qp2w1e183],
#components-reconnect-modal.components-reconnect-retrying[b-4qp2w1e183],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-4qp2w1e183],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-4qp2w1e183],
#components-reconnect-modal.components-reconnect-failed[b-4qp2w1e183],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-4qp2w1e183] {
    display: block;
}


#components-reconnect-modal[b-4qp2w1e183] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-4qp2w1e183 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-4qp2w1e183 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-4qp2w1e183 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-4qp2w1e183]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-4qp2w1e183 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-4qp2w1e183 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-4qp2w1e183 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-4qp2w1e183 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-4qp2w1e183] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-4qp2w1e183] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-4qp2w1e183] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-4qp2w1e183] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-4qp2w1e183] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-4qp2w1e183] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-4qp2w1e183] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-4qp2w1e183 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-4qp2w1e183] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-4qp2w1e183 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Elaboration.razor.rz.scp.css */
/* ==========================================================================
   Revision page container
   ========================================================================== */

.revision-page[b-gpvvg9grxd] {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.revision-page .page-title[b-gpvvg9grxd] {
    font-size: 1.625rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* ==========================================================================
   Two-column layout
   ========================================================================== */

.revision-layout[b-gpvvg9grxd] {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1.5rem;
    height: calc(100vh - 11rem);
    min-height: 400px;
}

/* ==========================================================================
   Left: image section
   ========================================================================== */

.revision-image-section[b-gpvvg9grxd] {
    background: #fff;
    border-radius: 12px;
    border: 2px solid #629bf8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    min-height: 0;
}

/* Page navigation — grouped control */
.page-navigation[b-gpvvg9grxd] {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0.1875rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 0.875rem;
    flex-shrink: 0;
    align-self: center;
}

.page-nav-btn[b-gpvvg9grxd] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.375rem 0.875rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    font-family: inherit;
}

.page-nav-btn:hover:not(:disabled)[b-gpvvg9grxd] {
    background: #fff;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.page-nav-btn:disabled[b-gpvvg9grxd] {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-indicator[b-gpvvg9grxd] {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

/* SVG wrapper */
.svg-wrapper[b-gpvvg9grxd] {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-svg[b-gpvvg9grxd] {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    border-radius: 6px;
    background-color: #ebf2fe;
}

[b-gpvvg9grxd] .item-bbox-rect {
    cursor: pointer;
    transition: fill 0.15s ease;
}

[b-gpvvg9grxd] .item-bbox-rect:hover {
    fill: rgba(59, 130, 246, 0.14);
}

.item-preview[b-gpvvg9grxd] {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 2px #7c3aed;
    background: white;
}

.item-preview svg[b-gpvvg9grxd] {
    display: block;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Right: scrollable panel
   ========================================================================== */

.revision-right-section[b-gpvvg9grxd] {
    overflow-y: auto;
    min-height: 0;
    padding-right: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.revision-right-section[b-gpvvg9grxd]::-webkit-scrollbar {
    width: 5px;
}

.revision-right-section[b-gpvvg9grxd]::-webkit-scrollbar-track {
    background: transparent;
}

.revision-right-section[b-gpvvg9grxd]::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 3px;
}

.revision-right-section[b-gpvvg9grxd]::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* ==========================================================================
   Step cards (question groups)
   ========================================================================== */

.revision-step-card[b-gpvvg9grxd] {
    background: #e2ecfe;
    border: 2px solid #629bf8;
    border-radius: 12px;
    padding: 1.25rem 1.375rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.step-card-header[b-gpvvg9grxd] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid #0f172a;
}

.step-card-header .step-header-left[b-gpvvg9grxd] {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
}

.step-icon[b-gpvvg9grxd] {
    width: 15px;
    height: 15px;
    color: #94a3b8;
    flex-shrink: 0;
    position: relative;
    top: 2px;
}

.step-card-header .step-label[b-gpvvg9grxd] {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    flex-shrink: 0;
}

.step-card-header .step-text[b-gpvvg9grxd] {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

/* Points badge — pill shape */
.step-points-badge[b-gpvvg9grxd] {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ==========================================================================
   Item cards (individual sub-questions a, b, c…)
   ========================================================================== */

.result-item-card[b-gpvvg9grxd] {
    position: relative;
    background: #f8faff;
    border: 2px solid #629bf8;
    border-radius: 10px;
    padding: 1.25rem;
    padding-top: 2.75rem;
    margin-bottom: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.result-item-card:last-child[b-gpvvg9grxd] {
    margin-bottom: 0;
}

.result-item-card:hover[b-gpvvg9grxd] {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.07);
    background: #fff;
}

.result-item-card.edit-mode[b-gpvvg9grxd] {
    border-color: #000;
    background: #fefce8;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* Edit button */
.item-edit-btn[b-gpvvg9grxd] {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #629bf8;
    background: #fff;
    color: #28282B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 1;
}

.result-item-card:hover .item-edit-btn[b-gpvvg9grxd] {
    border: 1.5px solid #7c3aed;
}

.result-item-card .item-edit-btn:hover[b-gpvvg9grxd] {
    border: 2px solid #7c3aed;
    background: #d8c4fa;
}

.edit-btn-icon[b-gpvvg9grxd] {
    width: 13px;
    height: 13px;
}

/* Item card header — question text */
.item-card-header[b-gpvvg9grxd] {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.875rem;
}

.item-icon[b-gpvvg9grxd] {
    width: 12px;
    height: 12px;
    color: #cbd5e1;
    flex-shrink: 0;
    position: relative;
    top: 1px;
}

.item-card-header .item-label[b-gpvvg9grxd] {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9375rem;
    flex-shrink: 0;
}

.item-card-header .item-text[b-gpvvg9grxd] {
    color: #1e293b;
    font-size: 0.9375rem;
}

/* ==========================================================================
   Item details — fields
   ========================================================================== */

.item-details[b-gpvvg9grxd] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.item-field[b-gpvvg9grxd] {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.item-field-row[b-gpvvg9grxd] {
    display: flex;
    gap: 1.5rem;
}

.inline-field[b-gpvvg9grxd] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
}

.field-label[b-gpvvg9grxd] {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.55px;
}

.field-value[b-gpvvg9grxd] {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.5;
}

.text-pre-wrap[b-gpvvg9grxd] {
    white-space: pre-wrap;
}

/* Student / data answer box */
.student-answer-box[b-gpvvg9grxd] {
    background: #eff5fe;
    border: 1px dashed #3b82f6;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: #0f172a;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.55;
    white-space: pre-wrap;
}

.cause-of-error .student-answer-box[b-gpvvg9grxd] {
    background: #fff7f7;
    border-color: #fca5a5;
    color: #b91c1c;
    font-weight: 600;
}

/* Correct solution (shown when student answer is wrong) */
.correct-solution-box[b-gpvvg9grxd] {
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: #166534;
    font-size: 0.9375rem;
    line-height: 1.55;
    white-space: pre-wrap;
    margin-top: 0.5rem;
}

.correct-solution-field[b-gpvvg9grxd] {
    margin-top: 0.5rem;
}

/* Reveal correct solution (Completed state - eye icon) */
.correct-solution-reveal-row[b-gpvvg9grxd] {
    margin-top: 0.5rem;
}

.reveal-solution-btn[b-gpvvg9grxd] {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.875rem;
    color: #166534;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.reveal-solution-btn:hover[b-gpvvg9grxd] {
    background: #bbf7d0;
    border-color: #4ade80;
}

.reveal-solution-btn .eye-icon[b-gpvvg9grxd] {
    width: 1.125rem;
    height: 1.125rem;
}

/* Edit inputs */
.edit-field-input[b-gpvvg9grxd] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #334155;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
    background: #fafafa;
    transition: border-color 0.15s ease;
}

.edit-field-input:focus[b-gpvvg9grxd] {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

/* Bool toggles */
.bool-toggle-group[b-gpvvg9grxd] {
    display: flex;
    gap: 0.3rem;
}

.bool-toggle-btn[b-gpvvg9grxd] {
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
}

.bool-toggle-btn svg[b-gpvvg9grxd] {
    width: 100%;
    height: 100%;
    display: block;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.bool-toggle-btn.inactive svg[b-gpvvg9grxd] {
    opacity: 0.3;
}

.bool-toggle-btn:not(.inactive):hover svg[b-gpvvg9grxd] {
    transform: scale(1.08);
}

.bool-toggle-btn.inactive:hover svg[b-gpvvg9grxd] {
    opacity: 0.55;
}

.bool-badge svg[b-gpvvg9grxd] {
    width: 20px;
    height: 20px;
    display: block;
}

/* ==========================================================================
   Action bar (bottom of right panel)
   ========================================================================== */

.revision-action-bar[b-gpvvg9grxd] {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.625rem;
}

.revision-error-text[b-gpvvg9grxd] {
    font-size: 0.875rem;
    color: #dc2626;
    margin: 0;
    padding: 0.5rem 0.75rem;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
    width: 100%;
    box-sizing: border-box;
}

.btn-submit-spinner[b-gpvvg9grxd] {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rev-spin-b-gpvvg9grxd 0.75s linear infinite;
    flex-shrink: 0;
}

@keyframes rev-spin-b-gpvvg9grxd {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Item highlight animation (triggered from JS)
   ========================================================================== */

@keyframes item-highlight-flash-b-gpvvg9grxd {
    0%   { background-color: #7c3aed; box-shadow: 0 0 0 4px #fff; }
    100% { background-color: #fff;    box-shadow: none; }
}

[b-gpvvg9grxd] .item-highlight {
    animation: item-highlight-flash-b-gpvvg9grxd 1.5s ease-out forwards;
}

/* ==========================================================================
   Feedback revision — compact view
   ========================================================================== */

.feedback-revision-right[b-gpvvg9grxd] {
    gap: 0.75rem;
}

/* Overall feedback card — light yellow, orange border, at top */
.overall-feedback-card[b-gpvvg9grxd] {
    background: #fefce8;
    border: 2px solid #f97316;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.overall-feedback-text[b-gpvvg9grxd] {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.5;
    background: transparent !important;
    border: none !important;
}

.overall-feedback-card .feedback-edit-row .feedback-edit-input[b-gpvvg9grxd],
.overall-feedback-card .feedback-display-row .feedback-text-box[b-gpvvg9grxd] {
    background: #fffbeb !important;
    border-color: #fde68a !important;
}

.overall-feedback-input[b-gpvvg9grxd] {
    font-size: 1rem;
    font-weight: 600;
}

/* Tooltip pro tlačítko celkové zpětné vazby — zobrazit dolů (je nahoře stránky) */
.overall-feedback-card .feedback-edit-icon-btn[data-tooltip][b-gpvvg9grxd]::before {
    top: calc(100% + 0.5rem);
    bottom: auto;
    left: auto;
    right: 0;
    transform: none;
}
.overall-feedback-card .feedback-edit-icon-btn[data-tooltip][b-gpvvg9grxd]::after {
    top: calc(100% + 0.125rem);
    bottom: auto;
    left: auto;
    right: 0.5rem;
    transform: none;
    border-top-color: transparent;
    border-bottom-color: #1e293b;
}
.overall-feedback-card .feedback-edit-icon-btn[data-tooltip]:hover[b-gpvvg9grxd]::before {
    transform: translateY(2px);
}
.overall-feedback-card .feedback-edit-icon-btn[data-tooltip]:hover[b-gpvvg9grxd]::after {
    transform: translateY(2px);
}

/* Section feedback header — at start of each section, light yellow */
.feedback-section-header[b-gpvvg9grxd] {
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    margin-bottom: 0.75rem;
}

.section-feedback-text[b-gpvvg9grxd] {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.5;
    padding-top: 2px;
    padding-bottom: 2px;
}

.section-feedback-input[b-gpvvg9grxd] {
    font-size: 0.9375rem;
    font-weight: 600;
}

.feedback-section-header .feedback-text-box[b-gpvvg9grxd],
.feedback-section-header .section-feedback-text[b-gpvvg9grxd] {
    background: transparent !important;
    border: none !important;
}

.feedback-step-card[b-gpvvg9grxd] {
    background: #e2ecfe;
    border: 2px solid #629bf8;
    border-radius: 10px;
    padding: 0.875rem 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.feedback-item-row[b-gpvvg9grxd] {
    padding: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-item-row:hover[b-gpvvg9grxd] {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.feedback-item-header[b-gpvvg9grxd] {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.feedback-item-label[b-gpvvg9grxd] {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    flex-shrink: 0;
}

.feedback-item-assignment[b-gpvvg9grxd] {
    font-size: 0.875rem;
    font-weight: 400;
    color: #1e293b;
    flex: 1;
    min-width: 0;
}

.feedback-correctness-icon[b-gpvvg9grxd] {
    flex-shrink: 0;
}

.feedback-correctness-icon svg[b-gpvvg9grxd] {
    width: 18px;
    height: 18px;
    display: block;
}

.feedback-student-answer[b-gpvvg9grxd] {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.45;
    background: #eff5fe;
    border: 1px dashed #3b82f6;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    margin-top: 0.35rem;
}

.feedback-cause-of-error[b-gpvvg9grxd] {
    margin-top: 0.35rem;
}

.feedback-cause-of-error .field-label[b-gpvvg9grxd] {
    display: block;
    margin-bottom: 0.2rem;
}

.feedback-cause-text[b-gpvvg9grxd] {
    font-size: 0.8125rem;
    color: #b91c1c;
    line-height: 1.45;
    background: #fff7f7;
    border: 1px dashed #fca5a5;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
}

.feedback-block[b-gpvvg9grxd] {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #629bf8;
}

.feedback-display-row[b-gpvvg9grxd],
.feedback-edit-row[b-gpvvg9grxd] {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.feedback-text-box[b-gpvvg9grxd] {
    font-size: 0.9375rem;
    color: #1e293b;
    line-height: 1.5;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem 0.65rem;
    flex: 1;
    min-width: 0;
}

.feedback-edit-input[b-gpvvg9grxd] {
    flex: 1;
    min-width: 0;
}

.feedback-save-btn[b-gpvvg9grxd] {
    flex-shrink: 0;
}

/* Malá ikonka editace u zpětné vazby (ne plošná) */
.feedback-edit-icon-btn[b-gpvvg9grxd] {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #f97316;
    background: #fff;
    color: #28282B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.feedback-edit-icon-btn:hover[b-gpvvg9grxd] {
    color: #fff;
    background: #fbb85c;
}

.feedback-edit-icon-btn .edit-btn-icon[b-gpvvg9grxd] {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Correctness mismatch warning */

.correctness-mismatch-icon[b-gpvvg9grxd] {
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.correctness-mismatch-icon svg[b-gpvvg9grxd] {
    width: 20px;
    height: 20px;
    display: block;
}

.original-elaboration-highlight[b-gpvvg9grxd] {
    background: #fef9c3 !important;
    border-color: #eab308 !important;
    border-style: solid !important;
}

@media (max-width: 900px) {
    .revision-layout[b-gpvvg9grxd] {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }

    .revision-image-section[b-gpvvg9grxd] {
        min-height: 280px;
        max-height: 50vh;
    }

    .revision-right-section[b-gpvvg9grxd] {
        max-height: none;
        overflow-y: visible;
    }

    .revision-action-bar[b-gpvvg9grxd] {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding: 0.75rem 0;
        margin-top: 0.5rem;
    }
}
/* /Components/Pages/Processing.razor.rz.scp.css */
.test-grading-container[b-a0fqbfn3ut] {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 3rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.page-title[b-a0fqbfn3ut] {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: -0.5px;
}

/* Error Message */
.error-message[b-a0fqbfn3ut] {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 16px;
    border: 2px solid #fecaca;
}

.error-icon[b-a0fqbfn3ut] {
    width: 80px;
    height: 80px;
    color: #ef4444;
    margin: 0 auto 1.5rem;
    display: block;
}

.error-message p[b-a0fqbfn3ut] {
    font-size: 1.25rem;
    font-weight: 600;
    color: #dc2626;
    margin: 0;
}

/* Processing Layout - Split Screen */
.processing-layout[b-a0fqbfn3ut] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    min-height: 600px;
}

/* Image Section - Left Column */
.image-section[b-a0fqbfn3ut] {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
}

/* Náhled všech nahraných obrázků (1–3) v 1. kroku zpracování – bez posuvníku */
.image-preview-grid[b-a0fqbfn3ut] {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    align-items: center;
    justify-items: center;
    align-content: center;
    max-height: calc(100vh - 300px);
    overflow: hidden;
}

/* 1 obrázek: velký náhled (využije prostor) */
.image-preview-grid:has(.image-preview-item:only-child) .image-preview-item[b-a0fqbfn3ut] {
    max-height: min(500px, 70vh);
}

.image-preview-grid:has(.image-preview-item:only-child) .test-image[b-a0fqbfn3ut] {
    max-height: min(480px, 68vh);
}

/* 3 obrázky: 2 + 1 na řádcích, třetí vycentrovaný */
.image-preview-grid:has(.image-preview-item:nth-child(3):last-child)[b-a0fqbfn3ut] {
    grid-template-columns: repeat(2, 1fr);
}

.image-preview-grid:has(.image-preview-item:nth-child(3):last-child) .image-preview-item:nth-child(3)[b-a0fqbfn3ut] {
    grid-column: 1 / -1;
    justify-self: center;
}

.image-preview-item[b-a0fqbfn3ut] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    max-height: min(220px, 35vh);
}

.image-preview-label[b-a0fqbfn3ut] {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
}

.test-image[b-a0fqbfn3ut] {
    width: 100%;
    height: 100%;
    max-height: min(200px, 32vh);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Steps Section - Right Column */
.steps-section[b-a0fqbfn3ut] {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.steps-title[b-a0fqbfn3ut] {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.steps-container[b-a0fqbfn3ut] {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Step Item */
.step-item[b-a0fqbfn3ut] {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.step-item.completed[b-a0fqbfn3ut] {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.step-item.processing[b-a0fqbfn3ut] {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.step-item.pending[b-a0fqbfn3ut] {
    background: #fafafa;
    border-color: #e5e7eb;
}

/* Step Indicator */
.step-indicator[b-a0fqbfn3ut] {
    flex-shrink: 0;
}

.checkmark-circle[b-a0fqbfn3ut] {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.checkmark-icon[b-a0fqbfn3ut] {
    width: 28px;
    height: 28px;
    color: white;
    stroke-width: 3;
}

.spinner-circle[b-a0fqbfn3ut] {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner[b-a0fqbfn3ut] {
    width: 32px;
    height: 32px;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin-b-a0fqbfn3ut 0.8s linear infinite;
}

@keyframes spin-b-a0fqbfn3ut {
    to {
        transform: rotate(360deg);
    }
}

.pending-circle[b-a0fqbfn3ut] {
    width: 48px;
    height: 48px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number[b-a0fqbfn3ut] {
    font-size: 1.25rem;
    font-weight: 700;
    color: #9ca3af;
}

/* Step Content */
.step-content[b-a0fqbfn3ut] {
    flex: 1;
}

.step-name[b-a0fqbfn3ut] {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.step-status[b-a0fqbfn3ut] {
    font-size: 0.875rem;
    font-weight: 500;
}

.step-status.completed[b-a0fqbfn3ut] {
    color: #059669;
}

.step-status.processing[b-a0fqbfn3ut] {
    color: #2563eb;
}

.step-status.pending[b-a0fqbfn3ut] {
    color: #9ca3af;
}

/* Completion Info */
.completion-info[b-a0fqbfn3ut] {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-top: 1rem;
}

.completion-icon[b-a0fqbfn3ut] {
    width: 64px;
    height: 64px;
    color: #10b981;
    margin: 0 auto 1rem;
    display: block;
}

.completion-info h3[b-a0fqbfn3ut] {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    margin: 0 0 1rem 0;
}

.processing-time[b-a0fqbfn3ut],
.processing-cost[b-a0fqbfn3ut] {
    font-size: 1rem;
    color: #047857;
    margin: 0.5rem 0;
    font-weight: 500;
}

/* Error Alert */
.error-alert[b-a0fqbfn3ut] {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fecaca;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.error-alert p[b-a0fqbfn3ut] {
    color: #dc2626;
    font-weight: 500;
    margin: 0;
    font-size: 0.875rem;
}

/* Result Layout - after processing completes */
.result-layout[b-a0fqbfn3ut] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    height: calc(100vh - 12rem);
    min-height: 400px;
}

.result-image-section[b-a0fqbfn3ut] {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    min-height: 0;
}

.page-navigation[b-a0fqbfn3ut] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 0 0.75rem 0;
    width: 100%;
    flex-shrink: 0;
}

.page-nav-btn[b-a0fqbfn3ut] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.page-nav-btn:hover:not(:disabled)[b-a0fqbfn3ut] {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
}

.page-nav-btn:active:not(:disabled)[b-a0fqbfn3ut] {
    background: #e2e8f0;
}

.page-nav-btn:disabled[b-a0fqbfn3ut] {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-nav-btn svg[b-a0fqbfn3ut] {
    flex-shrink: 0;
}

.page-indicator[b-a0fqbfn3ut] {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.svg-wrapper[b-a0fqbfn3ut] {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-svg[b-a0fqbfn3ut] {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    border-radius: 8px;
}

[b-a0fqbfn3ut] .item-bbox-rect {
    cursor: pointer;
    transition: fill 0.15s ease;
}

[b-a0fqbfn3ut] .item-bbox-rect:hover {
    fill: rgba(59, 130, 246, 0.14);
}

.item-preview[b-a0fqbfn3ut] {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(0, 0, 0, 0.6);
    background: white;
}

.item-preview svg[b-a0fqbfn3ut] {
    display: block;
    width: 100%;
    height: 100%;
}

/* Right Panel */
.result-right-section[b-a0fqbfn3ut] {
    overflow-y: auto;
    min-height: 0;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.result-right-section[b-a0fqbfn3ut]::-webkit-scrollbar {
    width: 6px;
}

.result-right-section[b-a0fqbfn3ut]::-webkit-scrollbar-track {
    background: transparent;
}

.result-right-section[b-a0fqbfn3ut]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.section-title[b-a0fqbfn3ut] {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
    letter-spacing: -0.25px;
}

/* Summary */
.result-summary[b-a0fqbfn3ut] {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 14px;
    padding: 1.25rem;
}

.summary-stats[b-a0fqbfn3ut] {
    display: flex;
    gap: 1rem;
}

.stat-card[b-a0fqbfn3ut] {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.stat-icon[b-a0fqbfn3ut] {
    width: 28px;
    height: 28px;
    color: #3b82f6;
    flex-shrink: 0;
}

.stat-info[b-a0fqbfn3ut] {
    display: flex;
    flex-direction: column;
}

.stat-label[b-a0fqbfn3ut] {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value[b-a0fqbfn3ut] {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

/* Steps */
.result-steps[b-a0fqbfn3ut] {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.result-step-card[b-a0fqbfn3ut] {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.step-card-header[b-a0fqbfn3ut] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.step-card-header .step-header-left[b-a0fqbfn3ut] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.step-points-badge[b-a0fqbfn3ut] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e40af;
    background: #dbeafe;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-icon[b-a0fqbfn3ut] {
    width: 22px;
    height: 22px;
    color: #3b82f6;
    flex-shrink: 0;
}

.step-card-header .step-label[b-a0fqbfn3ut] {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    flex-shrink: 0;
}

.step-card-header .step-text[b-a0fqbfn3ut] {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

/* Item cards */
.result-item-card[b-a0fqbfn3ut] {
    position: relative;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    padding-top: 2.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.result-item-card:hover[b-a0fqbfn3ut] {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
    background-color: #fafcff;
}

.result-item-card.edit-mode[b-a0fqbfn3ut] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
    background-color: #f8faff;
}

/* Edit button - pencil/save in circle, top right */
.item-edit-btn[b-a0fqbfn3ut] {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #3b82f6;
    background: white;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1;
}

.item-edit-btn:hover[b-a0fqbfn3ut] {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.item-edit-btn .edit-btn-icon[b-a0fqbfn3ut] {
    width: 16px;
    height: 16px;
}

/* Edit mode input fields */
.edit-field-input[b-a0fqbfn3ut] {
    width: 100%;
    padding: 0.5rem 0.65rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    resize: vertical;
    font-family: inherit;
}

.edit-field-input:focus[b-a0fqbfn3ut] {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Bool toggle (správnost / úplnost) - two icons, one active one semi-transparent */
.bool-toggle-group[b-a0fqbfn3ut] {
    display: flex;
    gap: 0.35rem;
}

.bool-toggle-btn[b-a0fqbfn3ut] {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
}

.bool-toggle-btn svg[b-a0fqbfn3ut] {
    width: 100%;
    height: 100%;
    display: block;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.bool-toggle-btn.inactive svg[b-a0fqbfn3ut] {
    opacity: 0.4;
}

.bool-toggle-btn:not(.inactive):hover svg[b-a0fqbfn3ut] {
    transform: scale(1.08);
}

.bool-toggle-btn.inactive:hover svg[b-a0fqbfn3ut] {
    opacity: 0.65;
}

.item-card-header[b-a0fqbfn3ut] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.item-icon[b-a0fqbfn3ut] {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    flex-shrink: 0;
}

.item-card-header .item-label[b-a0fqbfn3ut] {
    font-weight: 700;
    color: #334155;
    font-size: 0.95rem;
}

.item-card-header .item-text[b-a0fqbfn3ut] {
    font-weight: 500;
    color: #475569;
    font-size: 0.95rem;
}

.item-details[b-a0fqbfn3ut] {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.item-field[b-a0fqbfn3ut] {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.field-label[b-a0fqbfn3ut] {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.field-value[b-a0fqbfn3ut] {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.5;
}

/* Preserve newlines without <br/> - required for KaTeX to find contiguous $$...$$ blocks */
.text-pre-wrap[b-a0fqbfn3ut] {
    white-space: pre-wrap;
}

.item-field-row[b-a0fqbfn3ut] {
    display: flex;
    gap: 1.5rem;
}

.inline-field[b-a0fqbfn3ut] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
}

.bool-badge svg[b-a0fqbfn3ut] {
    width: 22px;
    height: 22px;
    display: block;
}

.cause-of-error .field-value[b-a0fqbfn3ut] {
    color: #0f172a;
    font-weight: 700;
}

/* Step feedback */
.step-feedback[b-a0fqbfn3ut] {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
}

.feedback-text[b-a0fqbfn3ut] {
    font-size: 0.9rem;
    color: #000;
    font-weight: bold;
    line-height: 1.6;
    margin-top: 0.25rem;
}

/* Create feedback button */
.create-feedback-section[b-a0fqbfn3ut] {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
}

.create-feedback-btn[b-a0fqbfn3ut] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.create-feedback-btn:hover:not(:disabled)[b-a0fqbfn3ut] {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.create-feedback-btn:disabled[b-a0fqbfn3ut] {
    opacity: 0.7;
    cursor: not-allowed;
}

.create-feedback-spinner[b-a0fqbfn3ut] {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin-b-a0fqbfn3ut 0.8s linear infinite;
}

.feedback-item-card[b-a0fqbfn3ut] {
    cursor: default;
    padding-top: 1rem;
}

.feedback-item-card:hover[b-a0fqbfn3ut] {
    border-color: #e2e8f0;
    box-shadow: none;
    background-color: white;
}

/* Overall feedback */
.result-overall-feedback[b-a0fqbfn3ut] {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 14px;
    padding: 1.25rem;
}

.result-overall-feedback .feedback-text[b-a0fqbfn3ut] {
    color: #166534;
}

/* Highlight animation for cross-panel focus */
@keyframes item-highlight-flash-b-a0fqbfn3ut {
    0% { background-color: #FFC067; box-shadow: 0 0 0 4px rgba(255, 192, 103, 0.25); }
    100% { background-color: white; box-shadow: none; }
}

[b-a0fqbfn3ut] .item-highlight {
    animation: item-highlight-flash-b-a0fqbfn3ut 1.5s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .test-grading-container[b-a0fqbfn3ut] {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 16px;
    }

    .page-title[b-a0fqbfn3ut] {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .processing-layout[b-a0fqbfn3ut] {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-height: auto;
    }

    .image-section[b-a0fqbfn3ut] {
        min-height: 300px;
    }

    .image-preview-grid[b-a0fqbfn3ut] {
        max-height: 400px;
    }

    .image-preview-grid:has(.image-preview-item:only-child) .image-preview-item[b-a0fqbfn3ut] {
        max-height: min(360px, 55vh);
    }

    .image-preview-grid:has(.image-preview-item:only-child) .test-image[b-a0fqbfn3ut] {
        max-height: min(340px, 52vh);
    }

    .image-preview-grid:not(:has(.image-preview-item:only-child)) .image-preview-item[b-a0fqbfn3ut] {
        max-height: min(160px, 28vh);
    }

    .image-preview-grid:not(:has(.image-preview-item:only-child)) .test-image[b-a0fqbfn3ut] {
        max-height: min(150px, 26vh);
    }

    .steps-title[b-a0fqbfn3ut] {
        font-size: 1.25rem;
    }

    .step-item[b-a0fqbfn3ut] {
        padding: 1rem;
        gap: 1rem;
    }

    .checkmark-circle[b-a0fqbfn3ut],
    .spinner-circle[b-a0fqbfn3ut],
    .pending-circle[b-a0fqbfn3ut] {
        width: 40px;
        height: 40px;
    }

    .checkmark-icon[b-a0fqbfn3ut] {
        width: 24px;
        height: 24px;
    }

    .spinner[b-a0fqbfn3ut] {
        width: 28px;
        height: 28px;
    }

    .step-name[b-a0fqbfn3ut] {
        font-size: 1rem;
    }

    .step-number[b-a0fqbfn3ut] {
        font-size: 1rem;
    }

    .completion-icon[b-a0fqbfn3ut] {
        width: 48px;
        height: 48px;
    }

    .completion-info h3[b-a0fqbfn3ut] {
        font-size: 1.25rem;
    }

    .result-layout[b-a0fqbfn3ut] {
        grid-template-columns: 1fr;
        gap: 1.5rem;
/*        height: auto;
        min-height: auto;*/
        overflow: hidden;
    }

    .result-image-section[b-a0fqbfn3ut] {
        min-height: 300px;
    }

    .result-right-section[b-a0fqbfn3ut] {
        max-height: none;
    }
}
/* /Components/Pages/TeacherSolution.razor.rz.scp.css */
/* Teacher Solution page */

.teacher-solution-title[b-i95qi358yf] {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1.25rem;
    padding: 0 1.25rem;
    padding-top: 1.25rem;
}

.teacher-solution-sections[b-i95qi358yf] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.25rem 1.25rem;
}

.teacher-solution-section[b-i95qi358yf] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.ts-row[b-i95qi358yf] {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.5;
}

.ts-row-1[b-i95qi358yf] {
    margin-bottom: 0.75rem;
}

.ts-row-2[b-i95qi358yf] {
    align-items: flex-start;
}

.ts-assignment-label[b-i95qi358yf] {
    font-weight: 600;
    color: #334155;
    flex-shrink: 0;
}

.ts-assignment-text[b-i95qi358yf] {
    color: #475569;
    font-size: 0.9375rem;
}

.ts-icon-wrap[b-i95qi358yf] {
    display: inline-flex;
    flex-shrink: 0;
    margin-bottom: 0.15rem;
}

.ts-icon[b-i95qi358yf] {
    width: 20px;
    height: 20px;
    color: #3b82f6;
}

.ts-teacher-solution[b-i95qi358yf] {
    font-size: 0.9375rem;
    color: #1e293b;
}

/* Preserve newlines without <br/> - required for KaTeX to find contiguous $$...$$ blocks */
.text-pre-wrap[b-i95qi358yf] {
    white-space: pre-wrap;
}

.ts-image-container[b-i95qi358yf] {
    display: flex;
    justify-content: center;
    margin-top: 0.875rem;
}

.ts-solution-image[b-i95qi358yf] {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    border-radius: 8px;
    border: 3px solid #7c3aed;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.access-denied[b-i95qi358yf] {
    padding: 2rem;
    text-align: center;
    color: #64748b;
}

.access-denied p[b-i95qi358yf] {
    margin: 0;
    font-size: 1rem;
}
/* /Components/Pages/Upload.razor.rz.scp.css */
.test-grading-container[b-mz008ykxj5] {
    max-width: 800px;
    margin: 2rem auto;
    padding: 3rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.page-title[b-mz008ykxj5] {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: -0.5px;
}

/* Upload Section */
.upload-section[b-mz008ykxj5] {
    margin-bottom: 1rem;
}

.drop-zone[b-mz008ykxj5] {
    border: 3px dashed #cbd5e1;
    border-radius: 16px;
    padding: 2rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transition: all 0.3s ease;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-zone:hover[b-mz008ykxj5] {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
}

.drop-zone.dragging[b-mz008ykxj5] {
    border-color: #2563eb;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.drop-zone-content[b-mz008ykxj5] {
    text-align: center;
    width: 100%;
}

.drop-zone-content.clickable[b-mz008ykxj5] {
    cursor: pointer;
}

.upload-icon[b-mz008ykxj5] {
    width: 80px;
    height: 80px;
    color: #3b82f6;
    margin: 0 auto 1.5rem;
    display: block;
}

.file-icon[b-mz008ykxj5] {
    width: 80px;
    height: 80px;
    color: #10b981;
    margin: 0 auto 1rem;
    display: block;
}

.drop-zone-title[b-mz008ykxj5] {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.drop-zone-subtitle[b-mz008ykxj5] {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.drop-zone-formats[b-mz008ykxj5] {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
}

.file-name[b-mz008ykxj5] {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.file-size[b-mz008ykxj5] {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.btn-remove[b-mz008ykxj5] {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove:hover[b-mz008ykxj5] {
    background-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Form Section */
.form-section[b-mz008ykxj5] {
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group[b-mz008ykxj5] {
    margin-bottom: 0;
}

.form-label[b-mz008ykxj5] {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.optional[b-mz008ykxj5] {
    font-weight: 400;
    color: #94a3b8;
    font-size: 0.875rem;
}

.form-input[b-mz008ykxj5] {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    color: #1e293b;
    background-color: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus[b-mz008ykxj5] {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-input[b-mz008ykxj5]::placeholder {
    color: #cbd5e1;
}

/* Action Section */
.action-section[b-mz008ykxj5] {
    text-align: center;
}

.btn-primary-custom[b-mz008ykxj5] {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary-custom:hover[b-mz008ykxj5] {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.btn-primary-custom:active[b-mz008ykxj5] {
    transform: translateY(0);
}

.btn-primary-custom:disabled[b-mz008ykxj5] {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-primary-custom:disabled:hover[b-mz008ykxj5] {
    transform: none;
    box-shadow: none;
}

.btn-icon[b-mz008ykxj5] {
    width: 24px;
    height: 24px;
}

.spinner[b-mz008ykxj5] {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin-b-mz008ykxj5 0.8s linear infinite;
}

@keyframes spin-b-mz008ykxj5 {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .test-grading-container[b-mz008ykxj5] {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 16px;
    }

    .page-title[b-mz008ykxj5] {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .drop-zone[b-mz008ykxj5] {
        padding: 2rem 1rem;
        min-height: 250px;
    }

    .upload-icon[b-mz008ykxj5],
    .file-icon[b-mz008ykxj5] {
        width: 60px;
        height: 60px;
    }

    .drop-zone-title[b-mz008ykxj5] {
        font-size: 1.25rem;
    }

    .form-section[b-mz008ykxj5] {
        padding: 1.5rem;
    }

    .btn-primary-custom[b-mz008ykxj5] {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
}
