/**
 * Frontend CSS for Course Management System
 */

/* Course Player Styles */
.cms-course-player {
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #ffffff;
}

.cms-course-header {
    margin-bottom: 25px;
    padding: 20px;
    background: #0D0D0D;
    border: 1px solid #c8993e;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cms-course-header h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cms-progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cms-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.cms-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c8993e, #a17a32);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.cms-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.cms-progress-text {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    direction: rtl;
    text-align: right;
}

/* RTL Support for Hebrew */
html[lang="he"] .cms-course-player,
html[lang="he-IL"] .cms-course-player,
body.rtl .cms-course-player {
    direction: rtl;
    text-align: right;
}

/* Main container */
.cms-course-player {
    font-family: 'Roboto', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    background: #0D0D0D;
    color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #c8993e;
}

/* Video Container */
.cms-video-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 650px;
    background-color: #0D0D0D;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid #c8993e;
}

.cms-video-container iframe {
    width: 100%;
    height: 100%;
    min-height: 650px;
    border: none;
    display: block;
}

.cms-video-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: #fff;
    background: #0D0D0D;
    border: 1px solid #c8993e;
}

.cms-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #c8993e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cms-video-loading p {
    margin: 0;
    font-size: 16px;
    opacity: 0.8;
}

/* Watermark Styles */
.cms-watermark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.cms-dynamic-watermark {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    user-select: none;
    z-index: 1000;
    transition: all 0.5s ease-in-out;
    mix-blend-mode: difference;
}

/* Chapter Picker - Tab Design */
.cms-chapter-picker {
    margin-bottom: 25px;
}

.cms-chapters-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #c8993e;
    position: relative;
    margin-bottom: 20px;
    width: 100%;
    background-color: #0D0D0D;
    padding: 5px 5px 0;
    border-radius: 8px 8px 0 0;
}

/* Ensure no video previews appear next to chapter tabs */
.cms-chapter-tab iframe,
.cms-chapter-tab video,
.cms-chapter-tab img.preview {
    display: none !important;
}

.cms-chapter-tab {
    flex: 0 0 auto;
    padding: 12px 20px;
    margin: 0 2px;
    background: #0D0D0D;
    border: 1px solid #c8993e;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: -2px; /* Overlap the bottom border */
    z-index: 1;
    color: #ffffff;
}

.cms-chapter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(102, 126, 234, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cms-chapter-tab:hover::before {
    opacity: 1;
}

.cms-chapter-tab:hover {
    background: #1a1a1a;
    border-color: #c8993e;
}

.cms-chapter-tab.current {
    background: #c8993e;
    border-color: #c8993e;
    color: #0D0D0D;
    z-index: 2;
    font-weight: 600;
}

.cms-chapter-tab.completed {
    background: #1a1a1a;
    border-color: #c8993e;
}

.cms-chapter-tab.locked {
    opacity: 0.6;
    cursor: not-allowed;
    background: #0D0D0D;
    border-color: #444;
}

.cms-chapter-tab.locked:hover {
    background: #0D0D0D;
    border-color: #444;
}

.cms-chapter-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.cms-chapter-tab:hover .cms-chapter-title {
    color: #c8993e;
}

.cms-chapter-tab.current .cms-chapter-title {
    color: #0D0D0D;
}

.cms-tab-icon {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cms-lock-icon {
    color: #888;
}

.cms-check-icon {
    color: #c8993e;
}

.cms-quiz-icon {
    color: #c8993e;
}

/* Quiz Tab Styles */
.cms-quiz-tab {
    flex: 0 0 auto;
    padding: 12px 20px;
    margin: 0 2px;
    background: #0D0D0D;
    border: 1px solid #c8993e;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: -2px;
    z-index: 1;
    color: #ffffff;
}

/* Final Exam Tab Styles */
.cms-final-exam-tab {
    flex: 0 0 auto;
    padding: 14px 24px;
    margin: 0 2px;
    background: linear-gradient(135deg, #0D0D0D, #1a1a1a);
    border: 2px solid #c8993e;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: -2px;
    z-index: 2; /* Higher z-index to stand out */
    color: #ffffff;
    box-shadow: 0 -2px 10px rgba(200, 153, 62, 0.2);
    transform: translateY(-3px); /* Make it slightly taller */
}

.cms-final-exam-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(200, 153, 62, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px 8px 0 0;
    pointer-events: none;
}

.cms-final-exam-tab:hover {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-color: #d9aa4f;
    transform: translateY(-5px);
    box-shadow: 0 -4px 15px rgba(200, 153, 62, 0.3);
}

.cms-final-exam-tab:hover::before {
    opacity: 1;
}

.cms-final-exam-tab.current {
    background: linear-gradient(135deg, #c8993e, #d9aa4f);
    border-color: #d9aa4f;
    color: #0D0D0D;
    z-index: 3;
    font-weight: 600;
    box-shadow: 0 -4px 15px rgba(200, 153, 62, 0.4);
}

.cms-final-exam-tab.completed {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-color: #c8993e;
}

.cms-final-exam-tab.locked {
    opacity: 0.7;
    cursor: not-allowed;
    background: linear-gradient(135deg, #0D0D0D, #1a1a1a);
    border-color: #555;
    box-shadow: none;
    transform: translateY(-2px);
}

.cms-final-exam-tab.locked:hover {
    background: linear-gradient(135deg, #0D0D0D, #1a1a1a);
    border-color: #555;
    transform: translateY(-2px);
    box-shadow: none;
}

.cms-final-exam-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.cms-final-exam-tab:hover .cms-final-exam-title {
    color: #d9aa4f;
}

.cms-final-exam-tab.current .cms-final-exam-title {
    color: #0D0D0D;
}

.cms-exam-icon {
    color: #c8993e;
    font-size: 18px;
    animation: examIconPulse 2s infinite;
}

@keyframes examIconPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

/* Add a subtle glow effect to the final exam tab */
.cms-final-exam-tab:not(.locked) {
    position: relative;
    overflow: hidden;
}

.cms-final-exam-tab:not(.locked)::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(200, 153, 62, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.cms-final-exam-tab:not(.locked):hover::after {
    opacity: 1;
}

.cms-quiz-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(200, 153, 62, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cms-quiz-tab:hover::before {
    opacity: 1;
}

.cms-quiz-tab:hover {
    background: #1a1a1a;
    border-color: #c8993e;
}

.cms-quiz-tab.current {
    background: #c8993e;
    border-color: #c8993e;
    color: #0D0D0D;
    z-index: 2;
    font-weight: 600;
}

.cms-quiz-tab.completed {
    background: #1a1a1a;
    border-color: #c8993e;
}

.cms-quiz-tab.locked {
    opacity: 0.6;
    cursor: not-allowed;
    background: #0D0D0D;
    border-color: #444;
}

.cms-quiz-tab.locked:hover {
    background: #0D0D0D;
    border-color: #444;
}

.cms-quiz-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.cms-quiz-tab:hover .cms-quiz-title {
    color: #c8993e;
}

.cms-quiz-tab.current .cms-quiz-title {
    color: #0D0D0D;
}

.cms-quiz-label {
    font-size: 12px;
    color: #c8993e;
    margin-left: 5px;
    font-weight: normal;
}

.cms-quiz-indicator {
    margin-top: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.1);
    position: relative;
    z-index: 2;
}

.cms-quiz-indicator:hover {
    transform: scale(1.1);
    background: rgba(255, 193, 7, 0.2);
}

.cms-quiz-indicator.passed {
    background: rgba(76, 175, 80, 0.1);
}

.cms-quiz-indicator.cms-quiz-highlight {
    animation: quizPulse 2s infinite;
    background: rgba(255, 193, 7, 0.3);
}

/* Legacy Chapter List Styles - Kept for backward compatibility */
.cms-chapter-list {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
    margin-top: 25px;
}

.cms-chapters {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cms-chapter {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.cms-chapter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(102, 126, 234, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cms-chapter:hover::before {
    opacity: 1;
}

.cms-chapter:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.cms-chapter.current {
    border-left-color: #667eea;
    background: linear-gradient(135deg, #667eea10, #764ba210);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.cms-chapter.completed {
    border-left-color: #4CAF50;
    background: linear-gradient(135deg, #4CAF5010, #45a04910);
}

.cms-chapter.locked {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f1f3f4;
}

.cms-chapter.locked:hover {
    transform: none;
    box-shadow: none;
}

.cms-chapter-progress {
    margin-top: 8px;
}

.cms-chapter-progress-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.cms-chapter-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Enrollment Form */
.cms-login-required,
.cms-enrollment-form {
    text-align: center;
    padding: 60px 20px;
    background: #0D0D0D;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #c8993e;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(200, 153, 62, 0.1);
    position: relative;
    overflow: hidden;
    animation: formAppear 0.8s ease-out;
}

@keyframes formAppear {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.cms-enrollment-form::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(200, 153, 62, 0.1), transparent 70%);
    pointer-events: none;
}

.cms-enrollment-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c8993e, transparent);
    z-index: 1;
}

.cms-enrollment-form h3 {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 700;
    color: #c8993e;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.cms-enrollment-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c8993e, transparent);
}

.cms-enrollment-form p {
    margin: 0 0 30px 0;
    font-size: 16px;
    color: #ffffff;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    direction: rtl;
    opacity: 0.9;
}

.cms-enroll-btn {
    background: linear-gradient(135deg, #c8993e 0%, #d9aa4f 50%, #c8993e 100%);
    background-size: 200% 100%;
    color: #0D0D0D;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(200, 153, 62, 0.3), inset 0 1px 3px rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    direction: rtl;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: buttonGlow 3s infinite alternate;
}

@keyframes buttonGlow {
    0% { box-shadow: 0 4px 15px rgba(200, 153, 62, 0.3), inset 0 1px 3px rgba(255, 255, 255, 0.3); background-position: 0% 50%; }
    100% { box-shadow: 0 4px 25px rgba(200, 153, 62, 0.5), inset 0 1px 3px rgba(255, 255, 255, 0.3); background-position: 100% 50%; }
}

.cms-enroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 153, 62, 0.5);
    background: linear-gradient(135deg, #d9aa4f 0%, #e5b85b 50%, #d9aa4f 100%);
    color: #0D0D0D;
}

.cms-enroll-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.cms-enroll-btn:hover::before {
    opacity: 1;
}

.cms-enroll-btn:active {
    transform: translateY(0);
}

/* Error Messages */
.cms-error {
    background: #fee;
    color: #c33;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #c33;
    margin: 20px 0;
    font-weight: 500;
}

/* Success Messages */
.cms-success {
    background: #efe;
    color: #3c3;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3c3;
    margin: 20px 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cms-course-header {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .cms-course-header h2 {
        font-size: 22px;
    }
    
    .cms-progress-container {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .cms-progress-text {
        text-align: center;
    }
    
    /* Chapter Picker Responsive Styles */
    .cms-chapter-picker {
        margin-bottom: 20px;
    }
    
    .cms-chapters-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        background-color: #0D0D0D;
    }
    
    .cms-chapters-tabs::-webkit-scrollbar {
        height: 4px;
    }
    
    .cms-chapters-tabs::-webkit-scrollbar-thumb {
        background: #c8993e;
        border-radius: 4px;
    }
    
    .cms-chapter-tab {
        padding: 10px 15px;
        font-size: 14px;
        flex: 0 0 auto;
        white-space: nowrap;
        background: #0D0D0D;
        border-color: #c8993e;
    }
    
    .cms-chapter-title {
        font-size: 14px;
        color: #ffffff;
    }
    
    .cms-tab-icon {
        font-size: 12px;
    }
    
    /* Video Container */
    .cms-video-container {
        min-height: 450px;
    }
    
    .cms-video-container iframe {
        height: 100%;
        min-height: 450px;
    }
    
    .cms-video-loading {
        height: 450px;
    }
    
    /* Legacy Chapter List */
    .cms-chapter-list {
        padding: 20px 15px;
    }
    
    .cms-chapter {
        padding: 12px 15px;
    }
    
    .cms-chapter-title {
        font-size: 15px;
    }
    
    .cms-enrollment-form {
        padding: 40px 15px;
    }
    
    .cms-enrollment-form h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .cms-course-header h2 {
        font-size: 20px;
    }
    
    /* Chapter Picker Small Screen Styles */
    .cms-chapters-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        border-bottom: none;
        background-color: transparent;
    }
    
    .cms-chapter-tab {
        flex: 1 1 auto;
        min-width: calc(50% - 10px);
        margin: 5px;
        padding: 8px 12px;
        border-radius: 6px;
        border: 1px solid #c8993e;
        text-align: left;
        white-space: normal;
        background: #0D0D0D;
    }
    
    .cms-chapter-tab.current {
        background: #c8993e;
        color: #0D0D0D;
        border-color: #c8993e;
    }
    
    .cms-chapter-tab.current .cms-chapter-title {
        color: #0D0D0D;
    }
    
    /* Video Container */
    .cms-video-container {
        min-height: 350px;
    }
    
    .cms-video-container iframe {
        height: 100%;
        min-height: 350px;
    }
    
    .cms-video-loading {
        height: 350px;
    }
    
    /* Legacy Chapter List */
    .cms-chapter {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cms-chapter-status {
        margin-right: 0;
        align-self: flex-end;
    }
}

/* Loading States */
.cms-loading {
    opacity: 0.6;
    pointer-events: none;
}

.cms-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Quiz Modal */
.cms-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(13, 13, 13, 0.9);
    animation: fadeIn 0.3s;
    direction: rtl;
    text-align: right;
}

/* Quiz Modal - inside video container to match dimensions */
.cms-video-container #cms-quiz-modal {
    display: none !important; /* Hidden by default, will be shown via JS */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background-color: #0D0D0D !important;
    z-index: 100 !important;
    visibility: visible !important;
}

.cms-video-container #cms-quiz-modal .cms-modal-content {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
    background-color: #0D0D0D;
    box-shadow: none;
    animation: fadeIn 0.3s ease-out;
    position: relative;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Quiz Modal Header */
.cms-video-container #cms-quiz-modal .cms-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(200, 153, 62, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(200, 153, 62, 0.1);
    flex-shrink: 0;
}

.cms-video-container #cms-quiz-modal .cms-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #c8993e;
}

.cms-video-container #cms-quiz-modal .cms-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #c8993e;
    transition: color 0.2s;
}

.cms-video-container #cms-quiz-modal .cms-modal-close:hover {
    color: #ffffff;
}

/* Quiz Modal Body */
.cms-video-container #cms-quiz-modal .cms-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    height: calc(100% - 80px); /* Account for header height */
}

.cms-video-container #cms-quiz-modal #cms-quiz-description {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.5;
}

.cms-video-container #cms-quiz-modal #cms-quiz-info {
    background-color: rgba(200, 153, 62, 0.1);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.cms-video-container #cms-quiz-modal #cms-quiz-info p {
    margin: 5px 0;
}

.cms-video-container #cms-quiz-modal #cms-quiz-content {
    margin-bottom: 20px;
}

/* Quiz Question Styles */
.cms-quiz-question {
    margin-bottom: 25px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-right: 3px solid #c8993e;
}

.cms-quiz-question h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #c8993e;
}

/* Quiz Options Styles */
.cms-quiz-option {
    margin-bottom: 10px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    transition: background-color 0.2s;
}

.cms-quiz-option:hover {
    background-color: rgba(200, 153, 62, 0.1);
}

.cms-quiz-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
}

.cms-quiz-option input[type="radio"] {
    margin-left: 0;
    margin-right: 10px;
    cursor: pointer;
}

/* Selected option styling */
.cms-quiz-option.selected {
    background-color: rgba(200, 153, 62, 0.2);
    border: 1px solid rgba(200, 153, 62, 0.5);
}

/* Final exam option selection */
#cms-quiz-modal .cms-exam-option.selected {
    background-color: rgba(200, 153, 62, 0.2);
    border: 1px solid rgba(200, 153, 62, 0.5);
}

/* Exam modal states */
#cms-quiz-modal.exam-state-start #cms-quiz-content .cms-exam-question,
#cms-quiz-modal.exam-state-start #cms-quiz-content .cms-question-indicators {
    display: none !important;
}
#cms-quiz-modal.exam-state-start .cms-quiz-navigation {
    display: none !important;
}
#cms-quiz-modal.exam-state-start #cms-quiz-info {
    display: none !important;
}
#cms-quiz-modal.exam-state-active #cms-quiz-content .cms-exam-start {
    display: none !important;
}
/* Force timer visibility during active exam */
#cms-quiz-modal.exam-state-active #cms-quiz-info {
    display: block !important;
    visibility: visible !important;
}
#cms-quiz-modal.exam-state-active .cms-quiz-timer,
#cms-quiz-modal.exam-state-active .cms-exam-timer {
    display: block !important;
    visibility: visible !important;
}

/* Quiz Navigation Styles */
#cms-quiz-modal .cms-quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(200, 153, 62, 0.2);
}

#cms-quiz-modal .cms-btn {
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

#cms-quiz-modal .cms-btn-primary {
    background-color: #c8993e;
    color: #0D0D0D;
}

#cms-quiz-modal .cms-btn-primary:hover {
    background-color: #d9aa4f;
}

#cms-quiz-modal .cms-btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

#cms-quiz-modal .cms-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#cms-quiz-modal .cms-btn-success {
    background-color: #28a745;
    color: #ffffff;
}

#cms-quiz-modal .cms-btn-success:hover {
    background-color: #2dbd4e;
}

/* Quiz Results Styling */
.cms-quiz-option input[type="radio"],
#cms-quiz-modal .cms-exam-option input[type="radio"] {
    accent-color: #c8993e;
    width: 18px;
    height: 18px;
}

.cms-quiz-results {
    text-align: center;
    padding: 20px;
}

.cms-quiz-results .cms-score {
    font-size: 2rem;
    font-weight: bold;
    color: #c8993e;
    margin-bottom: 15px;
}

.cms-quiz-results .cms-passed {
    color: #28a745;
}

.cms-quiz-results .cms-failed {
    color: #dc3545;
}

.cms-chapter {
    animation: fadeIn 0.3s ease-out;
}

.cms-chapter:nth-child(1) { animation-delay: 0.1s; }
.cms-chapter:nth-child(2) { animation-delay: 0.2s; }
.cms-chapter:nth-child(3) { animation-delay: 0.3s; }
.cms-chapter:nth-child(4) { animation-delay: 0.4s; }
.cms-chapter:nth-child(5) { animation-delay: 0.5s; }

/* Security Protection Styles - Blur effects disabled */
.cms-video-wrapper,
.cms-video-container {
    filter: none !important;
}

.cms-video-wrapper *,
.cms-video-container * {
    filter: none !important;
}

/* Hide Vimeo overlays that cause blur effects */
[data-overlay="true"],
.OverlayBase_module_overlayWrapper__9cef8916,
.vimeo-overlay,
.vp-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Message Styles */
.cms-message {
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 360px;
    width: calc(100% - 40px);
    z-index: 300000;
}

.cms-message-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.cms-message-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.cms-message-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.cms-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Course Completion Styles */
.cms-course-completion {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 12px;
    margin: 20px 0;
    border: 2px solid #28a745;
}

.cms-course-completion h3 {
    margin: 0 0 15px 0;
    font-size: 32px;
    color: #155724;
    font-weight: 700;
}

.cms-course-completion p {
    margin: 0;
    font-size: 18px;
    color: #155724;
    font-weight: 500;
}

/* Quiz Indicator Styles */
.cms-quiz-indicator {
    margin-left: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.1);
    position: relative;
    z-index: 2; /* Ensure icon is above any decorative overlays */
}

.cms-quiz-indicator:hover {
    transform: scale(1.1);
    background: rgba(255, 193, 7, 0.2);
}

.cms-quiz-indicator.passed {
    background: rgba(76, 175, 80, 0.1);
}

.cms-quiz-indicator.cms-quiz-highlight {
    animation: quizPulse 2s infinite;
    background: rgba(255, 193, 7, 0.3);
}

.cms-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #c8993e;
    background: #0D0D0D;
    color: #ffffff;
    border-radius: 8px 8px 0 0;
}

.cms-modal-header h3 {
    margin: 0;
    font-size: 24px;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.cms-quiz-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: rgba(200, 153, 62, 0.05);
    border-radius: 6px;
}

.cms-quiz-info p {
    margin: 0;
    font-size: 14px;
    color: #ffffff;
    flex: 1 1 auto;
}

.cms-quiz-info strong {
    color: #c8993e;
    margin-right: 5px;
}

.cms-quiz-timer {
    background: rgba(200, 153, 62, 0.1);
    color: #c8993e;
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #c8993e;
}

.cms-quiz-timer.cms-timer-warning {
    background: rgba(200, 153, 62, 0.3);
    color: #c8993e;
    border-color: #c8993e;
    animation: timerPulse 1s infinite;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Quiz Question Styles */
.cms-quiz-question {
    margin-bottom: 30px;
}

.cms-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #c8993e;
}

.cms-question-number {
    font-size: 16px;
    font-weight: 600;
    color: #c8993e;
    background: rgba(200, 153, 62, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
}

.cms-question-progress {
    flex: 1;
    margin-left: 20px;
}

.cms-question-progress .cms-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.cms-question-progress .cms-progress-fill {
    background: linear-gradient(90deg, #c8993e, #a17a32);
}

.cms-question-text {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.6;
}

.cms-question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cms-quiz-option {
    background: #0D0D0D;
    border: 2px solid #333;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cms-quiz-option:hover {
    background: #1a1a1a;
    border-color: #c8993e;
}

.cms-quiz-option label {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    margin: 0;
    width: 100%;
}

.cms-quiz-option input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
    accent-color: #c8993e;
}

.cms-quiz-option input[type="radio"]:checked + .cms-option-text {
    font-weight: 600;
    color: #c8993e;
}

.cms-quiz-option:has(input:checked) {
    background: rgba(200, 153, 62, 0.1);
    border-color: #c8993e;
}

.cms-option-text {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.5;
}

/* Quiz Navigation */
.cms-quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #c8993e;
}

.cms-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cms-btn-primary {
    background: #c8993e;
    color: #0D0D0D;
}

.cms-btn-primary:hover {
    background: #d9aa4f;
    transform: translateY(-1px);
}

.cms-btn-secondary {
    background: #333;
    color: #c8993e;
    border: 1px solid #c8993e;
}

.cms-btn-secondary:hover {
    background: #444;
    transform: translateY(-1px);
}

.cms-btn-success {
    background: #c8993e;
    color: #0D0D0D;
}

.cms-btn-success:hover {
    background: #d9aa4f;
    transform: translateY(-1px);
}

/* Quiz Results Styles */
.cms-quiz-results {
    text-align: center;
    padding: 30px;
}

.cms-result-header {
    margin-bottom: 25px;
    padding: 25px;
    border-radius: 10px;
}

.cms-result-header.cms-success {
    background: rgba(200, 153, 62, 0.1);
    border: 2px solid #c8993e;
}

.cms-result-header.cms-failure {
    background: rgba(200, 153, 62, 0.05);
    border: 2px solid #444;
}

.cms-result-header h3 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
}

.cms-result-header.cms-success h3 {
    color: #c8993e;
}

.cms-result-header.cms-failure h3 {
    color: #ffffff;
}

.cms-score {
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0;
    color: #c8993e;
}

.cms-passing-score {
    font-size: 16px;
    opacity: 0.8;
    margin: 5px 0;
    color: #ffffff;
}

.cms-result-message {
    margin: 25px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
}

.cms-result-actions {
    margin-top: 30px;
}

.cms-quiz-no-attempts {
    text-align: center;
    padding: 40px 20px;
}

.cms-quiz-no-attempts p {
    font-size: 16px;
    margin: 15px 0;
}

/* Responsive Quiz Styles */
@media (max-width: 768px) {
    .cms-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .cms-modal-header {
        padding: 20px;
    }
    
    .cms-modal-header h3 {
        font-size: 20px;
    }
    
    .cms-modal-body {
        padding: 20px;
    }
    
    .cms-question-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .cms-question-progress {
        margin-left: 0;
    }
    
    .cms-question-text {
        font-size: 16px;
    }
    
    .cms-quiz-option label {
        padding: 12px 15px;
    }
    
    .cms-option-text {
        font-size: 15px;
    }
    
    .cms-quiz-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .cms-btn {
        width: 100%;
        padding: 15px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .cms-chapter-list {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .cms-chapters-title {
        color: #fff;
    }
    
    .cms-chapter {
        background: #2d2d2d;
        color: #fff;
    }
    
    .cms-chapter:hover {
        background: #3a3a3a;
    }
    
    .cms-chapter-title {
        color: #fff;
    }
    
    .cms-chapter-duration {
        color: #ccc;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .cms-modal-content {
        background: #2d2d2d;
        color: #fff;
    }
    
    .cms-quiz-info {
        background: #3a3a3a;
        color: #fff;
    }
    
    .cms-quiz-option {
        background: #3a3a3a;
        border-color: #555;
        color: #fff;
    }
    
    .cms-quiz-option:hover {
        background: #4a4a4a;
    }
    
    .cms-question-text {
        color: #fff;
    }
    
    .cms-option-text {
        color: #ccc;
    }
}

/* User Progress Widget Styles */
.cms-progress-widget {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0D0D0D;
    border-radius: 12px;
}

.cms-welcome-message {
    background: linear-gradient(135deg, #1a1a1a 0%, #0D0D0D 100%);
    border: 2px solid #c8993e;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(200, 153, 62, 0.2);
}

.cms-welcome-message p {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 15px 0;
}

.cms-welcome-message p:first-child {
    font-size: 20px;
    font-weight: 700;
    color: #c8993e;
    margin-bottom: 20px;
}

.cms-welcome-message p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: #d4a859;
}

.cms-progress-title {
    font-size: 32px;
    font-weight: 700;
    color: #c8993e;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cms-login-required,
.cms-no-courses {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #999;
    background: #1a1a1a;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #333;
}

.cms-progress-course-card {
    background: #1a1a1a;
    border: 2px solid #c8993e;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cms-progress-course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(200, 153, 62, 0.3);
}

.cms-progress-course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

.cms-progress-course-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.cms-progress-enrollment-date {
    font-size: 14px;
    color: #999;
    background: #0D0D0D;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #333;
}

.cms-progress-section {
    margin-bottom: 20px;
}

.cms-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cms-progress-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.cms-progress-stats {
    font-size: 14px;
    color: #c8993e;
    background: #0D0D0D;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid #333;
}

.cms-progress-bar-container {
    height: 30px;
    background: #0D0D0D;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.cms-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #c8993e, #d4a859);
    border-radius: 15px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cms-progress-percentage {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cms-progress-chapters-list {
    background: #0D0D0D;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid #333;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

.cms-progress-chapters-list.expanded {
    max-height: 2000px;
    padding: 15px;
}

.cms-progress-chapters-list.collapsed {
    max-height: 0;
    padding: 0 15px;
    border: none;
}

.cms-progress-chapter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #1a1a1a;
    border-radius: 6px;
    border: 1px solid #333;
    transition: all 0.2s ease;
}

.cms-progress-chapter-item:last-child {
    margin-bottom: 0;
}

.cms-progress-chapter-item:hover {
    border-color: #c8993e;
    box-shadow: 0 2px 8px rgba(200, 153, 62, 0.2);
    background: #222;
}

.cms-progress-chapter-item.completed {
    border-color: #4caf50;
}

.cms-chapter-status-icon {
    font-size: 18px;
    font-weight: 700;
    min-width: 25px;
    text-align: center;
}

.cms-progress-chapter-item.completed .cms-chapter-status-icon {
    color: #4caf50;
}

.cms-progress-chapter-item.in-progress .cms-chapter-status-icon {
    color: #999;
}

.cms-chapter-name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
}

.cms-chapter-completed-date {
    font-size: 12px;
    color: #4caf50;
    background: rgba(76, 175, 80, 0.15);
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.cms-progress-exam-section {
    background: #0D0D0D;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid #333;
}

.cms-exam-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 8px;
    margin-top: 10px;
}

.cms-exam-passed {
    border: 2px solid #4caf50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, #1a1a1a 100%);
}

.cms-exam-failed {
    border: 2px solid #ff9800;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, #1a1a1a 100%);
}

.cms-exam-not-started {
    border: 2px solid #666;
    background: linear-gradient(135deg, rgba(102, 102, 102, 0.15) 0%, #1a1a1a 100%);
}

.cms-exam-icon {
    font-size: 28px;
}

.cms-exam-text {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.cms-exam-score {
    font-size: 14px;
    color: #c8993e;
    background: #0D0D0D;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid #333;
}

/* Toggle Details Button */
.cms-toggle-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #c8993e;
    color: #0D0D0D;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    width: 100%;
    justify-content: center;
}

.cms-toggle-details-btn:hover {
    background: #d4a859;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 153, 62, 0.3);
}

.cms-toggle-details-btn:active {
    transform: translateY(0);
}

.cms-toggle-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.cms-toggle-details-btn.expanded .cms-toggle-icon {
    transform: rotate(180deg);
}

/* Responsive Design for Progress Widget */
@media (max-width: 768px) {
    .cms-progress-widget {
        padding: 10px;
    }
    
    .cms-welcome-message {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .cms-welcome-message p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    
    .cms-welcome-message p:first-child {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .cms-progress-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .cms-progress-course-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .cms-progress-course-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cms-progress-course-title {
        font-size: 20px;
    }
    
    .cms-progress-enrollment-date {
        font-size: 12px;
    }
    
    .cms-progress-section-title {
        font-size: 16px;
    }
    
    .cms-progress-bar-container {
        height: 25px;
    }
    
    .cms-progress-percentage {
        font-size: 12px;
    }
    
    .cms-progress-chapter-item {
        padding: 8px 10px;
        gap: 8px;
    }
    
    .cms-chapter-name {
        font-size: 14px;
    }
    
    .cms-chapter-completed-date {
        font-size: 11px;
        display: block;
        width: 100%;
        text-align: left;
        margin-top: 5px;
    }
    
    .cms-exam-status {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }
    
    .cms-exam-icon {
        font-size: 24px;
    }
    
    .cms-exam-text {
        font-size: 14px;
        width: 100%;
    }
    
    .cms-exam-score {
        font-size: 12px;
        width: 100%;
        text-align: center;
    }
}
