/* Learning Section Styles */
.learning-section {
    padding: 80px 0 100px;
    background: var(--g-bg-light);
    min-height: 100vh;
}

.module-navigation {
    background: var(--g-bg-white);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.module-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.module-nav-header h3 {
    color: var(--g-accent);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

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

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--g-bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--g-primary), var(--g-secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    color: var(--g-text);
    font-weight: 600;
    font-size: 14px;
}

.module-list-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.module-item-nav {
    background: var(--g-bg-light);
    border: 1px solid var(--g-border);
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-item-nav:hover {
    background: var(--g-primary);
    color: #fff;
    transform: translateY(-2px);
}

.module-item-nav.active {
    background: var(--g-accent);
    color: #fff;
    border-color: var(--g-accent);
}

/* Video Player Area */
.video-player-area {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
}

.current-module-info {
    background: var(--g-bg-light);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--g-border);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.module-icon-large {
    width: 60px;
    height: 60px;
    background: var(--g-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.module-icon-large i {
    font-size: 24px;
}

.module-details h4 {
    color: var(--g-accent);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.module-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.module-duration {
    font-size: 1rem;
    color: var(--g-primary);
    font-weight: 600;
}

.module-status {
    background: var(--g-secondary);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Enhanced Video Controls for Learning */
.video-controls-bottom {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.prev-btn, .next-btn {
    background: var(--g-accent);
    color: #fff;
    font-weight: 600;
}

.prev-btn:hover, .next-btn:hover {
    background: var(--g-primary);
    transform: scale(1.05);
}

/* Course Content */
.course-content {
    background: var(--g-bg-white);
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid var(--g-border);
}

.content-tabs {
    display: flex;
    border-bottom: 2px solid var(--g-border);
    margin-bottom: 0;
}

.nav-tabs .nav-link {
    padding: 12px 20px;
    color: var(--g-text);
    border: none;
    background: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-tabs .nav-link:hover {
    color: var(--g-primary);
    background: var(--g-bg-light);
}

.nav-tabs .nav-link.active {
    color: var(--g-primary);
    background: var(--g-bg-white);
    border-bottom: 3px solid var(--g-primary);
    font-weight: 600;
}

.nav-tabs .nav-link i {
    margin-right: 8px;
}

.tab-content {
    padding: 30px;
    min-height: 400px;
}

.tab-pane {
    display: none;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.learning-objectives, .module-outcomes {
    background: var(--g-bg-light);
    border-radius: 8px;
    padding: 20px;
}

.learning-objectives h5, .module-outcomes h5 {
    color: var(--g-accent);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.learning-objectives ul, .module-outcomes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.learning-objectives li, .module-outcomes li {
    padding: 8px 0;
    margin-bottom: 8px;
    border-left: 3px solid var(--g-primary);
    padding-left: 15px;
    color: var(--g-text);
}

.learning-objectives li::before, .module-outcomes li::before {
    content: '✓';
    color: var(--g-primary);
    font-weight: bold;
    margin-right: 8px;
}

/* Resources */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.resource-item {
    background: var(--g-bg-light);
    border: 1px solid var(--g-border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resource-item:hover {
    background: var(--g-primary);
    color: #fff;
    transform: translateY(-3px);
}

.resource-item i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

/* Quiz */
.quiz-container {
    background: var(--g-bg-light);
    border-radius: 8px;
    padding: 25px;
}

.quiz-progress {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--g-text);
}

.quiz-questions {
    margin-bottom: 20px;
}

.quiz-question {
    background: var(--g-bg-white);
    border: 1px solid var(--g-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

/* Notes */
.notes-container {
    background: var(--g-bg-light);
    border-radius: 8px;
    padding: 20px;
}

.notes-area {
    width: 100%;
    min-height: 200px;
    border: 1px solid var(--g-border);
    border-radius: 6px;
    padding: 15px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
}

.notes-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-dialog {
    background: var(--g-bg-white);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--g-border);
}

.modal-title {
    color: var(--g-accent);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.btn-close {
    background: none;
    border: none;
    color: var(--g-text);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn-close:hover {
    background: var(--g-bg-light);
}

.modal-body {
    padding: 25px;
}

.completion-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--g-bg-light);
    border-radius: 8px;
    border: 1px solid var(--g-border);
}

.stat-item i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.next-module-info {
    text-align: center;
    padding: 25px;
    background: var(--g-bg-light);
    border-radius: 8px;
    border-top: 1px solid var(--g-border);
}

.next-module-info h6 {
    color: var(--g-accent);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-footer {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    border-top: 1px solid var(--g-border);
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .learning-section {
        padding: 60px 0 80px;
    }
    
    .module-navigation {
        padding: 20px;
    }
    
    .module-nav-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .video-player-area {
        margin-bottom: 30px;
    }
    
    .content-tabs {
        flex-direction: column;
    }
    
    .overview-content {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-dialog {
        width: 95%;
        margin: 20px;
    }
}
