
:root { --primary: #002b5c; --accent: #c69214; --success: #28a745; --error: #dc3545; --light: #f8f9fa; }
body { font-family: 'Inter', sans-serif; background: #eef2f7; color: #333; margin: 0; }
.container { max-width: 900px; margin: 40px auto; background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
#timer { position: fixed; top: 20px; right: 20px; background: var(--primary); color: #fff; padding: 15px 25px; border-radius: 50px; font-weight: bold; font-size: 1.2rem; z-index: 100; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.question-block { margin-bottom: 40px; padding: 25px; border: 1px solid #e1e4e8; border-radius: 8px; position: relative; }
.subject-label { position: absolute; top: -12px; left: 20px; background: var(--accent); color: white; padding: 2px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }
.reading-text { background: #f4f6f8; padding: 20px; border-radius: 6px; margin-bottom: 20px; font-style: italic; border-left: 4px solid var(--primary); }
.options-grid { display: grid; gap: 12px; margin-top: 15px; }
.option-label { border: 1px solid #ddd; padding: 15px; border-radius: 8px; cursor: pointer; transition: 0.2s; display: block; }
.option-label:hover { background: #f0f7ff; border-color: var(--primary); }
.explanation-box { margin-top: 15px; padding: 15px; background: #e8f5e9; border-left: 4px solid var(--success); border-radius: 4px; display: none; }
.hidden { display: none; }
button#submit-btn { width: 100%; padding: 20px; background: var(--primary); color: white; border: none; border-radius: 8px; font-size: 1.1rem; cursor: pointer; font-weight: 600; }

/* Add these to your existing style.css */
.correct-border { border: 2px solid var(--success) !important; background: #f1f9f1; }
.incorrect-border { border: 2px solid var(--error) !important; background: #fff5f5; }

.results-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    margin: 100px auto;
}

#results-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    overflow-y: auto;
}

input[type="radio"]:disabled {
    cursor: not-allowed;
}
#start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    color: white;
    text-align: center;
}

.start-content {
    background: white;
    color: #333;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 400px;
}

#start-btn {
    background: var(--success);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
    width: 100%;
}

#start-btn:hover {
    background: #219150;
}

/* Results Summary Box */
#results-summary {
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
    animation: slideDown 0.5s ease-out;
}

.pass-theme {
    background-color: #e8f5e9;
    border: 3px solid var(--success);
    color: #1b5e20;
}

.fail-theme {
    background-color: #ffebee;
    border: 3px solid var(--error);
    color: #b71c1c;
}

.restart-btn {
    background: var(--primary);
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

/* Question Block Framing */
.correct-frame { border: 3px solid var(--success) !important; background-color: #f1f8f1; }
.incorrect-frame { border: 3px solid var(--error) !important; background-color: #fff5f5; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}