/* Custom LMS Frontend Styles */

/* Course Info */
.custom-lms-course-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.course-price {
    font-size: 24px;
    font-weight: bold;
}

.course-price .price.free {
    color: #28a745;
}

.course-duration,
.course-difficulty,
.course-featured {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-size: 14px;
}

.course-featured {
    color: #ffc107;
    font-weight: 500;
}

.course-featured .dashicons {
    color: #ffc107;
}

.course-actions {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background: #005a87;
    color: white;
}

.btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
}

/* Course Lessons */
.custom-lms-course-lessons {
    margin: 30px 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.custom-lms-course-lessons h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.lessons-list {
    margin-top: 20px;
}

.lesson-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.lesson-item:hover {
    background: #e9ecef;
    border-color: #007cba;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lesson-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.lesson-info h4 a {
    color: #333;
    text-decoration: none;
}

.lesson-info h4 a:hover {
    color: #007cba;
}

.lesson-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #6c757d;
    flex-wrap: wrap;
}

.lesson-number {
    background: #007cba;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
}

.lesson-type {
    display: flex;
    align-items: center;
    gap: 3px;
}

.lesson-duration {
    display: flex;
    align-items: center;
    gap: 3px;
}

.lesson-status.completed {
    color: #28a745;
    font-weight: 600;
}

.lesson-status.in-progress {
    color: #ffc107;
    font-weight: 600;
}

.lesson-actions {
    flex-shrink: 0;
}

/* Course Reviews */
.custom-lms-course-reviews {
    margin: 30px 0;
}

.reviews-list {
    margin-top: 20px;
}

.review-item {
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-author {
    font-weight: bold;
}

.review-rating {
    color: #ffc107;
}

.review-date {
    color: #6c757d;
    font-size: 14px;
}

.review-content {
    margin-top: 10px;
    line-height: 1.6;
}

/* Student Dashboard */
.student-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    background: #007cba;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-size: 14px;
}

/* My Courses */
.my-courses {
    margin-bottom: 30px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.course-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-2px);
}

.course-card-image {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.course-card-content {
    padding: 20px;
}

.course-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.course-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #6c757d;
}

.course-progress {
    margin-bottom: 15px;
}

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

.progress-fill {
    height: 100%;
    background: #28a745;
    transition: width 0.3s;
}

/* Lesson Player */
.lesson-player {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.lesson-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.lesson-header h1 {
    margin: 0 0 10px 0;
    color: #333;
}

.lesson-course-info {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 10px;
}

.course-badge {
    background: #007cba;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.lesson-order {
    background: #f8f9fa;
    color: #6c757d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #e9ecef;
}

.lesson-video {
    width: 100%;
    height: 400px;
    background: #000;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.lesson-video iframe,
.lesson-video video {
    width: 100%;
    height: 100%;
    border: none;
}

.lesson-content {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.lesson-actions {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.lesson-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .course-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .lesson-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .lesson-actions {
        width: 100%;
        text-align: center;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
}
