/* ========================================
   Custom LMS Plugin Styles
   ======================================== */

/* ========================================
   1. GLOBAL STYLES & LAYOUT
   ======================================== */

/* Container and Layout */
.custom-lms-dashboard,
.custom-lms-single-course {
    max-width: 100%;
    width: 100%;
}

.black-06 {
    color: #61605F;
}

.fw-500 {
    font-weight: 500;
}

/* ========================================
   2. FORM STYLES
   ======================================== */

.custom-lms-form {
    max-width: 100%;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

form#custom-lms-edit-course-form {
    margin: 0px;
}

@media (max-width: 768px) {
    .custom-lms-form {
        padding: 15px;
    }
}

.account_content .wp-editor-tools {
    display: none !important;
}

.account_content .wp-editor-wrap {
    position: relative;
    margin-bottom: 30px;
}

.custom-lms-form h3 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.custom-lms-form h4 {
    color: #555;
    margin: 20px 0 15px 0;
}

.custom-lms-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.custom-lms-form input[type="text"],
.custom-lms-form input[type="number"],
.custom-lms-form select,
.custom-lms-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
}

.custom-lms-form input[type="file"] {
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    background: #f9f9f9;
    margin-bottom: 15px;
}

.custom-lms-form input[type="file"]:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.custom-lms-form small {
    color: #666;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

/* WYSIWYG Editor Styles */
.custom-lms-lesson-editor-wrapper {
    margin-bottom: 15px;
}

.custom-lms-lesson-editor-wrapper .wp-editor-container {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.custom-lms-lesson-editor-wrapper .wp-editor-area {
    min-height: 200px;
}

/* Lesson and Question Fields */
.custom-lms-lesson-fields,
.custom-lms-question-fields {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

@media (max-width: 480px) {
    .custom-lms-lesson-fields {
        padding: 15px;
    }
}

.custom-lms-lesson-fields h5 {
    margin-top: 0;
    color: #333;
}

/* ========================================
   3. BUTTON STYLES
   ======================================== */

.custom-lms-form .button,
.custom-lms-therapist-courses .button,
.custom-lms-quiz-completed .button {
    border: none !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 18px !important;
    background-color: #136f63 !important;
    color: white !important;
    border-radius: 32px !important;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.custom-lms-form .button:hover {
    background: #005a87;
}

.custom-lms-form .button-primary {
    background: #0073aa;
    font-weight: 600;
    padding: 12px 24px;
}

.custom-lms-form .button-primary:hover {
    background: #005a87;
}

.custom-lms-remove-lesson,
.custom-lms-remove-question {
    background: #dc3232 !important;
    color: white !important;
}

.custom-lms-remove-lesson:hover,
.custom-lms-remove-question:hover {
    background: #a00 !important;
}

.mce-container button {
    background-color: transparent !important;
}
.custom-lms-view-certificate{
    margin-top: 20px;
}
.custom-lms-remove-question {
    margin-top: 15px !important;
}

/* ========================================
   4. DASHBOARD STYLES
   ======================================== */

.custom-lms-dashboard h2 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* ========================================
   5. COURSE GRID & CARDS
   ======================================== */
.custom-lms-courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 54px 32px;
}

.custom-lms-course-info {
    display: flex;
    gap: 18px;
    flex-direction: column;
}

span.button-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
}

a.custom-lms-view-course-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-lms-course-title,
.custom-lms-course-excerpt {
    text-transform: capitalize;
}

p.custom-lms-course-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-lms-course-image {
    width: 100%;
    aspect-ratio: 512 / 428;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 18px;
}

.custom-lms-course-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: all 0.5s;
}

.custom-lms-course-image:hover img {
    scale: 1.05;
}

/* ========================================
   6. SINGLE COURSE PAGE
   ======================================== */

/* Course Header Section */


.custom-lms-course-hero-image {
    margin-block: 44px;
}

.custom-lms-course-hero-image img {
    width: 100%;
    max-width: 100%;
    border-radius: 30px;
    height: 537px;
    object-fit: cover;
}

.custom-lms-enroll-btn {
    text-decoration: none;
}


.custom-lms-course-subtitle {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
    margin: 0 0 1.5rem 0;
    line-height: 1.4;
}

/* Pre-Enrollment Sections */

.custom-lms-course-title {
    color: #000 !important;
    font-family: Satoshi !important;
    font-size: 40px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: normal !important;
    text-transform: capitalize;
}



.custom-lms-single-course ul {
    margin-left: 20px;
}

.custom-lms-course-for-therapists-container {
    display: flex;
    gap: 10px;
}

.custom-lms-course-pre-enrollment {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
}

.course_detail * {
    color: #61605F;
}

.custom-lms-course-for-therapists-container * {
    color: #000 !important;
}

.custom-lms-price-amount {
    color: #000;
    font-family: Satoshi;
    font-size: 40px;
    font-weight: 500;
    line-height: normal;
    text-transform: capitalize;
}

.free-with-membership {
    color: #000;
    font-family: Satoshi;
    font-size: 22px;
    font-style: normal;
    font-weight: 500;
    line-height: 163.636%;
    text-transform: capitalize;
    opacity: 0.6;
}

button ,
.button{
    cursor: pointer;
}


/* ========================================
   7. COURSE CONTENT & LESSONS
   ======================================== */

.custom-lms-course-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 480px) {
    .custom-lms-course-content {
        padding: 20px;
    }
}

.custom-lms-course-content h3 {
    color: #333;
    margin-bottom: 25px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.custom-lms-lessons-list {
    margin-bottom: 40px;
}

.custom-lms-lessons-list h4 {
    color: #555;
    margin-bottom: 20px;
}

.custom-lms-lessons-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-lms-lesson-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.custom-lms-lesson-item:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.custom-lms-lesson-item.completed {
    border-color: #28a745;
    background: #f8fff9;
}

.custom-lms-lesson-header {
    background: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
    .custom-lms-lesson-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.custom-lms-lesson-header h5 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.custom-lms-lesson-content {
    padding: 20px;
    line-height: 1.6;
}

.custom-lms-lesson-file {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.custom-lms-lesson-file strong {
    color: #333;
    margin-right: 10px;
}

/* New lesson files structure for separate video and PDF */
.custom-lms-lesson-files {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.custom-lms-lesson-video,
.custom-lms-lesson-pdf {
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.custom-lms-lesson-video:last-child,
.custom-lms-lesson-pdf:last-child {
    margin-bottom: 0;
}

.custom-lms-lesson-video strong,
.custom-lms-lesson-pdf strong {
    color: #333;
    margin-right: 10px;
    display: inline-block;
    min-width: 80px;
}

/* ========================================
   8. PROGRESS INDICATOR
   ======================================== */

.custom-lms-progress-indicator {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.custom-lms-progress-indicator h4 {
    color: #333;
    margin-bottom: 15px;
}

.custom-lms-progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.custom-lms-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #005a87);
    transition: width 0.5s ease;
}

.custom-lms-progress-text {
    text-align: center;
    font-weight: 500;
    color: #333;
    margin: 0;
}

/* ========================================
   9. QUIZ STYLES
   ======================================== */

.custom-lms-quiz-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.custom-lms-quiz-section h4 {
    color: #333;
    margin-bottom: 15px;
}

.custom-lms-quiz-wrapper {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.custom-lms-question-block {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.custom-lms-question-block p {
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.custom-lms-question-block label {
    display: block;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.custom-lms-question-block label:hover {
    background: #f0f8ff;
    border-color: #0073aa;
}

.custom-lms-question-block input[type="radio"] {
    margin-right: 8px;
}

.custom-lms-quiz-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
}

.custom-lms-quiz-completed {
    margin-top: 30px;
    padding: 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    text-align: center;
}

.custom-lms-quiz-completed h4 {
    color: #155724;
    margin-bottom: 10px;
}

.custom-lms-quiz-completed p {
    color: #155724;
    margin: 0;
}

/* ========================================
   10. STATUS INDICATORS
   ======================================== */

.custom-lms-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.custom-lms-status.completed {
    background: #d4edda;
    color: #155724;
}

.custom-lms-course-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.custom-lms-course-status.enrolled {
    background: #d4edda;
    color: #155724;
}

.custom-lms-course-status.completed {
    background: #d1ecf1;
    color: #0c5460;
}

.custom-lms-course-status.not-enrolled {
    background: #f8d7da;
    color: #721c24;
}

/* ========================================
   11. ADMIN STYLES
   ======================================== */

.custom-lms-admin-lessons,
.custom-lms-admin-quiz {
    margin-bottom: 30px;
}

.custom-lms-admin-lessons h4,
.custom-lms-admin-quiz h4 {
    color: #333;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-lms-admin-lessons table,
.custom-lms-admin-quiz table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.custom-lms-admin-lessons th,
.custom-lms-admin-quiz th,
.custom-lms-admin-lessons td,
.custom-lms-admin-quiz td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.custom-lms-admin-lessons th,
.custom-lms-admin-quiz th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.custom-lms-admin-lessons tr:hover,
.custom-lms-admin-quiz tr:hover {
    background: #f8f9fa;
}

/* ========================================
   12. MODAL STYLES
   ======================================== */

.custom-lms-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-lms-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;

    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-block: 30px;
}

@media (max-width: 768px) {
    .custom-lms-modal-content {
        width: 95%;
        padding: 20px;
    }
}

.custom-lms-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.custom-lms-modal-close:hover {
    color: #333;
}

.custom-lms-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.custom-lms-modal form p {
    margin-bottom: 15px;
}

.custom-lms-modal form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.custom-lms-modal form input[type="text"],
.custom-lms-modal form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.custom-lms-modal form button {
    margin-right: 10px;
    margin-top: 10px;
}

/* ========================================
   13. BULK ACTIONS
   ======================================== */

.bulk-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.bulk-actions select {
    min-width: 150px;
}

/* ========================================
   14. COURSE ACTIONS
   ======================================== */

.custom-lms-course-actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .custom-lms-course-actions {
        flex-direction: column;
    }
}

.custom-lms-course-actions .button {
    flex: 1;
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
}