/* ============================================================
   Manus LMS – Frontend Styles
   ============================================================ */

/* ----- Course Lesson List ----- */
.manus-lms-course-lessons {
    margin-top: 2em;
    padding: 1.5em;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
}

.manus-lms-course-lessons h3 {
    margin-top: 0;
    font-size: 1.2em;
}

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

.manus-lms-lesson-list li {
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
}

.manus-lms-lesson-list li:last-child {
    border-bottom: none;
}

.manus-lms-lesson-list li.manus-lesson-done {
    background: #f0fff4;
}

.manus-lms-lesson-list a {
    text-decoration: none;
    font-weight: 600;
    color: #0073aa;
}

.manus-lms-lesson-list a:hover {
    text-decoration: underline;
}

.manus-lms-lesson-list .manus-locked {
    color: #888;
}

.manus-check {
    color: #28a745;
    font-weight: bold;
    margin-left: 6px;
}

/* ----- Notice ----- */
.manus-lms-notice {
    padding: 12px 16px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    margin-bottom: 16px;
}

/* ----- Progress Bar ----- */
.manus-lms-progress-wrap {
    margin-bottom: 16px;
}

.manus-lms-progress-label {
    font-size: 0.9em;
    margin-bottom: 4px;
    color: #555;
}

.manus-lms-progress-bar {
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.manus-lms-progress-fill {
    height: 100%;
    background: #0073aa;
    border-radius: 6px;
    transition: width 0.4s ease;
}

/* ----- Lesson Navigation ----- */
.manus-lms-lesson-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2em;
    padding-top: 1em;
    border-top: 2px solid #eee;
    gap: 8px;
    flex-wrap: wrap;
}

.manus-lms-lesson-nav a {
    padding: 9px 16px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    white-space: nowrap;
}

.manus-lms-lesson-nav a:hover {
    background: #005177;
}

.manus-lms-lesson-nav .nav-course {
    background: #6c757d;
}

.manus-lms-lesson-nav .nav-course:hover {
    background: #545b62;
}

/* ----- Complete Button ----- */
.manus-lms-complete-wrap {
    margin-top: 1.5em;
    text-align: center;
}

.manus-lms-complete-btn {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
}

.manus-lms-complete-btn:hover {
    background: #1e7e34;
}

.manus-lms-done-badge {
    display: inline-block;
    padding: 10px 20px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    font-weight: 600;
}

/* ----- Video Embed ----- */
.manus-lms-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 1.5em;
    border-radius: 4px;
    background: #000;
}

.manus-lms-video-wrap iframe,
.manus-lms-video-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ----- Download Button ----- */
.manus-lms-download-wrap {
    margin: 1.5em 0;
}

.manus-lms-download-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}

.manus-lms-download-btn:hover {
    background: #005177;
    color: #fff;
}

/* ----- Quiz ----- */
.manus-lms-quiz {
    margin-top: 2em;
    padding: 1.5em;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
}

.manus-lms-quiz h3 {
    margin-top: 0;
}

.manus-lms-quiz-question {
    margin-bottom: 1.5em;
    padding: 1em;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.manus-lms-quiz-question.manus-correct {
    border-color: #28a745;
    background: #f0fff4;
}

.manus-lms-quiz-question.manus-wrong {
    border-color: #dc3545;
    background: #fff5f5;
}

.manus-lms-quiz-question label {
    display: block;
    padding: 6px 0;
    cursor: pointer;
}

.manus-correct-label {
    font-weight: bold;
    color: #28a745;
}

.manus-lms-quiz-submit {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
}

.manus-lms-quiz-submit:hover {
    background: #005177;
}

.manus-lms-quiz-message {
    margin-top: 1em;
    padding: 12px;
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    display: none;
}

/* ----- Responsive ----- */
@media (max-width: 600px) {
    .manus-lms-lesson-nav {
        flex-direction: column;
        align-items: stretch;
    }
    .manus-lms-lesson-nav a {
        text-align: center;
    }
}
