/* ===== CiCC LMS — Lesson Player ===== */
.cicc-lesson-container {
    display: flex;
    min-height: calc(100vh - 200px);
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar */
.cicc-lesson-sidebar {
    width: 340px;
    flex-shrink: 0;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
    padding: 20px;
}

.cicc-sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.cicc-back-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 12px;
}

.cicc-course-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cicc-progress-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.cicc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.cicc-progress-label {
    font-size: 13px;
    font-weight: 600;
    color: #6366f1;
}

/* Curriculum Nav */
.cicc-curriculum-nav {
    margin-top: 10px;
}

.cicc-module {
    margin-bottom: 16px;
}

.cicc-module-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.cicc-module-items {
    list-style: none;
    margin: 0;
    padding: 0 0 0 8px;
}

.cicc-module-item {
    margin: 2px 0;
}

.cicc-module-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    font-size: 13px;
    transition: all 0.2s;
}

.cicc-module-item:hover a {
    background: #eef2ff;
}

.cicc-module-item.current a {
    background: #eef2ff;
    color: #6366f1;
    font-weight: 500;
}

.cicc-module-item.completed a {
    color: #16a34a;
}

.cicc-item-icon { font-size: 14px; }
.cicc-item-title { flex: 1; }
.cicc-item-check { font-size: 12px; }

/* Main Content */
.cicc-lesson-main {
    flex: 1;
    padding: 40px 60px;
    max-width: 900px;
}

.cicc-lesson-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
}

.cicc-lesson-body {
    line-height: 1.8;
    color: #334155;
}

.cicc-lesson-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

/* Actions */
.cicc-lesson-actions {
    margin: 40px 0;
    text-align: center;
}

.cicc-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.cicc-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

.cicc-btn-complete.completed {
    background: #16a34a;
}

/* Nav */
.cicc-lesson-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.cicc-nav-prev, .cicc-nav-next {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    max-width: 35%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cicc-nav-counter {
    color: #94a3b8;
    font-size: 14px;
}

/* Dashboard */
.cicc-dashboard-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cicc-dash-header {
    margin-bottom: 40px;
}

.cicc-dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.cicc-stat-card {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.stat-num {
    font-size: 36px;
    font-weight: 800;
    color: #6366f1;
    display: block;
}

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

.cicc-course-card {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    transition: transform 0.2s;
}

.cicc-course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

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

.cicc-progress-text {
    display: block;
    margin: 8px 0 16px;
    color: #6366f1;
    font-weight: 600;
}

.cicc-cert-list {
    list-style: none;
    padding: 0;
}

.cicc-cert-list li {
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .cicc-lesson-container {
        flex-direction: column;
    }
    .cicc-lesson-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        max-height: 300px;
    }
    .cicc-lesson-main {
        padding: 20px;
    }
}
