.edupro-teacher-assignment-app {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch
}

.edupro-teacher-assignment-left, .edupro-teacher-assignment-right {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    min-height: 620px;
    overflow: hidden
}

.edupro-teacher-assignment-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    border-bottom: 1px solid #eef2f7
}

.edupro-teacher-assignment-panel-head h2 {
    margin: 0;
    font-size: 20px
}

.edupro-teacher-assignment-panel-head p {
    margin: 5px 0 0;
    color: #64748b
}

.edupro-teacher-assignment-panel-head span {
    align-self: flex-start;
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 700
}

.edupro-teacher-assignment-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 22px;
    border-bottom: 1px solid #eef2f7
}

.edupro-teacher-assignment-filters input, .edupro-teacher-assignment-filters select {
    height: 40px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 0 12px
}

.edupro-teacher-assignment-filters input[type=search] {
    grid-column: 1/-1
}

.edupro-teacher-assignment-list {
    max-height: 720px;
    overflow: auto;
    padding: 14px
}

.edupro-teacher-assignment-item {
    width: 100%;
    text-align: left;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    display: block
}

.edupro-teacher-assignment-item.active, .edupro-teacher-assignment-item:hover {
    border-color: #6d5dfc;
    box-shadow: 0 12px 28px rgba(79, 70, 229, .12)
}

.edupro-teacher-assignment-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.edupro-teacher-assignment-item-top span {
    background: #f1f5f9;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px
}

.edupro-teacher-assignment-item b, .edupro-teacher-assignment-item small, .edupro-teacher-assignment-item em {
    display: block;
    margin-top: 6px
}

.edupro-teacher-assignment-item small {
    color: #64748b
}

.edupro-teacher-assignment-item em {
    color: #475569;
    font-style: normal;
    font-size: 12px
}

.edupro-teacher-assignment-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    color: #64748b
}

.edupro-teacher-assignment-empty h2 {
    color: #0f172a
}

.edupro-teacher-assignment-detail {
    height: 100%;
    overflow: auto;
    padding: 22px
}

.edupro-admin-assignment-workspace {
    display: grid;
    grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
    gap: 18px;
    align-items: start
}

.edupro-admin-assignment-passage-side {
    position: sticky;
    top: 0;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px;
    max-height: calc(100vh - 230px);
    overflow: auto
}

.edupro-admin-assignment-passage-side h4 {
    margin: 0 0 10px
}

.edupro-admin-assignment-passage-side audio {
    width: 100%;
    margin-top: 10px
}

.edupro-admin-question-card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
    background: #fff
}

.edupro-admin-question-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 12px;
    padding-bottom: 10px
}

.edupro-admin-question-card-head h4 {
    margin: 0
}

.edupro-admin-question-card-head span, .edupro-admin-type-badge {
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700
}

.edupro-admin-question-block, .edupro-admin-question-result-box, .edupro-admin-question-explanation {
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px;
    margin-top: 12px
}

.edupro-admin-question-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.edupro-admin-assignment-detail-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px
}

.edupro-admin-assignment-detail-head h3 {
    margin: 8px 0 4px
}

.edupro-admin-assignment-popup-score {
    min-width: 110px;
    text-align: center;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border-radius: 18px;
    padding: 14px
}

.edupro-admin-assignment-popup-score span, .edupro-admin-assignment-popup-score strong {
    display: block
}

.edupro-admin-assignment-popup-score strong {
    font-size: 24px
}

@media(max-width:1100px) {
    .edupro-teacher-assignment-app, .edupro-admin-assignment-workspace {
        grid-template-columns: 1fr
    }

    .edupro-admin-assignment-passage-side {
        position: static;
        max-height: none
    }
}


/* ===== EduPro refined layout: bài tập giáo viên giống giao diện bài tập học viên ===== */
.edupro-teacher-assignment-app {
    display: block !important;
    background: transparent !important;
}

.edupro-teacher-assignment-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 20px;
    margin-bottom: 0;
    border-bottom: none !important;
}

.edupro-teacher-assignment-panel-head h2 {
    margin: 0;
    font-size: 26px;
    color: #0f172a;
}

.edupro-teacher-assignment-panel-head p {
    margin: 8px 0 0;
    color: #64748b;
    font-weight: 600;
}

.edupro-teacher-assignment-panel-head span {
    align-self: flex-start;
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
}

.edupro-teacher-assignment-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr auto;
    gap: 14px;
    padding: 18px;
    border: 1px solid #dbe3ef;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .05);
}

.edupro-teacher-assignment-filters input, .edupro-teacher-assignment-filters select, .edupro-teacher-assignment-reset {
    height: 48px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 14px;
    background: #fff;
    color: #0f172a;
}

.edupro-teacher-assignment-reset {
    padding: 0 16px;
    font-weight: 800;
    color: #4f46e5;
    background: #f8faff;
    cursor: pointer;
}

.edupro-teacher-assignment-filter-count {
    margin: 18px 0 18px;
    color: #64748b;
    font-weight: 700;
}

.edupro-teacher-assignment-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.edupro-teacher-assignment-card {
    min-width: 0;
    padding: 22px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid #dbe3ef;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .06);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    min-height: 320px;
    cursor: pointer;
}

.edupro-teacher-assignment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 36px rgba(15, 23, 42, .08);
    border-color: #c7d2fe;
}

.edupro-teacher-assignment-card.pending {
    background: linear-gradient(180deg, #fff 0%, #f7f8ff 100%);
}

.edupro-teacher-assignment-card.done {
    background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
    border-color: #bbf7d0;
}

.edupro-teacher-assignment-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.edupro-teacher-assignment-icon {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(79, 70, 229, .08);
}

.edupro-teacher-assignment-card.done .edupro-teacher-assignment-icon {
    background: #dcfce7;
    color: #059669;
}

.edupro-teacher-assignment-status {
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.edupro-teacher-assignment-status.done {
    background: #dcfce7;
    color: #059669;
    border-color: #86efac;
}

.edupro-teacher-assignment-card h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.28;
    font-weight: 950;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
}

.edupro-teacher-assignment-student {
    margin: 0 0 18px;
    color: #4f46e5;
    font-size: 14px;
    font-weight: 800;
}

.edupro-teacher-assignment-meta {
    margin-top: auto;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edupro-teacher-assignment-meta span {
    width: fit-content;
    max-width: 100%;
    min-height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-size: 12.5px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.edupro-teacher-assignment-btn {
    margin-top: auto;
    width: 100%;
    min-height: 46px;
    border-radius: 16px;
    border: 1px solid #4f46e5;
    background: linear-gradient(135deg, #4f46e5, #5b4cf7);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(79, 70, 229, .18);
}

.edupro-teacher-assignment-empty-state {
    padding: 36px 20px;
    text-align: center;
    color: #64748b;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 24px;
}

.edupro-teacher-assignment-empty-state h3 {
    margin: 0 0 8px;
    color: #0f172a;
}

.edupro-teacher-assignment-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: block;
}

.edupro-teacher-assignment-modal[hidden] {
    display: none !important;
}

.edupro-teacher-assignment-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(4px);
}

.edupro-teacher-assignment-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1520px, 96vw);
    max-width: min(1520px, 96vw);
    max-height: 92vh;
    margin: 4vh auto;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.edupro-teacher-assignment-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 44px;
    height: 44px;
    padding: 0 !important;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 28px !important;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
    cursor: pointer;
}

.edupro-teacher-assignment-detail-modal-body {
    padding: 26px;
    overflow: auto;
    max-height: 92vh;
}

.edupro-teacher-assignment-detail-modal-body .edupro-admin-assignment-detail-popup {
    max-width: none;
}

.edupro-teacher-assignment-detail-modal-body .edupro-admin-assignment-workspace {
    display: grid;
    grid-template-columns: minmax(280px, 32%) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.edupro-teacher-assignment-detail-modal-body .edupro-admin-assignment-passage-side {
    position: sticky;
    top: 0;
    max-height: calc(92vh - 170px);
    overflow: auto;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 18px;
}

.edupro-teacher-assignment-detail-modal-body .edupro-admin-question-card {
    border-radius: 20px;
    padding: 18px;
}

.edupro-modal-open {
    overflow: hidden;
}

@media (max-width: 1400px) {
    .edupro-teacher-assignment-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .edupro-teacher-assignment-filters {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .edupro-teacher-assignment-reset {
        grid-column: 1/-1;
    }
}

@media (max-width: 1100px) {
    .edupro-teacher-assignment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .edupro-teacher-assignment-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .edupro-teacher-assignment-detail-modal-body .edupro-admin-assignment-workspace {
        grid-template-columns: 1fr;
    }

    .edupro-teacher-assignment-detail-modal-body .edupro-admin-assignment-passage-side {
        position: static;
        max-height: none;
    }
}

@media (max-width: 767px) {
    .edupro-teacher-assignment-grid {
        grid-template-columns: 1fr;
    }

    .edupro-teacher-assignment-filters {
        grid-template-columns: 1fr;
    }

    .edupro-teacher-assignment-panel-head {
        flex-direction: column;
    }

    .edupro-teacher-assignment-panel-head h2 {
        font-size: 22px;
    }
}
/* Review bài làm: hiển thị đáp án trắc nghiệm giống học viên hơn */
.edupro-teacher-choice-review {
    margin: 14px 0;
}
.edupro-teacher-choice-review > label {
    display: block;
    font-weight: 800;
    color: #17233f;
    margin-bottom: 10px;
}
.edupro-teacher-choice-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.edupro-teacher-choice-review-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px 14px;
    border: 1px solid #dbe7f5;
    border-radius: 14px;
    background: #fff;
    color: #17233f;
    font-weight: 700;
}
.edupro-teacher-choice-review-option img {
    width: 56px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
    background: #f2f6ff;
}
.edupro-teacher-choice-review-option em,
.edupro-teacher-choice-review-option strong {
    margin-left: auto;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1;
    padding: 7px 9px;
    border-radius: 999px;
    font-style: normal;
}
.edupro-teacher-choice-review-option em {
    background: #eef2ff;
    color: #4f46e5;
}
.edupro-teacher-choice-review-option strong {
    background: #dcfce7;
    color: #047857;
}
.edupro-teacher-choice-review-option.is-selected {
    border-color: #6366f1;
    box-shadow: 0 10px 24px rgba(99,102,241,.12);
}
.edupro-teacher-choice-review-option.is-correct {
    border-color: #86efac;
}
.edupro-admin-assignment-time-spent {
    margin-top: 6px !important;
    color: #64748b !important;
}
@media (max-width: 760px) {
    .edupro-teacher-choice-review-grid {
        grid-template-columns: 1fr;
    }
}

/* Fix giao diện xem chi tiết bài đã làm của giáo viên giống học viên, không vỡ layout */
.edupro-teacher-assignment-detail-popup .edupro-admin-question-card {
    overflow: hidden;
}
.edupro-teacher-answer-review-like-student {
    margin: 16px 0 14px;
}
.edupro-teacher-answer-options,
.edupro-admin-question-card .edupro-teacher-answer-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.edupro-student-option-review {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 58px;
    padding: 13px 16px;
    border: 1px solid #dbe7f5;
    border-radius: 16px;
    background: #fff;
    color: #111827;
    font-weight: 600;
    position: relative;
}
.edupro-student-option-review.is-selected {
    border-color: #6d5dfc;
    background: #f5f3ff;
    box-shadow: 0 14px 28px rgba(99, 102, 241, .12);
}
.edupro-student-option-review.is-correct {
    border-color: #86efac;
    background: #f0fdf4;
}
.edupro-student-option-review.is-selected.is-correct {
    background: linear-gradient(135deg, #f0fdf4 0%, #f5f3ff 100%);
}
.edupro-student-option-review img {
    width: 74px;
    height: 54px;
    object-fit: cover;
    border-radius: 12px;
    background: #eef2ff;
    flex: 0 0 auto;
}
.edupro-student-option-review-text {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
}
.edupro-student-option-review-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    margin-left: auto;
}
.edupro-student-option-review-badges span {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}
.edupro-student-option-review-badges .chosen {
    background: #6d5dfc;
    color: #fff;
}
.edupro-student-option-review-badges .correct {
    background: #dcfce7;
    color: #047857;
}
.edupro-teacher-assignment-detail-popup .edupro-admin-question-block,
.edupro-teacher-assignment-detail-popup .edupro-admin-question-result-box,
.edupro-teacher-assignment-detail-popup .edupro-admin-question-explanation {
    border-radius: 16px;
}
.edupro-teacher-assignment-detail-popup .edupro-admin-question-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}
@media (max-width: 900px) {
    .edupro-teacher-answer-options,
    .edupro-admin-question-card .edupro-teacher-answer-options {
        grid-template-columns: 1fr;
    }
    .edupro-student-option-review {
        flex-wrap: wrap;
    }
    .edupro-student-option-review-badges {
        width: 100%;
        margin-left: 0;
    }
}


/* Đồng bộ giao diện xem chi tiết bài làm của giáo viên với giao diện học viên */
.edupro-teacher-assignment-detail-popup .edupro-admin-question-card {
    border: 1px solid #dbe7f5 !important;
    border-radius: 22px !important;
    background: #fff !important;
    padding: 18px !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .05) !important;
}
.edupro-teacher-assignment-detail-popup .edupro-admin-question-card-head {
    padding: 0 0 12px !important;
    border-bottom: 1px solid #e6edf7 !important;
    margin-bottom: 14px !important;
}
.edupro-teacher-assignment-detail-popup .edupro-admin-question-card-head h4 {
    color: #4f46e5 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}
.edupro-teacher-assignment-detail-popup .edupro-admin-question-content {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 0 16px !important;
    color: #0f172a !important;
    font-size: 18px !important;
    line-height: 1.65 !important;
    font-weight: 650 !important;
}
.edupro-teacher-assignment-detail-popup .edupro-teacher-answer-options {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 14px 0 18px !important;
}
.edupro-teacher-assignment-detail-popup .edupro-student-option-review {
    min-height: 58px !important;
    border: 1px solid #dbe7f5 !important;
    border-radius: 16px !important;
    background: #fff !important;
    padding: 14px 16px !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #0f172a !important;
    font-weight: 750 !important;
}
.edupro-teacher-assignment-detail-popup .edupro-student-option-review.is-selected {
    border-color: #5b4df5 !important;
    background: #eef2ff !important;
    box-shadow: inset 0 0 0 1px rgba(91,77,245,.18) !important;
}
.edupro-teacher-assignment-detail-popup .edupro-student-option-review.is-correct:not(.is-selected) {
    border-color: #bbf7d0 !important;
    background: #f0fdf4 !important;
}
.edupro-teacher-assignment-detail-popup .edupro-student-option-review-badges span {
    min-height: 26px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}
.edupro-teacher-assignment-detail-popup .edupro-student-answer-result {
    margin-top: 18px !important;
    padding: 18px !important;
    border-radius: 20px !important;
    border: 1px solid #dbe4ef !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%) !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06) !important;
}
.edupro-teacher-assignment-detail-popup .edupro-student-answer-result.correct {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%) !important;
    border-color: #bbf7d0 !important;
}
.edupro-teacher-assignment-detail-popup .edupro-student-answer-result.wrong {
    background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%) !important;
    border-color: #fecdd3 !important;
}
.edupro-teacher-assignment-detail-popup .edupro-result-topline {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-bottom: 16px !important;
}
.edupro-teacher-assignment-detail-popup .edupro-result-status {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
}
.edupro-teacher-assignment-detail-popup .edupro-result-status > span {
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    font-size: 18px !important;
}
.edupro-teacher-assignment-detail-popup .edupro-student-answer-result.correct .edupro-result-status > span {
    background: #dcfce7 !important;
    color: #15803d !important;
}
.edupro-teacher-assignment-detail-popup .edupro-student-answer-result.wrong .edupro-result-status > span {
    background: #ffe4e6 !important;
    color: #be123c !important;
}
.edupro-teacher-assignment-detail-popup .edupro-result-status strong {
    display: block !important;
    margin: 0 0 4px !important;
    color: #0f172a !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    font-weight: 950 !important;
}
.edupro-teacher-assignment-detail-popup .edupro-result-status p {
    margin: 0 !important;
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    font-weight: 750 !important;
}
.edupro-teacher-assignment-detail-popup .edupro-result-score-pill {
    min-width: 112px !important;
    padding: 10px 14px !important;
    border-radius: 18px !important;
    background: #4f46e5 !important;
    color: #fff !important;
    text-align: center !important;
    box-shadow: 0 14px 26px rgba(79, 70, 229, .22) !important;
}
.edupro-teacher-assignment-detail-popup .edupro-result-score-pill span {
    display: block !important;
    margin-bottom: 3px !important;
    color: rgba(255,255,255,.82) !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    text-transform: uppercase !important;
}
.edupro-teacher-assignment-detail-popup .edupro-result-score-pill strong {
    display: block !important;
    color: #fff !important;
    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
}
.edupro-teacher-assignment-detail-popup .edupro-student-submitted-answer,
.edupro-teacher-assignment-detail-popup .edupro-student-correct-answer,
.edupro-teacher-assignment-detail-popup .edupro-student-teacher-feedback,
.edupro-teacher-assignment-detail-popup .edupro-student-question-explanation {
    margin-top: 14px !important;
    padding: 15px 16px !important;
    border-radius: 17px !important;
    line-height: 1.7 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}
.edupro-teacher-assignment-detail-popup .edupro-student-submitted-answer {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}
.edupro-teacher-assignment-detail-popup .edupro-student-correct-answer {
    background: #ecfdf5 !important;
    border: 1px solid #bbf7d0 !important;
    color: #14532d !important;
}
.edupro-teacher-assignment-detail-popup .edupro-student-teacher-feedback {
    background: #eef2ff !important;
    border: 1px solid #c7d2fe !important;
    border-left: 5px solid #4f46e5 !important;
    color: #1e293b !important;
}
.edupro-teacher-assignment-detail-popup .edupro-student-question-explanation {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    border-left: 5px solid #f59e0b !important;
    color: #713f12 !important;
}
.edupro-teacher-assignment-detail-popup .edupro-student-submitted-answer > span,
.edupro-teacher-assignment-detail-popup .edupro-student-correct-answer > span,
.edupro-teacher-assignment-detail-popup .edupro-student-teacher-feedback > span,
.edupro-teacher-assignment-detail-popup .edupro-student-question-explanation > span {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 9px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 950 !important;
    text-transform: uppercase !important;
    letter-spacing: .025em !important;
}
.edupro-teacher-assignment-detail-popup .edupro-student-submitted-answer > span::before { content: "✍️"; }
.edupro-teacher-assignment-detail-popup .edupro-student-correct-answer > span::before { content: "✅"; }
.edupro-teacher-assignment-detail-popup .edupro-student-teacher-feedback > span::before { content: "💬"; }
.edupro-teacher-assignment-detail-popup .edupro-student-question-explanation > span::before { content: "💡"; }
@media (max-width: 900px) {
    .edupro-teacher-assignment-detail-popup .edupro-teacher-answer-options {
        grid-template-columns: 1fr !important;
    }
    .edupro-teacher-assignment-detail-popup .edupro-result-topline {
        align-items: flex-start !important;
        flex-direction: column !important;
    }
}

/* Fix giao diện nút Sửa/Xóa trong danh sách Part */
.edupro-part-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}
.edupro-part-row-main{
    min-width:0;
    flex:1;
}
.edupro-part-row-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    flex-shrink:0;
}
.edupro-part-row-actions button,
.edupro-question-row-actions .edit-part,
.edupro-question-row-actions .delete-part{
    border:0!important;
    outline:0!important;
    border-radius:999px!important;
    padding:9px 15px!important;
    font-size:13px!important;
    font-weight:800!important;
    line-height:1!important;
    cursor:pointer!important;
    box-shadow:0 10px 22px rgba(15,23,42,.08)!important;
    transition:transform .18s ease, box-shadow .18s ease, background .18s ease!important;
}
.edupro-question-row-actions .edit-part{
    background:linear-gradient(135deg,#eef2ff,#e0e7ff)!important;
    color:#4338ca!important;
}
.edupro-question-row-actions .delete-part{
    background:linear-gradient(135deg,#fff1f2,#ffe4e6)!important;
    color:#e11d48!important;
}
.edupro-question-row-actions .edit-part:hover,
.edupro-question-row-actions .delete-part:hover{
    transform:translateY(-1px)!important;
    box-shadow:0 14px 28px rgba(79,70,229,.18)!important;
}
@media(max-width:768px){
    .edupro-part-row{align-items:flex-start;flex-direction:column;}
    .edupro-part-row-actions{width:100%;justify-content:flex-start;}
}
