:root {
    --teal: #00767c;
    --light-teal: #e0f2f1;
    --bg-gray: #d9e2e1;
    --border: #b0bfc0;
    --red-finish: #d32f2f;
}

* { box-sizing: border-box; }
body, html { margin: 0; padding: 0; font-family: 'Segoe UI', Arial, sans-serif; background: var(--bg-gray); height: 100vh; overflow: hidden; }

.container { height: 100%; display: flex; flex-direction: column; }
.hidden { display: none !important; }

/* Verification Screen */
.verify-window { width: 90%; max-width: 520px; margin: 40px auto; background: white; border: 1px solid #999; }
.header-teal-small { background: var(--teal); color: white; padding: 8px 15px; display: flex; justify-content: space-between; font-size: 14px; }
.verify-content { padding: 25px; text-align: center; }
.logo-container-final { margin-bottom: 15px; text-align: right; padding-right: 15px; }
.main-logo { max-width: 180px; height: auto; }
.info-box-wrapper { border: 1px solid #ddd; text-align: left; margin: 15px 0; }
.info-row-final { display: flex; border-bottom: 1px solid #f0f0f0; padding: 10px; font-size: 14px; }
.info-row-final span:first-child { width: 130px; font-weight: bold; }

.action-btns-final { display: flex; justify-content: center; gap: 15px; }
.btn-verify-confirm { background: var(--light-teal); border: 2px solid #80cbc4; color: #004d40; padding: 10px 25px; cursor: pointer; border-radius: 4px; font-weight: bold; }
.btn-verify-cancel { background: #f1f8f7; border: 1px solid #ccc; color: #555; padding: 10px 25px; cursor: pointer; border-radius: 4px; font-weight: bold; }
.verify-footer-right { text-align: right; padding: 5px 15px; font-size: 11px; font-weight: bold; }

/* Main Exam Screen */
.top-nav { background: var(--teal); color: white; padding: 8px 15px; display: flex; justify-content: space-between; align-items: center; }
.btn-finish-exam-red { background: var(--red-finish); color: white; border: none; padding: 8px 15px; border-radius: 4px; font-weight: bold; cursor: pointer; }

.progress-wrap-final { display: flex; flex-direction: column; align-items: center; width: 160px; }
.progress-container { background: #fff; width: 100%; height: 10px; border-radius: 5px; overflow: hidden; }
.progress-bar { background: #26a69a; width: 0%; height: 100%; transition: 0.3s; }
.progress-text { font-size: 10px; margin-top: 3px; }

.sub-nav-info { background: #f8f9f9; border-bottom: 1px solid var(--border); padding: 5px 15px; font-size: 12px; display: flex; justify-content: space-between; }

.exam-body-layout { display: flex; flex: 1; overflow: hidden; padding: 10px; gap: 10px; }
.sidebar-palette { width: 45px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.q-box { width: 100%; height: 28px; background: white; border: 1px solid #999; font-size: 11px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.q-box.active { border: 2.5px solid var(--teal); font-weight: bold; }
.q-box.answered { background: var(--teal); color: white; }

.exam-content-main { flex: 1; background: white; border: 1px solid var(--border); overflow-y: auto; padding: 25px; }

/* Question Image Container */
.q-image-container { 
    width: 100%; 
    max-width: 750px; 
    margin: 0 auto 25px auto; 
    text-align: center;  
}
.q-image-container img { 
    width: 100%; 
    max-width: 100%;
    height: auto; 
    display: block; 
    margin: 0 auto;
}

/* Options */
.option-row { border: 1px solid #444; margin-bottom: 10px; display: flex; cursor: pointer; }
.opt-label { width: 45px; background: #eee; border-right: 1px solid #444; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.opt-text { padding: 10px; flex: 1; }
.option-row.selected { border: 3px solid #ffb300; background: #fffdf0; }

.footer-nav-right { background: var(--teal); padding: 10px; display: flex; justify-content: flex-end; gap: 10px; padding-right: 40px; }
.nav-btn-white { background: white; border: 1px solid #888; padding: 6px 20px; color: var(--teal); font-weight: bold; cursor: pointer; border-radius: 3px; }

/* Result Card */
.result-screen-bg { background: var(--teal) !important; align-items: center; justify-content: center; }
.final-result-card { background: white; width: 90%; max-width: 500px; padding: 40px 20px; border-radius: 10px; text-align: center; }
.res-score-big { font-size: 55px; font-weight: bold; color: var(--teal); margin: 15px 0; }
.btn-restart { background: var(--teal); color: white; border: none; padding: 12px 30px; border-radius: 5px; font-weight: bold; cursor: pointer; }

/* --- MOBILE VIEW UPDATE --- */
@media (max-width: 600px) {
    .exam-body-layout { padding-bottom: 80px; } /* Footer space */
    .exam-content-main { padding: 15px; }
    
    .footer-nav-right {
        position: fixed;
        bottom: 15px; /* Border er vitore rakhar jonno */
        left: 10px;
        right: 10px;
        background: transparent;
        padding: 0;
        display: flex;
        justify-content: space-between;
        gap: 15px;
        padding-right: 0;
    }

    .nav-btn-white {
        flex: 1;
        background: #00767c !important; /* Yellow as per Button.jpg */
        color: #000 !important;
        border: none;
        border-radius: 30px; /* Rounded pill shape */
        padding: 12px 5px;
        font-size: 14px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    }
    
    .top-nav { padding: 5px 10px; font-size: 13px; }
    .progress-wrap-final { width: 90px; }
}