/* static/css/exam_styles.css */

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    margin: 20px;
    background: linear-gradient(180deg, #eef5ff 0%, #f7fafc 100%);
    color: #2c3e50;
}
.exam-container {
    max-width: 860px;
    margin: auto;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 36px;
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(12, 44, 85, 0.12);
    position: relative; /* Needed for absolute positioning of timer */
    overflow: hidden;
    border: 1px solid rgba(74, 142, 255, 0.12);
}
h1, h2, h3 {
    color: #1f3d8f;
    text-align: center;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}
h1 {
    font-size: 2.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.question {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid rgba(115, 141, 196, 0.22);
    border-radius: 24px;
    background-color: #ffffff;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(46, 70, 121, 0.08);
}
.question::before {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    margin-bottom: 18px;
    background: linear-gradient(90deg, #4f8bff 0%, #77c7ff 100%);
    border-radius: 999px;
}
.question-text {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #21325b;
}
.options label {
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background-color: #fcfdff;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    color: #2f3a56;
}
.options label:hover {
    background-color: #f2f7ff;
    border-color: #cde0ff;
    transform: translateX(2px);
    box-shadow: 0 8px 18px rgba(72, 116, 255, 0.08);
}
.options input[type="radio"] {
    margin-right: 14px;
    accent-color: #3b82f6;
}
.opinion label {
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background-color: #fcfdff;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    color: #2f3a56;
}
.opinion label:hover {
    background-color: #f2f7ff;
    border-color: #cde0ff;
    transform: translateX(2px);
    box-shadow: 0 8px 18px rgba(72, 116, 255, 0.08);
}
.opinion input[type="radio"] {
    margin-right: 14px;
    accent-color: #3b82f6;
}
.submit-btn {
    display: block;
    width: 230px;
    padding: 14px 22px;
    margin: 32px auto 0;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.submit-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.2);
}
.footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.95em;
    color: #556987;
}

/* Styles for results display */
.results-summary {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 8px;
    font-size: 1.3em;
    font-weight: bold;
    color: #0056b3;
}
.correct-answer {
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green text */
    border: 1px solid #c3e6cb;
    font-weight: bold;
}
.incorrect-answer {
    background-color: #f8d7da; /* Light red */
    color: #721c24; /* Dark red text */
    border: 1px solid #f5c6cb;
}
.question.answered label {
    cursor: default; /* No pointer after submission */
}
.correction-text {
    font-size: 0.9em;
    color: #888;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #f9f9f9;
    border-left: 3px solid #ccc;
    border-radius: 3px;
}
.correction-text.correct {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.correct-answer-letter {
    font-size: 0.95em;
    margin-top: 10px;
    color: #155724;
    font-weight: 700;
}
.correction-text.incorrect {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/*Styles for instructions page */
.instruction-container {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

.instruction-container h2 {
    color: #0056b3;
    margin-bottom: 20px;
    font-size: 2em;
}

.instruction-container p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555;
}

.instruction-container ul {
    text-align: left;
    margin: 20px 0;
    padding-left: 20px;
}

.instruction-container li {
    margin-bottom: 10px;
    color: #666;
}

.button-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.button.start {
    background-color: #28a745;
    color: white;
}

.button.start:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.button.cancel {
    background-color: #dc3545;
    color: white;
}

.button.cancel:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}
