/* =========================================================
   OAV-2026 TEST CSS
   Mobile + Desktop Responsive
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
}


/* ================= HEADER ================= */

.oav-header {
    background: linear-gradient(135deg, #003399, #0066cc);
    color: white;
    padding: 14px 20px;

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

    gap: 15px;
}

.oav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.oav-logo > span {
    font-size: 30px;
}

.oav-logo h2 {
    margin: 0;
    font-size: 20px;
}

.oav-logo small {
    opacity: 0.9;
}


#timerDisplay {
    background: white;
    color: #003399;

    padding: 9px 15px;

    border-radius: 25px;

    font-weight: bold;

    white-space: nowrap;
}


/* ================= MAIN ================= */

.oav-test-container {

    width: 100%;
    max-width: 900px;

    margin: 25px auto;

    padding: 0 15px;
}


/* ================= TEST INFO ================= */

#testInfoBar {

    background: white;

    border-radius: 12px;

    padding: 15px 20px;

    margin-bottom: 15px;

    box-shadow:
        0 3px 12px rgba(0,0,0,0.08);

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

    font-weight: bold;
}

#lblTestName {
    color: #003399;
}

#lblSubject {
    color: #15803d;
}

#lblTotalMarks {
    color: #7e22ce;
}


/* ================= STATUS ================= */

#testStatusMsg {

    background: white;

    padding: 25px;

    border-radius: 12px;

    text-align: center;

    box-shadow:
        0 3px 12px rgba(0,0,0,0.07);

    color: #475569;
}


/* ================= QUESTION BOX ================= */

#questionBox {

    background: white;

    border-radius: 14px;

    padding: 25px;

    box-shadow:
        0 4px 18px rgba(0,0,0,0.08);
}


/* ================= QUESTION HEADER ================= */

.question-header {

    border-bottom: 1px solid #e2e8f0;

    padding-bottom: 12px;

    margin-bottom: 20px;
}

.question-header h3 {

    margin: 0;

    color: #003399;

    font-size: 17px;
}


/* ================= QUESTION ================= */

.question-area {

    background: #f8fafc;

    border-left: 5px solid #003399;

    border-radius: 8px;

    padding: 18px;

    margin-bottom: 20px;
}

#qText {

    margin: 0;

    font-size: 17px;

    line-height: 1.6;

    font-weight: 600;
}



/* ================= OPTIONS ================= */

#optionsContainer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-label {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 10px 14px;
    gap: 12px;

    border: 2px solid #e2e8f0;
    border-radius: 12px;

    cursor: pointer;
    background: #ffffff;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;

    transition: all 0.2s ease;
}

/* RADIO BUTTON — ALWAYS LEFT */
.option-label input[type="radio"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;

    accent-color: #003399;

    transform: scale(1.15);
}

/* OPTION TEXT */
.option-label span,
.option-label {
    word-break: normal;
}

/* A B C D COLOR */
.option-label:nth-child(1) {
    border-left: 6px solid #2563eb;
    background: #eff6ff;
}

.option-label:nth-child(2) {
    border-left: 6px solid #16a34a;
    background: #f0fdf4;
}

.option-label:nth-child(3) {
    border-left: 6px solid #f59e0b;
    background: #fffbeb;
}

.option-label:nth-child(4) {
    border-left: 6px solid #ef4444;
    background: #fef2f2;
}

/* HOVER */
.option-label:hover {
    transform: translateX(2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* SELECTED */
.option-label:has(input[type="radio"]:checked) {
    border-width: 2px;
    box-shadow: 0 0 0 2px rgba(0,68,204,0.15);
    transform: scale(1.01);
}
/* ================= BUTTONS ================= */

.test-buttons {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 10px;

    margin-top: 25px;
}


.test-buttons button {

    border: none;

    border-radius: 8px;

    padding: 11px 20px;

    font-size: 14px;

    font-weight: bold;

    cursor: pointer;

    color: white;

    background: #003399;

    transition: 0.2s;
}


.test-buttons button:hover {

    opacity: 0.9;

    transform: translateY(-1px);
}


#btnPrev {

    background: #64748b;
}


#btnNext {

    background: #2563eb;
}


#btnSubmitTest {

    background: #16a34a;

    display: none;
}


/* ================= ALREADY ATTEMPTED ================= */

.already-attempted {

    text-align: center;

    padding: 20px;
}


.already-attempted h3 {

    color: #dc2626;
}


.already-attempted a {

    display: inline-block;

    margin-top: 10px;

    padding: 10px 18px;

    border-radius: 7px;

    background: #003399;

    color: white;

    text-decoration: none;
}


/* ================= TABLET ================= */

@media (max-width: 768px) {

    .oav-header {

        padding: 12px 15px;
    }

    .oav-logo h2 {

        font-size: 18px;
    }

    #timerDisplay {

        font-size: 13px;

        padding: 8px 11px;
    }

    #questionBox {

        padding: 20px;
    }

}


/* ================= MOBILE ================= */

@media (max-width: 480px) {

    .oav-header {

        flex-direction: column;

        align-items: stretch;

        text-align: center;
    }


    .oav-logo {

        justify-content: center;
    }


    #timerDisplay {

        width: 100%;

        text-align: center;
    }


    .oav-test-container {

        margin-top: 15px;

        padding: 0 10px;
    }


    #testInfoBar {

        flex-direction: column;

        align-items: stretch;

        text-align: center;

        padding: 13px;
    }


    #questionBox {

        padding: 15px;

        border-radius: 10px;
    }


    #qText {

        font-size: 15px;
    }


    .option-label {

        padding: 12px;

        font-size: 14px;
    }


    .test-buttons {

        flex-wrap: wrap;

        justify-content: center;
    }


    .test-buttons button {

        flex: 1;

        min-width: 100px;

        padding: 10px 12px;
    }

}
