/* General Reset and Base */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    padding: 20px;
    margin: 0;
    color: #333;
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
.app-header {
    background-color: #004d99; /* Darker blue */
    color: white;
    padding: 20px;
    text-align: center;
    border-bottom: 4px solid #007bff;
}

.app-header h1 {
    margin: 0 0 5px 0;
    font-size: 1.8em;
}

.app-header p {
    font-size: 1.1em;
    font-weight: 300;
}

/* Content */
.content-wrapper {
    padding: 30px;
}

.tls-exam-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

.topic-header {
    color: #007bff;
    font-size: 1.2em;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.question-text {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Options */
.option-container {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.option-container:hover {
    background-color: #eaf4ff;
    border-color: #007bff;
}

.option-container input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.1);
}

.option-key {
    font-weight: bold;
    margin-right: 8px;
}

/* Submission Button */
#submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background-color: #28a745; /* Green for success */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s;
}

#submit-btn:hover:enabled {
    background-color: #1e7e34;
}

#submit-btn:disabled {
    background-color: #90ee90;
    cursor: not-allowed;
}

/* Feedback Section */
.feedback-section {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
}

.feedback-correct {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.feedback-incorrect {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.explanation-box {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    border: 1px dashed #cccccc;
}

.video-link {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

/* Navigation */
.navigation-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.navigation-controls button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    color: white;
    transition: background-color 0.3s;
}

#prev-btn {
    background-color: #6c757d;
}
#prev-btn:disabled {
    background-color: #adb5bd;
}

#next-btn {
    background-color: #007bff;
}
#next-btn:disabled {
    background-color: #8cbbf2;
}


/* Correct/Incorrect Highlighting */
.correct-answer {
    background-color: #d4edda !important;
    border-color: #28a745 !important;
}

.incorrect-answer {
    background-color: #f8d7da !important;
    border-color: #dc3545 !important;
}

/* Footer */
.exam-footer {
    background-color: #343a40;
    color: #adb5bd;
    padding: 15px;
    text-align: center;
    font-size: 0.8em;
}