/* Exam minimal styles */
.exam-progress {
    height: 21px;
}

.exam-progress-bar {
    transition: width 0.3s ease;
}

/* Exam render - simple, dễ nhìn */
.exam-questions-container .question-card {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
    background: #fff;
}
.flex100 {
    width: 100%;
}
.exam-questions-container .question-header {
    font-weight: 600;
    margin-bottom: 10px;
}
.course-status-badge span {
    padding: 10px 20px;
    display: inline-block;
    border-radius: 10px;
    font-family: unset;
    font-size: 16px;
}
.exam-questions-container .question-media img,
.exam-questions-container .question-image {
    max-width: 260px;
    height: auto;
    border-radius: 4px;
}

.exam-questions-container .answer-options {
    margin-top: 10px;
}

.exam-questions-container .answer-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    margin-bottom: 8px;
}

.exam-questions-container .answer-option input[type="radio"] {
    margin-right: 6px;
}

.exam-questions-container .answer-option .answer-label {
    font-weight: 600;
}

.exam-questions-container .answer-option .answer-text {
    margin-right: 6px;
}

.exam-questions-container .answer-option .answer-image {
    max-width: 100px;
    height: auto;
    border-radius: 4px;
    margin-top: 0;
}

.exam-questions-container .answer-option .answer-audio {
    min-width: 200px;
}

.exam-questions-container .answer-option.selected {
    border-color: #28a745;
    background: #f6fff8;
}
.course-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.course-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.teacher-name {
    margin: 0.5rem 0;
    color: #666;
    font-size: 1rem;
}.teacher-question-reactions.mt-3 {
    display: flex
;
    align-items: center;
}
.stars font {
    font-family: sans-serif;
    font-size: 22px;
    color: #ffc107;
}
.admin-course-info {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #000;
}
.star-rating {
    padding: 15px 0;
}

.stars {
    font-size: 1.3rem;
}

.star {
    cursor: pointer;
    color: #ddd;
    margin: 0 3px;
}

.star:hover {
    color: #ffc107;
}
.badge-lg {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.description-content img {
    max-width: 100%;
    height: auto;
}

.description-content p {
    margin-bottom: 10px;
}
.admin-course-info p {
    margin: 0.5rem 0;
    color: #555;
    font-size: 0.95rem;
}

.admin-course-info strong {
    color: #333;
    font-weight: 600;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.progress-bar-simple {
    width: 200px;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #000;
    transition: width 0.3s ease;
}

.course-status {
    margin-top: 1rem;
}

.status-badge {
    background-color: #000;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

.lessons-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.lessons-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.lessons-table thead {
    background-color: #343a40;
}

.lessons-table thead th {
    color: white;
    font-weight: bold;
    padding: 15px 12px;
    text-align: center;
    border: none;
}

.lessons-table tbody td {
    padding: 15px 12px;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
    vertical-align: middle;
}

.lessons-table tbody tr:hover {
    background-color: #f8f9fa;
}

.lessons-table tbody tr:last-child td {
    border-bottom: none;
}

.btn-access {
    background-color: #000;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-access:hover {
    background-color: #333;
}

.btn-waiting {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: not-allowed;
}


.btn-download {
    background-color: #000;
    color: white;
    border: none;
    padding: 8px 16px;
    display: inline-block !important;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-download:hover {
    background-color: #333;
}

.btn-pending {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: not-allowed;
}

.attendance-controls {
    display: flex;
    justify-content: center;
    align-items: center;
}

.attendance-checkbox {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.attendance-checkbox input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}



.content-plus {
    width: 30px;
    height: 30px;
    border: 2px solid #000;
    border-radius: 4px;
    background-color: white;
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.content-empty {
    width: 30px;
    height: 30px;
    border: 2px solid #000;
    border-radius: 4px;
    background-color: white;
    display: inline-block;
}

@media (max-width: 768px) {
    .course-info-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .progress-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .progress-bar-simple {
        width: 100%;
    }

    .lessons-table {
        font-size: 0.9rem;
    }

    .lessons-table thead th,
    .lessons-table tbody td {
        padding: 10px 8px;
    }
}

/* CSS cho status badge hoàn thành */
.status-badge.status-completed {
    background-color: #28a745;
    color: white;
    animation: completedPulse 2s infinite;
}

@keyframes completedPulse {
    0% {
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    }

    50% {
        box-shadow: 0 4px 16px rgba(40, 167, 69, 0.5);
    }

    100% {
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    }
}

/* CSS cho form nhận tin */
.newsletter-form-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.newsletter-form-container .newsletter-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    width: 100%;
    border: 1px solid #e9ecef;
} 

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-input {
    flex: 1;
}


h4.newsletter-title {
    font-family: inter-bold;
    font-size: 25px;
    margin-bottom: 23px;
}

.newsletter-input2 input {
    border-radius: 11px;
    margin-bottom: 18px;
    height: 54px;
}

.newsletter-input textarea {
    border-radius: 11px;
    margin-bottom: 18px;
    height: 250px;
}

.attendance-checkbox input[type="checkbox"]:checked+.checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
    background: #28a745;
    padding: 6px 8px;
    border-radius: 5px;
}
/* Responsive cho mobile */
@media (max-width: 768px) {


    .newsletter-title {
        font-size: 1.1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .newsletter-input {
        margin-bottom: 0.5rem;
    }

    .newsletter-input .form-control {
        padding: 10px;
        font-size: 13px;
    }

    .readon-button {
        padding: 10px 20px;
        font-size: 13px;
    }
}

.exam-section-container {
    margin-top: 2rem;
}

.exam-timer {
    background: #343a40;
    color: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}

.exam-timer h5 {
    color: white;
    margin-bottom: 10px;
    font-size: 1rem;
}

.timer-display {
    font-size: 2rem;
    font-weight: bold;
}

.question-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.question-header {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
}

.question-media {
    margin: 15px 0;
}

.question-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.question-audio {
    width: 100%;
    margin: 10px 0;
}

.question-file-link {
    display: inline-block;
    padding: 8px 15px;
    background: #343a40;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    margin: 10px 0;
}

.question-file-link:hover {
    background: #495057;
    color: white;
    text-decoration: none;
}

.answer-options {
    margin-top: 15px;
    width: 100%;
}

.answer-option {
    padding: 10px 15px;
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
}

.answer-option:hover {
    background-color: #f8f9fa;
    border-color: #343a40;
}

.answer-option input[type="radio"] {
    margin-right: 10px;
}

.answer-option.selected {
    background-color: #e9ecef;
    border-color: #343a40;
}

.answer-label {
    font-weight: bold;
    margin-right: 8px;
}

.answer-image {
    max-width: 200px;
    height: auto;
    border-radius: 5px;
    margin-top: 8px;
}

.submit-exam-btn {
    background: #343a40;
    border: none;
    color: white;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.submit-exam-btn:hover {
    background: #495057;
}

.exam-start-section {
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

.start-exam-btn {
    font-size: 1.1rem;
    padding: 15px 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.start-exam-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.no-exam-message {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.exam-tabs-simple .nav-link {
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-bottom: none;
    padding: 10px 20px;
    font-weight: 500;
}
.reaction-btn {
    font-size: 18px;
    margin: 0 3px;
    border: 1px solid #dee2e6;
    background-color: white;
    border-radius: 20px;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.reaction-btn:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background-color: #ffbf00;
}
.reaction-btn:active {
    transform: scale(0.95);
}
.reaction-btn.active {
    background-color: #ffc107;
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}
.reactions-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.reaction-count {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 8px 10px;
    border-radius: 15px;
    font-size: 14px;
    border: 1px solid #dee2e6;
}
.reaction-count .emoji {
    font-size: 16px;
}
.exam-tabs-simple .nav-link:hover {
    background: #f5f5f5;
    border-color: #333;
}
.exam-tabs-simple .nav-link {
    margin-bottom: 1px;
    border: 1px solid #ebebeb;
    box-shadow: unset;
}
.exam-tabs-simple .nav-link.active {
    color: #fff;
    border: 1px solid #161616;
    background: #000;
    border-color: #000;
    box-shadow: unset;
}

.exam-info {
    background: #f8f9fa;
    border-left: 3px solid #343a40;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.exam-info-item {
    margin-bottom: 8px;
}

/* Kết quả bài thi */
.exam-results-summary {
    padding: 20px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.result-item {
    padding: 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.result-item h5 {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #6c757d;
}

.result-item .result-score {
    font-size: 1.8em;
    font-weight: bold;
    color: #212529;
}

.result-item .result-score-empty {
    font-size: 1.8em;
    font-weight: bold;
    color: #adb5bd;
}

.exam-results-list {
    margin-top: 20px;
}

.exam-results-list h5 {
    margin-bottom: 15px;
    font-weight: 600;
}

.question-result-item {
    padding: 12px;
    border: 2px solid #dee2e6;
    text-align: center;
    min-height: 80px;
    border-radius: 4px;
    background: white;
}

.question-result-item.correct {
    border-color: #28a745;
}

.question-result-item.incorrect {
    border-color: #dc3545;
    min-height: 120px;
}textarea.form-control.evaluation-textarea {
    height: 200px;
}

.question-result-item .question-number {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.question-result-item .student-answer {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 8px;
}

.question-result-item.correct .student-answer {
    color: #28a745;
}

.question-result-item.incorrect .student-answer {
    color: #dc3545;
}
.question-result-item {
    height: 130px;
}
.question-result-item .correct-answer-info {
    margin-top: 10px;
    padding-top: 10px;
    font-size: 0.85rem;
    border-top: 1px solid #dee2e6;
    color: #495057;
}

/* Đánh giá giảng viên */
.teacher-evaluation-section {
    margin-top: 2rem;
}

.evaluation-item {
    margin-bottom: 20px;
}

.evaluation-item:last-child {
    margin-bottom: 0;
}

.evaluation-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.evaluation-textarea {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    font-size: 0.95em;
}

.evaluation-textarea::placeholder {
    color: #adb5bd;
    font-style: italic;
}

.evaluation-content {
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #f8f9fa;
    min-height: 100px;
}

.evaluation-content p {
    margin: 0;
    white-space: pre-wrap;
}

/* Tổng kết */
.summary-section {
    margin-top: 2rem;
}

.summary-table-container {
    overflow-x: auto;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.summary-table thead {
    background: #f8f9fa;
}

.summary-table th {
    border: 1px solid #dee2e6;
    padding: 10px;
    text-align: center;
    font-weight: 600;
}

.summary-table td {
    border: 1px solid #dee2e6;
    padding: 10px;
    text-align: center;
}

.summary-table tbody tr td:first-child {
    text-align: left;
    font-weight: 600;
}

.summary-evaluation {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.evaluation-status {
    font-size: 1.1em;
}

.status-text {
    font-weight: normal;
}

ul#examResultsTabs li .active {
    color: #fff;
    border: 1px solid #161616;
    background: #000;
    border-color: #000;
    box-shadow: unset;
}


ul#examResultsTabs li .active:hover {
    color: #fff;
    border: 1px solid #161616;
    background: #000;
    border-color: #000;
    box-shadow: unset;
}


ul#examResultsTabs li a:hover {
    background: #f5f5f5;
    border-color: #333;
}

ul#examResultsTabs li aa {
    margin-bottom: 1px;
    border: 1px solid #ebebeb;
    box-shadow: unset;
}

ul#examResultsTabs .nav-tabs .nav-link {
    border: 1px solid transparent !important;
}

