/* Syllabus Modal Styles */
.syllabus-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
}

.syllabus-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1003;
    max-width: 800px;
    width: 95vw;
    max-height: 85vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Cairo', Arial, sans-serif;
}

.syllabus-modal-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.syllabus-back {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #555;
    cursor: pointer;
    margin-right: 15px;
    padding: 0;
}

.syllabus-title {
    flex: 1;
    margin: 0;
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.syllabus-close {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #555;
    cursor: pointer;
    padding: 0;
}

.syllabus-fixed-info {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
    position: relative;
}

.syllabus-duration {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.syllabus-course-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.syllabus-completion-status {
    display: flex;
    align-items: center;
    background-color: #f0f8ff;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #d1e9ff;
}

.syllabus-check-icon {
    color: #38a169;
    font-size: 1.2em;
    margin-left: 10px;
    font-weight: bold;
}

.syllabus-completion-text {
    color: #38a169;
    font-weight: bold;
}

.syllabus-content {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    color: #333;
    font-size: 1em;
}

/* Week tabs styling */
.syllabus-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    padding: 0;
}

.syllabus-tab {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.95em;
    color: #666;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
}

.syllabus-tab.active {
    color: #3182ce;
    border-bottom: 2px solid #3182ce;
    font-weight: bold;
}

/* Course sections styling */
.syllabus-section {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.syllabus-section-title {
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.syllabus-section-title .collapse-icon {
    color: #999;
    font-size: 0.9em;
}

.syllabus-lessons {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.syllabus-lesson {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #f5f5f5;
}

.syllabus-lesson:last-child {
    border-bottom: none;
}

.syllabus-lesson-status {
    margin-left: 10px;
    color: #38a169;
    font-size: 1.1em;
}

.syllabus-lesson-content {
    flex: 1;
}

.syllabus-lesson-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.syllabus-lesson-meta {
    font-size: 0.85em;
    color: #666;
    display: flex;
    align-items: center;
}

.syllabus-lesson-type {
    margin-left: 10px;
}

.syllabus-lesson-duration {
    margin-left: auto;
}

/* Accomplishment banner */
.syllabus-accomplishment {
    background-color: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: 4px;
    padding: 15px;
    margin: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.syllabus-accomplishment-icon {
    color: #38a169;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.syllabus-accomplishment-text {
    color: #2f855a;
    font-weight: bold;
    margin-bottom: 5px;
}

.syllabus-accomplishment-subtext {
    color: #4a5568;
    font-size: 0.9em;
}

/* Progress bar */
.syllabus-progress-container {
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin: 15px 0;
    overflow: hidden;
}

.syllabus-progress-bar {
    height: 100%;
    background-color: #38a169;
    border-radius: 4px;
    transition: width 0.3s ease;
}
