.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;
    position: absolute;
    width: 0;
    height: 0;
}li.nav-item a:hover {
    color: black;
}

.card-header-tabs .nav-link {
    color: white;
    background: rgba(255, 255, 255, 0.1) !important;
}

.teacher-reactions-display.mt-2 {
    display: flex
;
    align-items: center;
}

.section-attendance .content-main {
    padding: 10px 0;
}

/* Đảm bảo card-body chỉ chứa tab content */
.card-body {
    position: relative;
    overflow: visible;
}

/* Đảm bảo section-attendance không bị di chuyển */

.question-item[data-question-type="essay"] {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.question-item[data-question-type="essay"] .form-group label {
    color: #495057;
    font-size: 14px;
}

/* Đảm bảo card-body chỉ chứa tab content */
.card-body {
    position: relative;
    overflow: visible;
}

/* Đảm bảo section-attendance không bị di chuyển */

.checkmark {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-color: #fff;
    border: 2px solid #343a40;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.attendance-checkbox:hover .checkmark {
    border-color: #28a745;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
}

.attendance-checkbox input[type="checkbox"]:checked+.checkmark {
    background-color: #28a745;
    border-color: #28a745;
}



.attendance-checkbox input[type="checkbox"]:checked+.checkmark {
    animation: checkPulse 0.3s ease-in-out;
}

@keyframes checkPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .checkmark {
        width: 20px;
        height: 20px;
    }

    /* Removed ::after pseudo-element to prevent duplicate checkmarks */

    .btn-success {
        background: linear-gradient(45deg, #28a745, #20c997);
        border: none;
        transition: all 0.3s ease;
    }

    .btn-success:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    }

    .form-control:focus {
        border-color: #28a745;
        box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    }



    .delete-lesson-btn {
        transition: all 0.3s ease;
        border-radius: 4px;
    }

    .delete-lesson-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    }

    .delete-lesson-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    .badge-success.badge-lg {
        font-size: 14px;
        padding: 8px 16px;
        border-radius: 20px;
        background: linear-gradient(45deg, #28a745, #20c997);
        border: none;
        color: white;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
        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);
        }
    }
}

.section-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.section-title i {
    color: #6c757d;
    margin-right: 0.5rem;
    width: 16px;
}

.section-content {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-height: 60px;
}

.form-group.mb_form {
    margin-bottom: 0;
}

.section-content:empty::before {
    content: "Chưa có thông tin";
    color: #6c757d;
    font-style: italic;
}

.view-mode-container {
    border-radius: 12px;
    margin-top: 1rem;
}

div#lesson-files-section {
    display: flex;
    align-items: center;
}

div#current-video-section a:hover {
    color: #707070;
}

ul#courseManagementTabs li.nav-item a {
    border: none !important;
    box-shadow: unset !important;
}

.card-header-tabs .nav-link {
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.card-header-tabs .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.4) !important;
}

.card-header-tabs .nav-link.active {
    color: #000000;
    background: rgb(255 255 255 / 90%) !important;
    border-bottom: unset !important;
}

.tab-pane {
    display: none;
}

.tab-pane.show.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .card-header-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .card-header-tabs .nav-link i {
        display: none;
    }
}

ul#courseManagementTabs {
    margin-bottom: 0;
}

.scoring-layout {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
    padding: 10px;
}

.skill-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.skill-score label {
    font-size: 13px;
    margin: 0;
    min-width: 30px;
    color: #666;
}

.skill-score input {
    width: 50px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 4px 6px;
    font-size: 12px;
}

.total-average {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.total-average label {
    font-size: 12px;
    font-weight: bold;
    margin: 0;
    min-width: 50px;
    color: #333;
}

.total-average input {
    width: 50px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 4px 6px;
    background-color: #f8f9fa;
    font-size: 12px;
}

.student-evaluation-table {
    border-radius: 4px;
}

.student-evaluation-table th,
.student-evaluation-table td {
    border: 1px solid #ddd;
    padding: 10px 8px;
    vertical-align: middle;
}

.student-evaluation-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.score-input,
.total-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ccc;
    padding: 4px;
}

.evaluation-textarea,
.instructor-comments {
    border: 1px solid #ccc;
    resize: vertical;
}

.border-dashed {
    border-top: 2px dashed #ccc !important;
}

#submit-student-info {
    padding: 10px 25px;
}

.exam-tabs .nav-link {
    border: 1px solid #ddd;
    border-bottom: none;
    background-color: #f8f9fa;
    color: #495057;
}

.exam-tabs .nav-link.active {
    background-color: #e9e9e9;
    border-bottom: 1px solid #e9e9e9;
    color: #333;
    box-shadow: unset;
}

.image-preview img {
    max-width: 200px;
    max-height: 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.audio-preview audio {
    width: 100%;
    max-width: 300px;
}

.answers-section .form-check {
    margin-bottom: 0;
}

.answers-section .form-check-input {
    margin-top: 0.3rem;
}

.nav-pills .nav-item .active {
    background: #323232 !important;
}

.nav-pills .nav-link {
    border-radius: .25rem;
    background: #e7e7e7;
    margin: 0 8px;
}

ul#entranceSubTabs {
    margin: 0 -9px 31px !important;
}

.question-form {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    background-color: #fff;
}

.exam-tabs .nav-link {
    border-bottom: none;
    background-color: #f5f5f5;
    color: #333;
    padding: 8px 16px;
    box-shadow: unset !important;
    border: 2px solid transparent !important;
}

button#delete-question {
    width: 100%;
    height: 60%;
    position: relative;
    top: 29px;
}

.exam-tabs .nav-link.active {
    background-color: #e9e9e9;
    border-bottom: 1px solid #e9e9e9;
    color: #333;
}

.image-preview img {
    max-width: 200px;
    max-height: 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.audio-preview audio {
    width: 100%;
    max-width: 300px;
}

.answers-section .form-check {
    margin-bottom: 0;
}

.answers-section .form-check-input {
    margin-top: 0.3rem;
}

.question-form {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    background-color: #fff;
}

ul#examTypeTabs .active {
    background: #5d6166;
    color: #fff;
}

ul#examTypeTabs a:hover {
    background: #5d6166;
    color: #fff;
    border-color: unset;
}

/* Exam Creation Styles */
.question-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.answer-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.answer-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.answer-item .form-check-input:checked+.form-check-label {
    color: #007bff;
    font-weight: bold;
}

.upload-section {
    border: 1px dashed #ccc;
    border-radius: 3px;
    padding: 10.3px;
    text-align: center;
    background-color: #fff;
    padding-top: 8px;
    padding-bottom: 8px;
}


.image-preview img {
    max-width: 200px;
    border-radius: 3px;
}

.audio-preview audio {
    width: 100%;
}

.file-preview-a,
.file-preview-b,
.file-preview-c,
.file-preview-d {
    min-height: 20px;
}

.nav-pills .nav-link.active {
    background-color: #007bff;
}

.exam-tabs .nav-link.active {
    background: #343a40;
    border-color: #343a40;
    color: #fff !important;
}

.alert.position-fixed {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}


.exam-section {
    margin-bottom: 25px;
}

.student-rating-display {
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    width: 235px;
}

.student-rating-display .rating-stars {
    font-size: 0.9rem;
}

.student-rating-display .rating-comment {
    font-size: 0.85rem;
    font-style: italic;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.skill-section {
    margin-bottom: 20px;
}

.questions-container {
    min-height: auto;
    margin-bottom: 50px;
}

.nav-tabs {
    margin-bottom: 30px;
}

.nav-pills {
    margin-bottom: 40px;
}

/* File Preview Styles */
.file-preview-item {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.file-preview-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.file-name {
    font-weight: 500;
    color: #495057;
}

.file-preview-item .btn-outline-danger {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.file-preview-item .btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Blink Animation */
.blink {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.3;
    }
}

.pda {
    position: relative;
    padding: 0 20px;
}

.row.rda {
    margin: 0 -20px;
}

.col-md-9.pda {
    padding-right: 0;
}

.upload-section.upload-sectionFlex {
    display: flex;
    align-items: center;
}
button.btn.btn-sm.teacher-question-reaction-btn.active {
    background: #e9e9e9;
}
.download-links-audio.download-links {
    width: 100%;
    text-align: right;
}

.download-links-image {
    width: 100%;
    text-align: right;
}

textarea#description {
    height: 500px;
}