
/* =========================================
   CUSTOM LMS — QUIZ PLAYER
   Clean and properly formatted CSS
========================================= */

.clqa-app {
    min-height: 100vh;
    background: transparent;
    color: #172b49;
    font: 15px/1.6 Inter, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.clqa-app * {
    box-sizing: border-box;
}

/* =========================================
   TOP HEADER
========================================= */

.clqa-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: transparent;
    border-bottom: 1px solid #e1e7f0;
    padding: 17px max(24px, calc((100vw - 1080px) / 2));
}

.clqa-top a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 700;
}

.clqa-top-course {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: #253b57;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================
   EXIT BUTTON
========================================= */

.clqa-top a.clqa-exit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 10px 18px;

    background: transparent;
    color: #172b49;

    border: 1px solid #dbe4ef;
    border-radius: 12px;

    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;

    transition:
        background 0.2s,
        border-color 0.2s;
}

.clqa-top a.clqa-exit:hover,
.clqa-top a.clqa-exit:focus-visible {
    background: transparent;
    border-color: #aabde9;
    color: #234b94;
}

/* =========================================
   MAIN CONTAINER
========================================= */

.clqa-container {
    max-width: 1000px;
    margin: 42px auto;
    padding: 0 20px 70px;
}

/* =========================================
   TITLE AND INSTRUCTIONS
========================================= */

.clqa-title h1 {
    font-size: 34px;
    margin: 0 0 12px;
    color: #182845;
}

.clqa-kicker {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #5047b4;
    font-weight: 800;
    margin: 0;
}

.clqa-instructions {
    color: #64748b;
}

/* =========================================
   QUIZ STATISTICS
========================================= */

.clqa-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 22px 0;
}

.clqa-stats span {
    background: transparent;
    border: 1px solid #dfe6f0;
    padding: 8px 13px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 13px;
}

/* =========================================
   QUIZ CARDS
========================================= */

.clqa-card {
    background: transparent;
    border: 1px solid #e1e8f2;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 26px #1b35500a;
}

/* =========================================
   BUTTONS
========================================= */


/* START QUIZ BUTTON - BACKGROUND FIX */

.clqa-app button.clqa-btn,
.clqa-app .clqa-btn,
.clqa-app input[type="submit"].clqa-btn {
    background: #285bb3 !important;
    background-color: #285bb3 !important;
    color: #ffffff !important;
    border: 1px solid #285bb3 !important;
    border-radius: 8px !important;
    padding: 14px 26px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    opacity: 1;
    cursor: pointer;
}

.clqa-app button.clqa-btn:hover,
.clqa-app .clqa-btn:hover {
    background: #19468f !important;
    color: #ffffff !important;
    border-color: #19468f !important;
}


/* =========================================
   QUESTIONS
========================================= */

.clqa-question {
    border: 0;
    border-bottom: 1px solid #e7edf6;
    padding: 16px 0 25px;
    margin: 0 0 18px;
    min-width: 0;
}

.clqa-question legend {
    width: 100%;
    padding: 0;
    margin: 0 0 18px;
}

.clqa-question legend span {
    display: block;
    color: #637798;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
}

.clqa-question legend strong {
    display: block;
    font-size: 19px;
}

.clqa-question img,
.clqa-review img {
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
    display: block;
    margin: 12px 0;
}

/* =========================================
   ANSWER OPTIONS
========================================= */

.clqa-choice {
    display: flex;
    align-items: center;
    gap: 13px;

    background: transparent;
    border: 1px solid #dce4f0;
    border-radius: 10px;

    padding: 13px 15px;
    margin: 10px 0;
    cursor: pointer;
}

.clqa-choice:hover {
    border-color: #4f46e5;
    background: transparent;
}

.clqa-choice input {
    width: 18px;
    height: 18px;
    accent-color: #4f46e5;
}

/* =========================================
   SUBMIT SECTION
========================================= */

.clqa-submit {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.clqa-submit small {
    color: #64748b;
}

/* =========================================
   QUIZ TIMER
========================================= */

.clqa-timer {
    position: sticky;
    top: 0;

    background: transparent;
    color: #9f1239;

    border: 1px solid #fecdd3;
    border-radius: 9px;

    padding: 10px 15px;
    font-weight: 800;
    z-index: 1;
}

/* =========================================
   QUIZ RESULT
========================================= */

.clqa-result h2 {
    font-size: 24px;
}

.clqa-big {
    font-weight: 900;
    font-size: 28px;
}

.clqa-big.pass,
.clqa-good {
    color: #15803d;
}

.clqa-big.fail,
.clqa-wrong,
.clqa-feedback {
    color: #b91c1c;
}

.clqa-score {
    font-size: 25px;
    font-weight: 800;
    margin: 8px 0;
}

/* =========================================
   ANSWER REVIEW
========================================= */

.clqa-review {
    border-top: 1px solid #e3e9f0;
    padding: 20px 0;
}

.clqa-review > strong {
    font-size: 17px;
}

.clqa-good,
.clqa-wrong {
    font-weight: 800;
    margin: 10px 0;
}

.clqa-answer {
    font-size: 13px;
    margin: 5px 0;
    color: #465873;
}

.clqa-feedback {
    display: inline-block;
    border-radius: 8px;

    background: transparent;
    border: 1px solid #fecdd3;

    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.6;
    margin: 6px 0;
}

.clqa-warning {
    color: #b91c1c;
    font-weight: 700;
}

/* =========================================
   RESULT STUDENT DETAILS
========================================= */

.clqa-result-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 18px;

    background: transparent;
    border: 1px solid #e3eaf5;

    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.clqa-result-details p {
    margin: 7px 0;
    overflow-wrap: anywhere;
}

/* =========================================
   EXPANDABLE REVIEW PANEL
========================================= */

.clqa-review-panel {
    margin: 22px 0;
    padding: 14px 18px;
    border: 1px solid #dce5f1;
    border-radius: 12px;
    background: transparent;
}

.clqa-review-panel > summary {
    font-weight: 750;
    color: #275cb3;
    cursor: pointer;
    padding: 5px;
}

/* =========================================
   RESULT ACTION BUTTONS
========================================= */

.clqa-result-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 620px) {
    .clqa-container {
        margin: 20px auto;
    }

    .clqa-title h1 {
        font-size: 27px;
    }

    .clqa-card {
        padding: 18px;
    }

    .clqa-top {
        padding: 15px 18px;
    }

    .clqa-top-course {
        display: none;
    }

    .clqa-top a.clqa-exit {
        padding: 9px 13px;
    }
}

@media (max-width: 600px) {
    .clqa-result-details {
        grid-template-columns: 1fr;
    }
}
