/* =========================================================
   QUESTION BANK
   Fresh isolated UI
========================================================= */

.em-question-bank-page {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
}


/* =========================================================
   BACK TO DASHBOARD
========================================================= */

.em-qb-page-top {
    margin-bottom: 18px;
}

.em-qb-back-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    border: 1px solid #dfe5ec;
    background: #ffffff;
    color: #344054;

    padding: 10px 16px;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.em-qb-back-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.07);
}

.em-qb-back-icon {
    font-size: 17px;
    line-height: 1;
}


/* =========================================================
   MAIN HEADER
========================================================= */

.em-qb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding: 30px;

    border: 1px solid #e7ebf0;
    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8fbff 100%
        );

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.06);

    margin-bottom: 20px;
}

.em-qb-header-content {
    min-width: 0;
}

.em-qb-eyebrow {
    display: inline-block;

    margin-bottom: 8px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: #64748b;
}

.em-qb-header h2 {
    margin: 0;

    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.15;

    font-weight: 750;

    color: #101828;
}

.em-qb-header p {
    margin: 9px 0 0;

    max-width: 680px;

    font-size: 14px;
    line-height: 1.6;

    color: #667085;
}

.em-qb-header-action {
    flex: 0 0 auto;
}

.em-qb-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 44px;

    padding: 11px 18px;

    border: 0;
    border-radius: 11px;

    background: #111827;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 7px 18px rgba(15, 23, 42, 0.15);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.em-qb-primary-button:hover {
    background: #1f2937;

    transform: translateY(-1px);

    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.18);
}

.em-qb-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 21px;
    height: 21px;

    border-radius: 6px;

    background: rgba(255, 255, 255, 0.14);

    font-size: 18px;
    line-height: 1;
}


/* =========================================================
   STATISTICS
========================================================= */

.em-qb-statistics {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 20px;
}

.em-qb-stat-card {
    display: flex;
    align-items: center;
    gap: 15px;

    min-height: 100px;

    padding: 18px;

    border: 1px solid #e7ebf0;
    border-radius: 15px;

    background: #ffffff;

    box-shadow:
        0 6px 20px rgba(15, 23, 42, 0.045);

    box-sizing: border-box;
}

.em-qb-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    flex: 0 0 45px;

    border-radius: 12px;

    background: #f5f7fa;

    font-size: 20px;
}

.em-qb-stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;

    min-width: 0;
}

.em-qb-stat-content span {
    font-size: 12px;
    font-weight: 600;

    color: #667085;
}

.em-qb-stat-content strong {
    font-size: 24px;
    line-height: 1.1;

    font-weight: 750;

    color: #101828;
}


/* =========================================================
   FILTER PANEL
========================================================= */

.em-qb-filter-panel {
    padding: 22px;

    border: 1px solid #e7ebf0;
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 6px 22px rgba(15, 23, 42, 0.045);

    margin-bottom: 22px;
}

.em-qb-search-row {
    margin-bottom: 18px;
}

.em-qb-search-box {
    position: relative;
    width: 100%;
}

.em-qb-search-icon {
    position: absolute;

    left: 14px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 15px;

    pointer-events: none;

    opacity: 0.65;
}

.em-qb-search-box input {
    width: 100%;
    min-height: 46px;

    padding: 11px 15px 11px 42px;

    border: 1px solid #d9dee7;
    border-radius: 11px;

    background: #ffffff;

    color: #101828;

    font-size: 14px;

    outline: none;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.em-qb-search-box input::placeholder {
    color: #98a2b3;
}

.em-qb-search-box input:focus {
    border-color: #98a2b3;

    box-shadow:
        0 0 0 3px rgba(100, 116, 139, 0.10);
}


/* =========================================================
   FILTER FIELDS
========================================================= */

.em-qb-filter-row {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 14px;
}

.em-qb-filter-field {
    min-width: 0;
}

.em-qb-filter-field label {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;
    font-weight: 700;

    color: #344054;
}

.em-qb-filter-field select {
    width: 100%;
    min-height: 42px;

    padding: 9px 12px;

    border: 1px solid #d9dee7;
    border-radius: 10px;

    background: #ffffff;

    color: #344054;

    font-size: 13px;
    font-weight: 500;

    outline: none;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.em-qb-filter-field select:focus {
    border-color: #98a2b3;

    box-shadow:
        0 0 0 3px rgba(100, 116, 139, 0.10);
}

.em-qb-filter-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: 16px;
}

.em-qb-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 8px 14px;

    border: 1px solid #d9dee7;
    border-radius: 9px;

    background: #ffffff;
    color: #344054;

    font-size: 13px;
    font-weight: 650;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.em-qb-secondary-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;

    transform: translateY(-1px);
}


/* =========================================================
   RESULTS HEADER
========================================================= */

.em-qb-results-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 14px;
}

.em-qb-results-eyebrow {
    display: block;

    margin-bottom: 4px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.11em;
    text-transform: uppercase;

    color: #98a2b3;
}

.em-qb-results-header h3 {
    margin: 0;

    font-size: 20px;
    line-height: 1.25;

    font-weight: 750;

    color: #101828;
}

.em-qb-results-meta {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;

    white-space: nowrap;

    font-size: 13px;
    color: #667085;
}

.em-qb-results-meta strong {
    font-size: 17px;
    color: #101828;
}


/* =========================================================
   QUESTION LIST
========================================================= */

.em-qb-question-section {
    position: relative;
}

.em-qb-question-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* =========================================================
   QUESTION CARD
========================================================= */

.em-qb-question-card {
    position: relative;

    display: grid;

    grid-template-columns:
        auto minmax(0, 1fr) auto;

    gap: 16px;
    align-items: start;

    padding: 20px;

    border: 1px solid #e6eaf0;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, 0.04);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.em-qb-question-card:hover {
    border-color: #d6dce5;

    box-shadow:
        0 9px 25px rgba(15, 23, 42, 0.065);

    transform: translateY(-1px);
}

/* ---------------------------------------------------------
   SELECTED QUESTION CARD
--------------------------------------------------------- */

.em-qb-question-card:has(
    .em-qb-question-checkbox:checked
) {
    border-color: #94a3b8;

    background: #f8fafc;

    box-shadow:
        0 7px 22px rgba(15, 23, 42, 0.08);
}


/* ---------------------------------------------------------
   SELECTED QUESTION CHECKBOX
--------------------------------------------------------- */

.em-qb-question-card
.em-qb-question-checkbox:checked {
    accent-color: #111827;
}

.em-qb-question-select {
    padding-top: 2px;
}

.em-qb-question-checkbox {
    width: 18px;
    height: 18px;

    margin: 0;

    cursor: pointer;
}

.em-qb-question-main {
    min-width: 0;
}

.em-qb-question-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 8px;
}

.em-qb-question-number {
    font-size: 12px;
    font-weight: 800;

    color: #667085;
}

.em-qb-question-level {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 999px;

    background: #f2f4f7;

    color: #475467;

    font-size: 11px;
    font-weight: 700;
}

.em-qb-question-text {
    margin: 0;

    font-size: 15px;
    line-height: 1.6;

    font-weight: 600;

    color: #1d2939;

    overflow-wrap: anywhere;
}

.em-qb-question-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 12px;
}

.em-qb-meta-item {
    display: inline-flex;
    align-items: center;

    padding: 5px 8px;

    border-radius: 7px;

    background: #f8fafc;

    color: #667085;

    font-size: 11px;
    font-weight: 600;
}

.em-qb-question-actions {
    display: flex;
    align-items: center;

    gap: 8px;

    flex-wrap: wrap;
}

.em-qb-question-action {
    min-height: 34px;

    padding: 7px 11px;

    border: 1px solid #d9dee7;
    border-radius: 8px;

    background: #ffffff;
    color: #344054;

    font-size: 12px;
    font-weight: 650;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.em-qb-question-action:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}


/* =========================================================
   MESSAGE / EMPTY / ERROR
========================================================= */

.em-qb-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 220px;

    padding: 30px;

    border: 1px dashed #d9dee7;
    border-radius: 14px;

    background: #ffffff;

    text-align: center;

    color: #667085;
}

.em-qb-message h3 {
    margin: 10px 0 5px;

    font-size: 17px;
    color: #101828;
}

.em-qb-message p {
    margin: 0 0 15px;

    max-width: 430px;

    font-size: 13px;
    line-height: 1.5;
}

.em-qb-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border-radius: 14px;

    background: #f5f7fa;

    font-size: 21px;
}

.em-qb-error-message {
    border-color: #f0d0d0;
}


/* =========================================================
   LOADING
========================================================= */

.em-qb-loading-spinner {
    width: 28px;
    height: 28px;

    margin-bottom: 12px;

    border: 3px solid #e5e7eb;
    border-top-color: #64748b;

    border-radius: 50%;

    animation: em-qb-spin 0.8s linear infinite;
}

@keyframes em-qb-spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

/* =========================================================
   SELECTED QUESTIONS
========================================================= */

.em-qb-selected-questions-section {
    margin-bottom: 20px;
    padding: 16px 18px;

    border: 1px solid #e7ebf0;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 6px 20px rgba(15, 23, 42, 0.045);
}


/* ---------------------------------------------------------
   SELECTED QUESTIONS HEADER
--------------------------------------------------------- */

.em-qb-selected-questions-section .em-qb-selected-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 12px;
}


.em-qb-selected-questions-section h3 {
    margin: 0;

    font-size: 17px;
    line-height: 1.3;

    font-weight: 750;

    color: #101828;
}


/* ---------------------------------------------------------
   SELECTED COUNT
--------------------------------------------------------- */

#em-qb-selected-count {
    font-size: 13px;
    font-weight: 700;

    color: #667085;
}


/* ---------------------------------------------------------
   SELECTED QUESTIONS LIST
--------------------------------------------------------- */

.em-qb-selected-questions-list {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;

    width: 100%;
}


/* ---------------------------------------------------------
   SELECTED QUESTION CARD
--------------------------------------------------------- */

.em-qb-selected-question-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    min-width: 0;

    padding: 10px 11px;

    border: 1px solid #e6eaf0;
    border-radius: 10px;

    background: #f8fafc;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}


.em-qb-selected-question-item:hover {
    border-color: #cbd5e1;

    background: #ffffff;
}


/* ---------------------------------------------------------
   QUESTION INFORMATION
--------------------------------------------------------- */

.em-qb-selected-question-info {
    display: flex;
    flex-direction: column;

    gap: 3px;

    min-width: 0;

    flex: 1;
}


.em-qb-selected-question-info strong {
    display: block;

    font-size: 11px;
    line-height: 1.2;

    font-weight: 800;

    color: #475467;
}


.em-qb-selected-question-info span {
    display: block;

    font-size: 11px;
    line-height: 1.35;

    color: #667085;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ---------------------------------------------------------
   REMOVE BUTTON
--------------------------------------------------------- */

.em-qb-remove-selected-question {
    flex: 0 0 auto;

    padding: 5px 9px;

    border: 1px solid #dc2626;
    border-radius: 7px;

    background: #dc2626;
    color: #ffffff;

    font-size: 10px;
    font-weight: 700;

    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.em-qb-remove-selected-question:hover {
    background: #b91c1c;

    border-color: #b91c1c;

    color: #ffffff;

    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   TABLET
--------------------------------------------------------- */

@media (max-width: 1100px) {

    .em-qb-selected-questions-list {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* ---------------------------------------------------------
   MOBILE — SELECTED QUESTIONS
--------------------------------------------------------- */

@media (max-width: 700px) {

    .em-qb-selected-questions-section {
        padding: 14px;
    }


    .em-qb-selected-questions-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }


    .em-qb-selected-question-item {
        flex-direction: row;
        align-items: center;

        gap: 7px;

        padding: 8px 9px;
    }


    .em-qb-selected-question-info {
        min-width: 0;
    }


    .em-qb-selected-question-info strong {
        font-size: 10px;
    }


    .em-qb-selected-question-info span {
        font-size: 10px;
    }


    .em-qb-remove-selected-question {
        flex: 0 0 auto;

        padding: 5px 7px;

        font-size: 9px;

        white-space: nowrap;
    }

}


@media (max-width: 480px) {

    .em-qb-selected-questions-list {
        grid-template-columns: 1fr;

        gap: 7px;
    }


    .em-qb-selected-question-item {
        padding: 8px 9px;
    }


    .em-qb-selected-question-info strong {
        font-size: 10px;
    }


    .em-qb-selected-question-info span {
        font-size: 10px;
    }


    .em-qb-remove-selected-question {
        padding: 5px 8px;

        font-size: 9px;
    }

}

/* =========================================================
   SELECTION BAR
========================================================= */

.em-qb-selection-bar {
    position: sticky;

    bottom: 18px;

    z-index: 50;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 20px;
    padding: 14px 16px;

    border: 1px solid #dce2ea;
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.96);

    box-shadow:
        0 14px 35px rgba(15, 23, 42, 0.12);

    backdrop-filter: blur(12px);
}

.em-qb-selection-info {
    display: flex;
    align-items: center;

    gap: 8px;

    min-width: 0;

    color: #344054;

    font-size: 13px;
}

.em-qb-selection-info strong {
    color: #101828;
}

.em-qb-selection-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    border-radius: 7px;

    background: #101828;
    color: #ffffff;

    font-size: 13px;
    font-weight: 800;
}

.em-qb-selection-actions {
    display: flex;
    align-items: center;

    gap: 9px;

    flex: 0 0 auto;
}

.em-qb-selection-clear {
    border: 0;
    background: transparent;

    color: #667085;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.em-qb-selection-clear:hover {
    color: #101828;
}

.em-qb-selection-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 39px;

    padding: 8px 14px;

    border: 0;
    border-radius: 9px;

    background: #101828;
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.em-qb-selection-continue:hover {
    background: #1f2937;

    transform: translateY(-1px);
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1100px) {

    .em-qb-filter-row {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .em-qb-statistics {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 700px) {

    .em-question-bank-page {
        padding: 15px;
    }

    .em-qb-header {
        flex-direction: column;
        align-items: stretch;

        padding: 22px;

        gap: 20px;
    }

    .em-qb-header-action {
        width: 100%;
    }

    .em-qb-primary-button {
        width: 100%;
    }

    .em-qb-statistics {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .em-qb-stat-card {
        min-height: 88px;
        padding: 14px;

        gap: 10px;
    }

    .em-qb-stat-icon {
        width: 38px;
        height: 38px;

        flex-basis: 38px;

        font-size: 17px;
    }

    .em-qb-stat-content strong {
        font-size: 20px;
    }

    .em-qb-filter-panel {
        padding: 16px;
    }

    .em-qb-filter-row {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .em-qb-results-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 8px;
    }

    .em-qb-question-card {
        grid-template-columns:
            auto minmax(0, 1fr);

        gap: 12px;

        padding: 16px;
    }

    .em-qb-question-actions {
        grid-column: 1 / -1;

        padding-left: 30px;
    }

    /* ---------------------------------------------------------
   MOBILE SELECTION BAR
--------------------------------------------------------- */

.em-qb-selection-bar {
    flex-direction: column;
    align-items: stretch;

    gap: 9px;

    margin-top: 15px;

    padding: 10px 12px;

    bottom: 8px;

    border-radius: 12px;
}


.em-qb-selection-info {
    width: 100%;

    justify-content: flex-start;

    gap: 7px;

    font-size: 12px;
}


.em-qb-selection-check {
    width: 22px;
    height: 22px;

    flex: 0 0 22px;

    border-radius: 6px;

    font-size: 12px;
}


.em-qb-selection-actions {
    display: grid;

    grid-template-columns:
        auto minmax(0, 1fr);

    gap: 8px;

    width: 100%;
}


.em-qb-selection-clear {
    min-height: 36px;

    padding: 7px 10px;

    border: 1px solid #d9dee7;

    border-radius: 8px;

    background: #ffffff;

    font-size: 11px;

    white-space: nowrap;
}


.em-qb-selection-continue {
    width: 100%;

    min-height: 36px;

    padding: 7px 10px;

    border-radius: 8px;

    font-size: 11px;

    flex: none;
}

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .em-qb-filter-row {
        grid-template-columns: 1fr;
    }

    .em-qb-statistics {
        grid-template-columns: 1fr 1fr;
    }

    .em-qb-question-top {
        align-items: flex-start;
        flex-direction: column;

        gap: 6px;
    }

}

/* =========================================================
   VIEW QUESTION MODAL
   ========================================================= */

#em-qb-view-question-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    width: 100%;
    height: 100%;
}


/* ---------------------------------------------------------
   OVERLAY
--------------------------------------------------------- */

#em-qb-view-question-modal
.em-qb-view-question-overlay {

    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.55);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
    box-sizing: border-box;

    overflow-y: auto;
}


/* ---------------------------------------------------------
   DIALOG
--------------------------------------------------------- */

#em-qb-view-question-modal
.em-qb-view-question-dialog {

    width: 100%;
    max-width: 850px;

    max-height: 90vh;

    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25);

    overflow: hidden;

    display: flex;
    flex-direction: column;
}


/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

#em-qb-view-question-modal
.em-qb-view-question-header {

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 20px 24px;

    border-bottom: 1px solid #e5e7eb;
}


#em-qb-view-question-modal
.em-qb-view-question-header h2 {

    margin: 0;

    font-size: 22px;
    font-weight: 700;

    color: #111827;
}


/* ---------------------------------------------------------
   CLOSE X
--------------------------------------------------------- */

#em-qb-view-question-modal
.em-qb-view-question-close {

    width: 36px;
    height: 36px;

    border: none;

    background: transparent;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    color: #6b7280;

    display: flex;
    align-items: center;
    justify-content: center;
}


#em-qb-view-question-modal
.em-qb-view-question-close:hover {

    color: #111827;

    background: #f3f4f6;

    border-radius: 8px;
}


/* ---------------------------------------------------------
   BODY
--------------------------------------------------------- */

#em-qb-view-question-modal
.em-qb-view-question-body {

    padding: 24px;

    overflow-y: auto;

    max-height: calc(90vh - 80px);

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   LOADING
--------------------------------------------------------- */

#em-qb-view-question-modal
.em-qb-view-question-loading {

    text-align: center;

    padding: 50px 20px;

    color: #6b7280;

    font-size: 16px;
}


/* ---------------------------------------------------------
   QUESTION CODE
--------------------------------------------------------- */

#em-qb-view-question-modal
.em-qb-question-view-code {

    font-size: 13px;

    font-weight: 600;

    color: #6b7280;

    margin-bottom: 12px;
}


/* ---------------------------------------------------------
   QUESTION TEXT
--------------------------------------------------------- */

#em-qb-view-question-modal
.em-qb-question-view-text {

    font-size: 18px;

    line-height: 1.7;

    color: #111827;

    margin-bottom: 25px;
}


/* ---------------------------------------------------------
   SECTIONS
--------------------------------------------------------- */

#em-qb-view-question-modal
.em-qb-question-view-section {

    margin-top: 24px;

    padding-top: 20px;

    border-top: 1px solid #e5e7eb;
}


#em-qb-view-question-modal
.em-qb-question-view-section h3 {

    margin: 0 0 14px 0;

    font-size: 16px;

    font-weight: 700;

    color: #111827;
}


/* ---------------------------------------------------------
   OPTIONS
--------------------------------------------------------- */

#em-qb-view-question-modal
.em-qb-question-view-options {

    display: flex;

    flex-direction: column;

    gap: 10px;
}


#em-qb-view-question-modal
.em-qb-question-view-option {

    display: flex;

    gap: 12px;

    padding: 12px 14px;

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    background: #f9fafb;

    color: #374151;

    line-height: 1.5;
}


#em-qb-view-question-modal
.em-qb-question-view-option strong {

    min-width: 24px;

    color: #111827;
}


/* ---------------------------------------------------------
   CORRECT ANSWER
--------------------------------------------------------- */

#em-qb-view-question-modal
.em-qb-question-view-correct {

    padding: 12px 14px;

    border-radius: 8px;

    background: #f0fdf4;

    border: 1px solid #bbf7d0;

    font-weight: 600;

    color: #166534;
}


/* ---------------------------------------------------------
   EXPLANATION
--------------------------------------------------------- */

#em-qb-view-question-modal
.em-qb-question-view-explanation {

    padding: 14px;

    border-radius: 8px;

    background: #f9fafb;

    color: #374151;

    line-height: 1.6;
}


/* ---------------------------------------------------------
   QUESTION INFORMATION
--------------------------------------------------------- */

#em-qb-view-question-modal
.em-qb-question-view-info {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}


#em-qb-view-question-modal
.em-qb-question-view-info > div {

    padding: 10px 12px;

    border-radius: 8px;

    background: #f9fafb;

    border: 1px solid #e5e7eb;

    color: #374151;
}


/* ---------------------------------------------------------
   ACTIONS
--------------------------------------------------------- */

#em-qb-view-question-modal
.em-qb-question-view-actions {

    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #e5e7eb;
}


#em-qb-view-question-modal
.em-qb-question-view-actions button {

    border: none;

    border-radius: 7px;

    padding: 10px 20px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;
}


#em-qb-view-question-modal
.em-qb-view-edit-question {

    background: #0b63ce;

    color: #ffffff;
}


#em-qb-view-question-modal
.em-qb-view-close-question {

    background: #e5e7eb;

    color: #111827;
}


/* ---------------------------------------------------------
   ERROR
--------------------------------------------------------- */

#em-qb-view-question-modal
.em-qb-view-question-error {

    padding: 30px;

    text-align: center;

    color: #b91c1c;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 700px) {

    #em-qb-view-question-modal
    .em-qb-view-question-overlay {

        padding: 15px;

    }


    #em-qb-view-question-modal
    .em-qb-view-question-dialog {

        max-height: 94vh;

        border-radius: 12px;

    }


    #em-qb-view-question-modal
    .em-qb-view-question-body {

        padding: 18px;

        max-height: calc(94vh - 75px);

    }


    #em-qb-view-question-modal
    .em-qb-question-view-info {

        grid-template-columns: 1fr;

    }


    #em-qb-view-question-modal
    .em-qb-question-view-text {

        font-size: 16px;

    }

}