/* ROOT */
#student-view-root {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #f5f7fb;
background-color: #09103f;
    background-image: url("/client/assets/images/bg/notification_bg_portrait.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (orientation: landscape) {
    #student-view-root {
        background-image: url("/client/assets/images/bg/notification_bg_landscape.jpg");
    }
}
/* TOPBAR */
.sv-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #0a2a43;
    color: white;
}
.sv-back {
    background: #123d5c;
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* 🔥 TITLE */
.sv-title {
    flex: 1;
    text-align: center;

    white-space: nowrap; /* ❗ prevents line break */
    overflow: hidden;
    text-overflow: ellipsis;

    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* SUMMARY */
.sv-summary {
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #ddd;
}

/* CONTENT */
.sv-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* QUESTION */
.sv-question {
    margin-bottom: 20px;
}

.sv-qtitle {
    font-weight: bold;
    margin-bottom: 8px;
}

/* PART */
.sv-part {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.sv-part-header {
    font-weight: bold;
    margin-bottom: 6px;
}

.sv-qtext {
    margin-bottom: 8px;
}

/* BLOCKS */
.sv-block {
    margin-top: 10px;
}

.sv-label {
    font-weight: bold;
    margin-bottom: 4px;
}

.sv-label.correct {
    color: green;
}

/* TEXTAREA */
.sv-textarea {
    width: 100%;
    min-height: 80px;
    resize: none;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    white-space: pre-wrap;
}

.sv-textarea.correct {
    border-color: green;
    background: #f0fff4;
}

/* CORRECT ANSWER */
.sv-correct-answer {
    width: 100%;
    box-sizing: border-box;

    padding: 8px;

    border: 1px solid green;
    border-radius: 6px;

    background: #f0fff4;

    font-size: 14px;
    line-height: 1.6;

    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* SCORE */
.sv-score {
    margin-top: 8px;
    font-weight: bold;
}
.sv-image-answer {
    margin-top: 10px;
}

.sv-uploaded-image {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    cursor: zoom-in;
    border: 2px solid #ccc;
}
.sv-student-answer {
    margin-top: 10px;
}

.sv-text-answer {
    line-height: 1.6;
    margin-bottom: 12px;
}

.sv-image-answer,
.sv-marking-image {
    margin-top: 10px;
}

.sv-answer-img,
.sv-marking-img {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    border: 2px solid #ccc;
    cursor: zoom-in;
}

.sv-image-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.92);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 99999;
}

.sv-overlay-image {
    max-width: 95%;
    max-height: 95%;
    border-radius: 12px;
    object-fit: contain;
}
