:root { 
    --ees-primary: #007bff; 
    --ees-bg: #f8fafc; 
    --ees-border: #e2e8f0; 
    --ees-correct: #16a34a; 
    --ees-wrong: #dc2626; 
}

.ees-wrap { max-width: 1200px; margin: 0 auto 30px auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #fff; border: 1px solid var(--ees-border); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }

/* --- FULLSCREEN --- */
.ees-wrap:-webkit-full-screen { max-width: 100%; width: 100%; height: 100vh; margin: 0; border: none; border-radius: 0; background: #fff; display: flex; flex-direction: column; }
.ees-wrap:fullscreen { max-width: 100%; width: 100%; height: 100vh; margin: 0; border: none; border-radius: 0; background: #fff; display: flex; flex-direction: column; overflow: hidden;}
.ees-wrap:fullscreen .ees-quiz-screen { flex: 1; display: flex; flex-direction: column; height: 100%; }
.ees-wrap:fullscreen .ees-body { flex: 1; height: auto; min-height: 0; }
.ees-wrap .ees-btn-icon { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: #fff; padding: 6px 10px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; margin-right: 10px; }
.ees-wrap .ees-btn-icon:hover { background: rgba(255,255,255,0.2); }

/* --- BUTTONS & SCREENS --- */
.ees-wrap .ees-btn-primary { background: var(--ees-primary); color: #fff; border: none; padding: 12px 24px; border-radius: 4px; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.2s; display: inline-block;}
.ees-wrap .ees-btn-primary:hover { opacity: 0.9; }
.ees-wrap .ees-btn-secondary { background: #fff; color: var(--ees-primary); border: 2px solid var(--ees-primary); padding: 10px 24px; border-radius: 4px; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.2s; display: inline-block;}
.ees-wrap .ees-btn-secondary:hover { background: #f0f8ff; }
.ees-wrap .ees-btn-sm { padding: 6px 12px; font-size: 14px; border-width: 1px;}

.ees-wrap .ees-screen-center { padding: 80px 20px; text-align: center; background: #fafafa;}
.ees-wrap .ees-quiz-title { font-size: 28px; color: #333; margin-bottom: 20px;}
.ees-wrap .ees-intro-text { font-size: 16px; color: #555; max-width: 600px; margin: 0 auto 30px auto; line-height: 1.6;}

.ees-wrap .ees-result-box { background-color: #f0f8ff; border: 2px solid var(--ees-primary); border-radius: 8px; margin: 40px auto; max-width: 600px; padding: 40px; }
.ees-wrap .ees-result-title { color: #0056b3; margin-top: 0; font-size: 26px;}
.ees-wrap .ees-result-msg { font-size: 18px; color: #333; margin-bottom: 20px;}
.ees-wrap .ees-score-text { font-size: 20px; margin-bottom: 30px;}
.ees-wrap .ees-result-actions button { margin: 0 10px;}

.ees-wrap .ees-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: var(--ees-primary); color: #fff; font-weight: bold; }
.ees-wrap .ees-header-actions { display: flex; align-items: center; }
.ees-wrap .ees-btn-submit { background: #fff; color: var(--ees-primary); border: none; padding: 8px 16px; border-radius: 4px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.ees-wrap .ees-btn-submit:hover { background: #f1f5f9; color: var(--ees-primary); }

.ees-wrap .ees-body { display: flex; height: 70vh; min-height: 500px; }
.ees-wrap .ees-passage-pane { flex: 1; padding: 20px; border-right: 1px solid var(--ees-border); overflow-y: auto; background: var(--ees-bg); line-height: 1.6; display: none; }
.ees-wrap .ees-questions-pane { flex: 1; padding: 20px; overflow-y: auto; }

.ees-wrap .ees-instruction { font-style: italic; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--ees-border); color: #475569; }
.ees-wrap .ees-question-block { margin-bottom: 25px; }
.ees-wrap .ees-question-text { font-weight: normal; margin-bottom: 15px; line-height: 1.5; font-size: 16px;}

/* =========================================================
   GIAO DIỆN NÚT RADIO & KHỐI ĐÁP ÁN (CHỐNG LỖI THEME)
========================================================= */
.ees-wrap .ees-option { 
    display: flex; 
    align-items: center; 
    margin-bottom: 10px; 
    cursor: pointer; 
    padding: 12px 16px; 
    border-radius: 8px; 
    border: 1px solid var(--ees-border); 
    background: #fff;
    transition: all 0.2s ease-in-out; 
}

.ees-wrap .ees-option:hover { 
    background: #f8fafc; 
    border-color: #cbd5e1;
}

/* Ép buộc kích thước và xóa mọi style thừa từ Theme */
.ees-wrap .ees-option input[type="radio"] { 
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-width: 20px !important;
    max-width: 20px !important;
    width: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    height: 20px !important;
    margin: 0 12px 0 0 !important;
    padding: 0 !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 50% !important;
    background-color: #fff !important;
    cursor: pointer !important;
    outline: none !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
}

/* Vẽ dấu chấm tròn bên trong */
.ees-wrap .ees-option input[type="radio"]::before {
    content: "" !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background-color: var(--ees-primary) !important;
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: block !important;
}

/* Hiệu ứng khi được chọn */
.ees-wrap .ees-option input[type="radio"]:checked {
    border-color: var(--ees-primary) !important;
}
.ees-wrap .ees-option input[type="radio"]:checked::before {
    transform: scale(1);
}

.ees-wrap .ees-option:has(input[type="radio"]:checked) {
    border-color: var(--ees-primary);
    background: #f0f8ff;
}

.ees-wrap .ees-opt-text { line-height: 1.5; font-size: 15px; }

/* =========================================================
   HIỂN THỊ ĐÁP ÁN ĐÚNG/SAI & Ô ĐIỀN TỪ
========================================================= */
.ees-wrap .ees-opt-correct { border-color: var(--ees-correct) !important; background: #f0fdf4 !important; color: var(--ees-correct) !important; font-weight: bold; }
.ees-wrap .ees-opt-correct input[type="radio"] { border-color: var(--ees-correct) !important; }
.ees-wrap .ees-opt-correct input[type="radio"]::before { background-color: var(--ees-correct) !important; }

.ees-wrap .ees-opt-wrong { border-color: var(--ees-wrong) !important; background: #fef2f2 !important; color: var(--ees-wrong) !important; text-decoration: line-through; }
.ees-wrap .ees-opt-wrong input[type="radio"] { border-color: var(--ees-wrong) !important; }
.ees-wrap .ees-opt-wrong input[type="radio"]::before { background-color: var(--ees-wrong) !important; }

.ees-wrap .ees-blank-input {
    border: none !important; border-bottom: 2px solid var(--ees-primary) !important;
    background: transparent !important; color: #1d2327 !important; font-weight: 600 !important; 
    font-size: inherit !important; font-family: inherit !important;
    text-align: center !important; margin: 0 5px !important; outline: none !important; 
    transition: border-color 0.2s !important; padding: 2px 0 !important; box-shadow: none !important;
    border-radius: 0 !important;
}
.ees-wrap .ees-blank-input:focus { border-bottom-color: #0056b3 !important; }
.ees-wrap .ees-blank-input:disabled { background: transparent !important; color: #3c434a !important; opacity: 1 !important; -webkit-text-fill-color: currentcolor !important;}

.ees-wrap .ees-blank-correct { border-bottom: 2px dashed var(--ees-correct) !important; color: var(--ees-correct) !important; font-weight: bold !important; }
.ees-wrap .ees-blank-wrong { border-bottom: 2px dashed var(--ees-wrong) !important; color: var(--ees-wrong) !important; text-decoration: line-through !important; }

.ees-wrap .ees-explanation { background: #f1f5f9; border-left: 4px solid var(--ees-primary); padding: 12px; margin-top: 15px; border-radius: 0 4px 4px 0; font-size: 0.9em; display: none; line-height: 1.6;}

/* --- FOOTER --- */
.ees-wrap .ees-footer { padding: 15px 20px; background: var(--ees-bg); border-top: 1px solid var(--ees-border); display: flex; justify-content: space-between; align-items: center; }
.ees-wrap .ees-btn-nav { padding: 8px 16px; background: var(--ees-primary); color: #fff; border: none; border-radius: 4px; cursor: pointer; font-weight: bold;}
.ees-wrap .ees-btn-nav:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 768px) { .ees-wrap .ees-body { flex-direction: column; } .ees-wrap .ees-passage-pane { border-right: none; border-bottom: 1px solid var(--ees-border); height: 40vh; } }