/* ============================
   TIMER STYLING
   ============================ */
#timerSection .timer-fixed {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background-color: #fff;
    border: 2px solid red; /* Red border */
    color: #000;
    border-radius: 12px;
    padding: 12px 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    min-width: 180px;
    display: none; /* Hidden by default */
}

#timerSection .timer-fixed.active {
    display: block; /* Show when active */
}

/* ============================
   FORM STYLING
   ============================ */
.form-control, .form-select {
    border: 2px solid #ced4da;
    border-radius: 10px;
    padding: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    font-size: 16px;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0,123,255,0.3);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.text-danger {
    font-size: 0.9rem;
}

/* ============================
   BUTTONS
   ============================ */
.btn-primary {
    background-color: #007bff;
    border: 2px solid #007bff;
    border-radius: 10px;
    padding: 12px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
}

.btn-success {
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    border: 2px solid #6c757d;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-2px);
}

/* ============================
   QUESTION BOX
   ============================ */
.question-box {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.question-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.question-box .fw-bold {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-right: 10px;
    border: 2px solid #ced4da;
}

.form-check-label {
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: color 0.2s ease;
}

.form-check-input:checked + .form-check-label {
    color: #007bff;
    font-weight: 500;
}

.form-check-input:focus {
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

/* ============================
   MEDIA (IMAGE / AUDIO)
   ============================ */
.img-fluid {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    max-height: 200px;
    object-fit: cover;
}

audio {
    width: 100%;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 5px;
    background: #f8f9fa;
}

/* ============================
   RESULT PAGE
   ============================ */
.result-box {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.result-box .question {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.answer {
    font-size: 1rem;
    margin: 5px 0;
    padding: 8px 12px;
    border-radius: 8px;
}

.answer.correct {
    background: #e8f9f0;
    color: #1b7c3e;
    border-left: 5px solid #1b7c3e;
    font-weight: 600;
}

.answer.wrong {
    background: #fdeaea;
    color: #c62828;
    border-left: 5px solid #c62828;
    font-weight: 600;
}

.summary {
    text-align: center;
    background: #f0f4ff;
    padding: 25px;
    border: 2px solid #d6e0ff;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.summary h4 {
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 1.4rem;
}

.summary p {
    font-size: 1.1rem;
    color: #333;
}
