/* ---- Exam Wrapper ---- */
#mcp-exam-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px 80px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
}

/* ---- Top Bar ---- */
#mcp-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

#mcp-question-counter {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

#mcp-timer-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

#mcp-timer {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    min-width: 48px;
}

#mcp-flag-btn {
    padding: 6px 14px;
    border: 2px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

#mcp-flag-btn:hover {
    border-color: #f39c12;
    color: #f39c12;
}

/* ---- Question Body ---- */
#mcp-question-body {
    padding: 24px 0;
}

#mcp-question-text {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
    color: #1a1a1a;
}

/* ---- Options ---- */
#mcp-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mcp-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    background: #fff !important;
    text-align: left;
    font-size: 15px;
    line-height: 1.5;
    color: #1a1a1a !important;
    transition: background 0.15s, border-color 0.15s;
    cursor: pointer;
}

.mcp-option:hover:not(.mcp-disabled) {
    border-color: #1a73e8 !important;
    background: #f0f4ff !important;
    color: #1a1a1a !important;
}

.mcp-option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #333;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.mcp-option-text {
    flex: 1;
    padding-top: 3px;
}

.mcp-option.mcp-selected {
    background: #1a73e8 !important;
    color: #fff !important;
    border-color: #1a73e8 !important;
}

.mcp-option.mcp-correct {
    background: #1e7e34 !important;
    color: #fff !important;
    border-color: #1e7e34 !important;
}

.mcp-option.mcp-incorrect {
    background: #c0392b !important;
    color: #fff !important;
    border-color: #c0392b !important;
}

.mcp-option.mcp-selected .mcp-option-letter {
    background: rgba(255, 255, 255, 0.9);
    color: #1a73e8;
}

.mcp-option.mcp-correct .mcp-option-letter {
    background: rgba(255, 255, 255, 0.9);
    color: #1e7e34;
}

.mcp-option.mcp-incorrect .mcp-option-letter {
    background: rgba(255, 255, 255, 0.9);
    color: #c0392b;
}

.mcp-option.mcp-disabled {
    cursor: not-allowed;
    opacity: 0.85;
}

/* ---- Explanation ---- */
#mcp-explanation {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    background: #f0f4ff;
    border-left: 4px solid #1a73e8;
    border-radius: 4px;
    line-height: 1.6;
}

/* ---- Bottom Bar ---- */
#mcp-bottom-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    position: sticky;
    bottom: 0;
    z-index: 100;
}

#mcp-nav-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
}

#mcp-nav-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

#mcp-prev-btn,
#mcp-next-btn,
#mcp-finish-btn {
    padding: 8px 18px;
    border-radius: 6px;
    border: 2px solid #1a73e8;
    background: #fff;
    color: #1a73e8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

#mcp-prev-btn:hover,
#mcp-next-btn:hover {
    background: #1a73e8;
    color: #fff;
}

#mcp-finish-btn {
    background: #1a73e8;
    color: #fff;
}

#mcp-finish-btn:hover {
    background: #1558b0;
    border-color: #1558b0;
}

/* ---- Check Answer button ---- */
#mcp-check-btn {
    display: none;
    margin-top: 20px;
    padding: 11px 28px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

#mcp-check-btn:hover {
    background: #1558b0;
}

/* ---- Navigator numbers ---- */
.mcp-nav-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0;
    margin: 2px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    border-radius: 6px;
    border: 2px solid #ccc;
    background: #fff;
    color: #333 !important;
    transition: background 0.15s, border-color 0.15s;
}

.mcp-nav-num.mcp-nav-unanswered {
    background: #fff;
    border-color: #ccc;
    color: #333 !important;
}

.mcp-nav-num.mcp-nav-answered {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #fff !important;
}

.mcp-nav-num.mcp-nav-correct {
    background: #1e7e34;
    border-color: #1e7e34;
    color: #fff !important;
}

.mcp-nav-num.mcp-nav-incorrect {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff !important;
}

.mcp-nav-num.mcp-nav-flagged {
    outline: 3px solid #f39c12;
    outline-offset: 1px;
}

.mcp-nav-num.mcp-nav-current {
    box-shadow: 0 0 0 3px #1a73e8;
}

/* ---- Flag button ---- */
#mcp-flag-btn.mcp-flagged {
    background: #f39c12;
    color: #fff;
    border-color: #f39c12;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    #mcp-top-bar {
        flex-wrap: wrap;
        gap: 8px;
    }

    #mcp-bottom-bar {
        flex-direction: column;
        gap: 12px;
    }

    #mcp-nav-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .mcp-option {
        font-size: 14px;
        padding: 10px 12px;
    }
}
