
/* ===== LAYOUT ===== */
.lms-wrapper {
    display: flex;
    height: calc(75vh - 70px);
    background: #fff;
}

/* ===== VIDEO AREA ===== */
.video-area {
    flex: 3;
    background: #000;
    padding: 10px;
}
.video-area video {
    width: 100%;
    height: 50vh;
}

.lesson-heading {
    color: #fff;
    margin-top: 12px;
}

/* ===== SIDEBAR ===== */
.course-sidebar {
    width: 380px;
    border-left: 1px solid #e0e0e0;
    overflow-y: auto;
    background: #fff;
}

.sidebar-title {
    padding: 14px;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
}

/* ===== SECTION ===== */
.section {
    border-bottom: 1px solid #eee;
}

.section-header {
    background: #f7f7f7;
    padding: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header strong {
    font-size: 15px;
}

.section-meta {
    font-size: 13px;
    color: #6a6f73;
}

.arrow {
    font-size: 16px;
}

/* ===== LESSON LIST ===== */
.section-body {
    display: none;
}
.section-body.open {
    display: block;
}

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

.lesson-item {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
}

.lesson-item:hover {
    background: #f9f9f9;
}

.lesson-item.active {
    background: #e6f0ff;
}

/* ===== ICON ===== */
.lesson-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lesson-icon.incomplete {
    background: #e0e0e0;
    color: #555;
}

.lesson-icon.completed {
    background: #a435f0;
    color: #fff;
}

/* ===== CONTENT ===== */
.lesson-title {
    font-size: 14px;
    font-weight: 500;
}

.lesson-meta {
    font-size: 13px;
    color: #6a6f73;
    display: flex;
    gap: 12px;
    align-items: center;
}

.resource-btn {
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 20px;
    text-decoration: none;
}


.lms-topbar {
    position: sticky;
    top: 0;
    z-index: 999;
    height: 64px;
    background: #1c1d1f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid #2d2f31;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    height: 28px;
}

.course-name {
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 480px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-btn,
.share-btn,
.menu-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
}

.menu-btn {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 18px;
}

.progress-btn:hover,
.share-btn:hover,
.menu-btn:hover {
    background: rgba(255,255,255,0.1);
}

.progress-wrapper {
    position: relative;
}

.progress-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
}

.progress-btn:hover {
    background: rgba(255,255,255,0.1);
}

.progress-dropdown-menu {
    display: none;
    position: absolute;
    top: 42px;
    right: 0;
    width: 220px;
    background: #1c1d1f;
    border: 1px solid #2d2f31;
    border-radius: 6px;
    padding: 12px;
    color: #fff;
    z-index: 999;
}

.progress-count {
    font-size: 13px;
    margin-bottom: 8px;
}

.progress-bar-wrapper {
    width: 100%;
    height: 6px;
    background: #3e4143;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #a435f0;
}


/* =========================
   RESPONSIVE OVERRIDES
   (DO NOT REMOVE DESKTOP CSS)
   ========================= */

/* Tablets & small laptops */
@media (max-width: 991px) {

    .lms-wrapper {
        flex-direction: column;
        height: auto; /* 🔥 fixes mobile height bug */
    }

    .video-area video {
        height: auto;
        max-height: 45vh;
    }

    .course-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }

    .lms-topbar {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 14px;
        gap: 8px;
    }

    .topbar-right {
        width: 100%;
        justify-content: flex-end;
    }

    .course-name {
        max-width: 100%;
        font-size: 14px;
    }
}

/* Mobile phones */
@media (max-width: 576px) {

    .video-area video {
        max-height: 38vh;
    }

    .lesson-item {
        padding: 10px 12px;
    }

    .lesson-title {
        font-size: 13px;
    }

    .lesson-meta {
        font-size: 12px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .resource-btn {
        font-size: 11px;
        padding: 3px 10px;
    }

    .menu-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* Large screens (polish only) */
@media (min-width: 1400px) {

    .video-area video {
        max-height: 60vh;
    }

    .course-sidebar {
        width: 420px;
    }
}
