/**
 * SM LMS Frontend Styles
 *
 * Mobile-first responsive design for course catalog and learning interfaces
 *
 * @package Kadence Child
 * @subpackage SM_LMS
 * @version 1.0.0
 */

/* ========================================
   LESSON ARCHIVE / CATALOG
   ======================================== */

.sm-lms-archive-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.sm-lms-archive-header {
    text-align: center;
    margin-bottom: 3rem;
}

.sm-lms-archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.sm-lms-archive-description {
    font-size: 1.125rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   FILTERS
   ======================================== */

.sm-lms-filters {
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem !important;
    padding: 1.5rem !important;
    background: #f5f5f5 !important;
    border-radius: 8px;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 100% !important;
    clear: both !important;
}

.sm-lms-filter-group {
    display: flex !important;
    flex-direction: column;
    gap: 0.5rem;
    visibility: visible !important;
    opacity: 1 !important;
}

.sm-lms-filter-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #333 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block !important;
    visibility: visible !important;
}

.sm-lms-filter-select,
.sm-lms-filter-input {
    padding: 0.75rem 1rem !important;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    font-size: 1rem !important;
    background: white !important;
    transition: border-color 0.2s;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

.sm-lms-filter-select:focus,
.sm-lms-filter-input:focus {
    outline: none;
    border-color: #007bff !important;
}

/* Desktop filters layout */
@media (min-width: 768px) {
    .sm-lms-filters {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }

    .sm-lms-filter-group {
        flex: 1;
    }

    .sm-lms-filter-group:last-child {
        flex: 2;
    }
}

/* ========================================
   LESSON GRID (catalog)
   ======================================== */

.sm-lms-lesson-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .sm-lms-lesson-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .sm-lms-lesson-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   LESSON CARD (catalog)
   ======================================== */

.sm-lms-lesson-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.sm-lms-lesson-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.sm-lms-lesson-card.hidden {
    display: none;
}

.sm-lms-lesson-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
}

.sm-lms-lesson-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.sm-lms-lesson-card:hover .sm-lms-lesson-card-image img {
    transform: scale(1.05);
}

.sm-lms-lesson-card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sm-lms-enrollment-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sm-lms-enrollment-badge .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.sm-lms-lesson-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sm-lms-lesson-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.sm-lms-lesson-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.sm-lms-lesson-card-title a:hover {
    color: #007bff;
}

.sm-lms-lesson-card-excerpt {
    color: #666;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.sm-lms-lesson-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.sm-lms-lesson-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sm-lms-lesson-meta-item .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    color: #007bff;
}

.sm-lms-lesson-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* ========================================
   BADGES
   ======================================== */

.sm-lms-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Access level badges */
.sm-lms-badge-access.sm-lms-badge-free {
    background: #007bff;
    color: white;
}

.sm-lms-badge-access.sm-lms-badge-pro {
    background: #6f42c1;
    color: white;
}

/* Difficulty badges */
.sm-lms-badge-difficulty.sm-lms-badge-beginner {
    background: #28a745;
    color: white;
}

.sm-lms-badge-difficulty.sm-lms-badge-intermediate {
    background: #ffc107;
    color: #333;
}

.sm-lms-badge-difficulty.sm-lms-badge-advanced {
    background: #dc3545;
    color: white;
}

/* ========================================
   LESSON META (catalog)
   ======================================== */

.sm-lms-lesson-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sm-lms-lesson-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.sm-lms-lesson-meta-item .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    color: #007bff;
}

/* ========================================
   BUTTONS
   ======================================== */

.sm-lms-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.sm-lms-button-primary {
    background: #007bff;
    color: white;
}

.sm-lms-button-primary:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.sm-lms-button-secondary {
    background: white;
    color: #007bff;
    border: 2px solid #007bff;
}

.sm-lms-button-secondary:hover {
    background: #007bff;
    color: white;
    text-decoration: none;
}

.sm-lms-button-upgrade {
    background: #6f42c1;
    color: white;
}

.sm-lms-button-upgrade:hover {
    background: #5a32a3;
    color: white;
    text-decoration: none;
}

.sm-lms-button:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ========================================
   NO LESSONS MESSAGE
   ======================================== */

.sm-lms-no-lessons,
.sm-lms-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #f5f5f5;
    border-radius: 8px;
    grid-column: 1 / -1;
}

.sm-lms-no-lessons p,
.sm-lms-no-results p {
    font-size: 1.125rem;
    color: #666;
    margin: 0;
}

/* ========================================
   SINGLE LESSON PAGE
   ======================================== */

.sm-lms-single-lesson-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.sm-lms-single-lesson-container {
    background: white;
}

/* Lesson Header */
.sm-lms-lesson-header {
    margin-bottom: 3rem;
}

.sm-lms-lesson-header-content {
    margin-bottom: 2rem;
}

.sm-lms-lesson-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.sm-lms-badge-enrolled {
    background: #28a745;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.sm-lms-badge-enrolled .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.sm-lms-lesson-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #333;
}

.sm-lms-lesson-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.sm-lms-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.sm-lms-meta-item .dashicons {
    color: #007bff;
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.sm-lms-lesson-featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    max-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.sm-lms-lesson-featured-image img {
    width: 100%;
    height: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

/* Content Grid */
.sm-lms-lesson-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .sm-lms-lesson-content-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Main Content */
.sm-lms-lesson-main {
    min-width: 0;
}

.sm-lms-lesson-description {
    margin-bottom: 3rem;
    line-height: 1.8;
}

.sm-lms-lesson-description h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #333;
}

/* Topics Section */
.sm-lms-topics-section {
    margin-bottom: 3rem;
}

.sm-lms-topics-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #333;
}

.sm-lms-topics-intro {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.sm-lms-topics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sm-lms-topic-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: background 0.2s;
}

.sm-lms-topic-item:hover {
    background: #e9ecef;
}

.sm-lms-topic-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: #007bff;
}

.sm-lms-topic-icon .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.sm-lms-topic-info {
    flex-grow: 1;
    min-width: 0;
}

.sm-lms-topic-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.sm-lms-topic-excerpt {
    font-size: 0.9375rem;
    color: #666;
    margin: 0;
}

.sm-lms-topic-status {
    flex-shrink: 0;
}

.sm-lms-topic-status .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
    color: #28a745;
}

.sm-lms-topic-status .dashicons-lock {
    color: #999;
}

/* Quiz Section */
.sm-lms-quiz-section {
    margin-bottom: 3rem;
}

.sm-lms-quiz-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #333;
}

.sm-lms-quiz-info-box {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.sm-lms-quiz-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #007bff;
    border-radius: 50%;
    color: white;
}

.sm-lms-quiz-icon .dashicons {
    width: 28px;
    height: 28px;
    font-size: 28px;
}

.sm-lms-quiz-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.sm-lms-quiz-details p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #555;
}

.sm-lms-quiz-note {
    font-size: 0.9375rem;
    font-style: italic;
    color: #666;
}

/* Sidebar */
.sm-lms-lesson-sidebar {
    position: relative;
}

.sm-lms-enrollment-card,
.sm-lms-lesson-stats {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.sm-lms-enrollment-card h3,
.sm-lms-lesson-stats h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #333;
}

.sm-lms-enrollment-button-wrap {
    margin-bottom: 1.5rem;
}

.sm-lms-btn {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.sm-lms-btn-primary {
    background: #007bff;
    color: white;
}

.sm-lms-btn-primary:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.sm-lms-btn-upgrade {
    background: #6f42c1;
    color: white;
}

.sm-lms-btn-upgrade:hover {
    background: #5a32a3;
    color: white;
    text-decoration: none;
}

.sm-lms-upgrade-message {
    text-align: center;
    color: #666;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.sm-lms-progress-info,
.sm-lms-info-box {
    padding: 1rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.sm-lms-info-box p:last-child {
    margin-bottom: 0;
}

.sm-lms-link {
    color: #007bff;
    text-decoration: underline;
}

.sm-lms-link:hover {
    color: #0056b3;
}

.sm-lms-upgrade-box {
    padding: 1.5rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.sm-lms-upgrade-box h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #333;
}

.sm-lms-benefits-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.sm-lms-benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.sm-lms-benefits-list .dashicons {
    color: #28a745;
    width: 18px;
    height: 18px;
    font-size: 18px;
}

/* Lesson Stats */
.sm-lms-stats-list {
    margin: 0;
}

.sm-lms-stats-list dt {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.sm-lms-stats-list dd {
    color: #666;
    margin-left: 0;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.sm-lms-stats-list dd:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Error State */
.sm-lms-error {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
    background: #f8d7da;
    border-radius: 8px;
    color: #721c24;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.sm-lms-hidden {
    display: none !important;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 639px) {
    .sm-lms-archive-title {
        font-size: 2rem;
    }

    .sm-lms-archive-description {
        font-size: 1rem;
    }

    .sm-lms-lesson-title {
        font-size: 1.75rem;
    }

    .sm-lms-quiz-info-box {
        flex-direction: column;
    }

    .sm-lms-topic-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   LESSON VIEWER (Topic Display)
   ======================================== */

.sm-lms-viewer-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.sm-lms-viewer-header {
    background: #fff;
    border-bottom: 2px solid #e5e5e5;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sm-lms-viewer-breadcrumb {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.sm-lms-viewer-breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.sm-lms-viewer-breadcrumb a:hover {
    text-decoration: underline;
}

.sm-lms-viewer-breadcrumb .separator {
    margin: 0 0.5rem;
    color: #ccc;
}

.sm-lms-viewer-breadcrumb .current {
    color: #333;
    font-weight: 600;
}

.sm-lms-viewer-progress {
    max-width: 400px;
}

.sm-lms-progress-text {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

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

.sm-lms-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    transition: width 0.3s ease;
}

.sm-lms-viewer-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.sm-lms-topic-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sm-lms-topic-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

.sm-lms-topic-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #444;
}

.sm-lms-topic-body h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.sm-lms-topic-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.sm-lms-topic-body p {
    margin-bottom: 1rem;
}

.sm-lms-topic-body ul,
.sm-lms-topic-body ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.sm-lms-topic-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

.sm-lms-topic-navigation {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sm-lms-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e5e5;
}

.sm-lms-nav-buttons .sm-lms-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.sm-lms-nav-buttons .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.sm-lms-viewer-sidebar {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.sm-lms-viewer-sidebar h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.sm-lms-topic-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.sm-lms-topic-list .sm-lms-topic-item {
    margin-bottom: 0.5rem;
}

.sm-lms-topic-list .sm-lms-topic-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    transition: all 0.2s;
}

.sm-lms-topic-list .sm-lms-topic-item a:hover {
    background: #f5f5f5;
    color: #333;
}

.sm-lms-topic-list .sm-lms-topic-item.active a {
    background: #007bff;
    color: #fff;
    font-weight: 600;
}

.sm-lms-topic-list .topic-number {
    font-weight: 600;
    min-width: 24px;
}

.sm-lms-topic-list .topic-title {
    flex: 1;
}

.sm-lms-topic-list .sm-lms-topic-item.active .dashicons {
    color: #fff;
}

.sm-lms-topic-list .sm-lms-quiz-item a {
    background: #f0f9ff;
    border: 1px solid #007bff;
    color: #007bff;
    font-weight: 600;
}

.sm-lms-topic-list .sm-lms-quiz-item a:hover {
    background: #007bff;
    color: #fff;
}

.sm-lms-exit-lesson {
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
}

.sm-lms-exit-lesson .sm-lms-btn {
    width: 100%;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sm-lms-viewer-container {
        grid-template-columns: 1fr;
    }

    .sm-lms-viewer-sidebar {
        position: static;
        max-height: none;
    }

    .sm-lms-topic-content {
        padding: 1.5rem;
    }

    .sm-lms-topic-title {
        font-size: 1.5rem;
    }

    .sm-lms-topic-body {
        font-size: 1rem;
    }
}

/* ========================================
   QUIZ INTERFACE
   ======================================== */

.sm-lms-quiz-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Quiz Header */
.sm-lms-quiz-header {
    margin-bottom: 2rem;
}

.sm-lms-quiz-breadcrumb {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.sm-lms-quiz-breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.sm-lms-quiz-breadcrumb a:hover {
    text-decoration: underline;
}

.sm-lms-quiz-breadcrumb .separator {
    margin: 0 0.5rem;
    color: #999;
}

.sm-lms-quiz-title h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.sm-lms-quiz-meta {
    font-size: 1rem;
    color: #666;
}

.sm-lms-quiz-progress {
    margin-top: 1.5rem;
}

.sm-lms-progress-text {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Quiz Container */
.sm-lms-quiz-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.sm-lms-quiz-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Quiz Instructions */
.sm-lms-quiz-instructions {
    text-align: center;
    padding: 2rem;
}

.sm-lms-quiz-instructions h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.sm-lms-quiz-instructions ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.sm-lms-quiz-instructions li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    color: #555;
}

.sm-lms-quiz-instructions li:last-child {
    border-bottom: none;
}

#start-quiz-btn {
    font-size: 1.125rem;
    padding: 1rem 2rem;
}

/* Question */
.sm-lms-question {
    margin-bottom: 2rem;
}

.sm-lms-question-text {
    font-size: 1.375rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.sm-lms-question-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sm-lms-option {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sm-lms-option:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.sm-lms-option input[type="radio"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.sm-lms-option-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #007bff;
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.sm-lms-option-text {
    font-size: 1rem;
    color: #333;
    flex: 1;
}

.sm-lms-option input[type="radio"]:checked + .sm-lms-option-label {
    background: #28a745;
}

/* Quiz Navigation */
.sm-lms-quiz-navigation {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.sm-lms-quiz-nav-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.sm-lms-quiz-nav-buttons button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sm-lms-quiz-status {
    text-align: center;
    margin-top: 1rem;
}

#quiz-status-text {
    font-size: 0.875rem;
    color: #666;
}

/* Quiz Sidebar */
.sm-lms-quiz-sidebar {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 2rem;
}

.sm-lms-quiz-sidebar h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.sm-lms-question-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.sm-lms-question-nav-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #dee2e6;
    background: #fff;
    border-radius: 4px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sm-lms-question-nav-btn:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.sm-lms-question-nav-btn.current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.sm-lms-question-nav-btn.answered {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

.sm-lms-question-nav-btn.unanswered {
    background: #fff;
    color: #333;
    border-color: #dee2e6;
}

/* Legend */
.sm-lms-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sm-lms-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #555;
}

.sm-lms-legend-box {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 2px solid #dee2e6;
}

.sm-lms-legend-box.current {
    background: #007bff;
    border-color: #007bff;
}

.sm-lms-legend-box.answered {
    background: #28a745;
    border-color: #28a745;
}

.sm-lms-legend-box.unanswered {
    background: #fff;
    border-color: #dee2e6;
}

.sm-lms-quiz-sidebar-info {
    margin-bottom: 2rem;
}

.sm-lms-exit-quiz {
    margin-top: 1.5rem;
}

.sm-lms-exit-quiz .sm-lms-btn {
    width: 100%;
}

/* ========================================
   QUIZ RESULTS
   ======================================== */

.sm-lms-results-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Results Header */
.sm-lms-results-header {
    margin-bottom: 2rem;
}

.sm-lms-results-breadcrumb {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.sm-lms-results-breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.sm-lms-results-breadcrumb a:hover {
    text-decoration: underline;
}

.sm-lms-results-breadcrumb .separator {
    margin: 0 0.5rem;
    color: #999;
}

.sm-lms-results-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

/* Score Summary */
.sm-lms-results-summary {
    margin-bottom: 3rem;
}

.sm-lms-score-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

/* Score Badge */
.sm-lms-score-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-lms-score-circle {
    position: relative;
    width: 180px;
    height: 180px;
}

.sm-lms-score-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.sm-lms-score-ring-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 10;
}

.sm-lms-score-ring-fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 283;
    transition: stroke-dashoffset 1s ease;
}

.sm-lms-score-card.green .sm-lms-score-ring-fill {
    stroke: #28a745;
}

.sm-lms-score-card.yellow .sm-lms-score-ring-fill {
    stroke: #ffc107;
}

.sm-lms-score-card.red .sm-lms-score-ring-fill {
    stroke: #dc3545;
}

.sm-lms-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.sm-lms-score-percentage {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
}

/* Score Details */
.sm-lms-score-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sm-lms-score-title .dashicons {
    font-size: 2rem;
    width: 2rem;
    height: 2rem;
}

.sm-lms-score-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.sm-lms-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sm-lms-stat-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sm-lms-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.sm-lms-stat-value.sm-lms-grade-green {
    color: #28a745;
}

.sm-lms-stat-value.sm-lms-grade-yellow {
    color: #ffc107;
}

.sm-lms-stat-value.sm-lms-grade-red {
    color: #dc3545;
}

.sm-lms-grade-message {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
}

.sm-lms-passing-info {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
}

.sm-lms-passing-info p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: #856404;
}

/* Results Actions */
.sm-lms-results-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Question Review */
.sm-lms-results-review {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sm-lms-results-review h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.sm-lms-review-intro {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

.sm-lms-review-questions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sm-lms-review-question {
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.sm-lms-review-question.correct {
    background: #d4edda;
    border-color: #28a745;
}

.sm-lms-review-question.incorrect {
    background: #f8d7da;
    border-color: #dc3545;
}

.sm-lms-review-question-header h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.sm-lms-question-number {
    font-weight: 600;
}

.sm-lms-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.sm-lms-result-badge.correct {
    background: #28a745;
    color: #fff;
}

.sm-lms-result-badge.incorrect {
    background: #dc3545;
    color: #fff;
}

.sm-lms-result-badge .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

.sm-lms-review-question-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.sm-lms-review-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sm-lms-review-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 6px;
}

.sm-lms-review-option.correct-answer {
    background: #d4edda;
    border-color: #28a745;
}

.sm-lms-review-option.user-wrong-answer {
    background: #f8d7da;
    border-color: #dc3545;
}

.sm-lms-review-option .sm-lms-option-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #6c757d;
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.sm-lms-review-option.correct-answer .sm-lms-option-label {
    background: #28a745;
}

.sm-lms-review-option.user-wrong-answer .sm-lms-option-label {
    background: #dc3545;
}

.sm-lms-review-option .sm-lms-option-text {
    font-size: 1rem;
    color: #333;
    flex: 1;
}

.sm-lms-option-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 1rem;
}

.sm-lms-option-indicator.correct {
    color: #28a745;
}

.sm-lms-option-indicator.wrong {
    color: #dc3545;
}

.sm-lms-option-indicator .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

/* Question Explanation */
.sm-lms-question-explanation {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0f7ff;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.sm-lms-explanation-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #007bff;
    font-size: 0.875rem;
}

.sm-lms-explanation-header .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

.sm-lms-explanation-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #333;
}

/* Results Footer */
.sm-lms-results-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

/* Mobile Responsive - Quiz */
@media (max-width: 992px) {
    .sm-lms-quiz-container {
        grid-template-columns: 1fr;
    }

    .sm-lms-quiz-sidebar {
        position: static;
    }

    .sm-lms-score-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sm-lms-score-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sm-lms-quiz-title h1 {
        font-size: 1.5rem;
    }

    .sm-lms-question-text {
        font-size: 1.125rem;
    }

    .sm-lms-quiz-nav-buttons {
        flex-direction: column;
    }

    .sm-lms-quiz-nav-buttons button {
        width: 100%;
    }

    .sm-lms-results-actions {
        flex-direction: column;
    }

    .sm-lms-results-actions .sm-lms-btn {
        width: 100%;
    }

    .sm-lms-score-circle {
        width: 140px;
        height: 140px;
    }

    .sm-lms-score-percentage {
        font-size: 2.25rem;
    }
}

/* ========================================
   ENHANCED QUESTION TYPES
   ======================================== */

/* Question Images */
.sm-lms-question-image,
.sm-lms-review-question-image {
    margin: 1.5rem 0;
    text-align: center;
}

.sm-lms-question-image img,
.sm-lms-review-question-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Multiple Select Instruction */
.sm-lms-question-instruction {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background: #f0f7ff;
    border-left: 3px solid #2271b1;
    border-radius: 4px;
}

/* Question Type Label in Results */
.sm-lms-question-type-label {
    font-size: 0.875rem;
    color: #2271b1;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    background: #f0f7ff;
    border-radius: 4px;
    display: inline-block;
}

/* Checkbox Styling */
.sm-lms-question-options input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

.sm-lms-question-options input[type="checkbox"]:checked {
    accent-color: #2271b1;
}

/* Mobile responsive adjustments for images */
@media (max-width: 768px) {
    .sm-lms-question-image,
    .sm-lms-review-question-image {
        margin: 1rem 0;
    }
}

/* ========================================
   DASHBOARD / MY LEARNING
   ======================================== */

.sm-lms-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.lms-container {
    width: 100%;
}

/* Dashboard Header */
.lms-dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e5e5e5;
}

.lms-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.lms-welcome {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.lms-quick-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Sections */
.lms-dashboard-section {
    margin-bottom: 4rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-icon {
    font-size: 1.5rem;
}

.section-count {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.section-description {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Lesson Grid (dashboard) */
.lms-lesson-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .lms-lesson-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .lms-lesson-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Lesson Cards (dashboard) */
.lms-lesson-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards fill grid cell */
}

.lms-lesson-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lesson-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    flex-shrink: 0; /* Ensure consistent height */
}

.lesson-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image Placeholder for lessons without featured images */
.lesson-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.placeholder-icon {
    font-size: 4rem;
    opacity: 0.3;
    filter: brightness(2);
}

.lesson-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1; /* Allow content to fill remaining space */
}

/* Locked Lesson Styling */
.locked-card .lesson-image.locked-image img {
    opacity: 0.7;
    filter: grayscale(30%);
}

/* Locked placeholder styling */
.locked-card .lesson-image.locked-image.no-image .lesson-image-placeholder {
    background: linear-gradient(135deg, #999 0%, #777 100%);
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.lock-icon {
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Lesson Badges (dashboard) */
.lesson-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.access-badge,
.difficulty-badge,
.grade-badge,
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-free {
    background: #007bff;
    color: #fff;
}

.badge-pro {
    background: #6f42c1;
    color: #fff;
}

.badge-beginner {
    background: #28a745;
    color: #fff;
}

.badge-intermediate {
    background: #ffc107;
    color: #333;
}

.badge-advanced {
    background: #dc3545;
    color: #fff;
}

/* Grade Badges */
.grade-badge {
    display: inline-block;
    margin-top: 0.5rem;
}

.grade-green {
    background: #28a745;
    color: #fff;
}

.grade-yellow {
    background: #ffc107;
    color: #333;
}

.grade-red {
    background: #dc3545;
    color: #fff;
}

/* Status Badge */
.status-badge {
    background: #6c757d;
    color: #fff;
}

/* Lesson Title (dashboard) */
.lesson-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.lesson-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lesson-title a:hover {
    color: #007bff;
}

/* Lesson Meta (dashboard) */
.lesson-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-icon {
    font-size: 1rem;
}

.pro-only-label {
    color: #6f42c1;
    font-weight: 600;
}

/* Quiz Score Display (dashboard) */
.lesson-quiz-score {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 1rem;
    margin-bottom: 1rem;
    margin-top: auto; /* Push to bottom if no other content */
    border-radius: 4px;
}

.quiz-score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.score-label {
    font-weight: 600;
    color: #333;
}

.score-value {
    font-weight: 700;
    color: #007bff;
    font-size: 1.125rem;
}

.quiz-date {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Quiz Status (dashboard) */
.lesson-quiz-status {
    margin-bottom: 1rem;
}

.status-not-started {
    background: #6c757d;
}

.lesson-quiz-info {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.quiz-available {
    color: #28a745;
    font-weight: 600;
}

/* Lesson Actions (dashboard) */
.lesson-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto; /* Push actions to bottom of card */
    padding-top: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 140px;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
    color: #fff;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #545b62;
    color: #fff;
}

.btn-upgrade {
    background: #6f42c1;
    color: #fff;
}

.btn-upgrade:hover {
    background: #5a32a3;
    color: #fff;
}

.btn-enroll {
    width: 100%;
}

/* Loading/Disabled States */
.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Empty States */
.lms-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.lms-empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.lms-empty-state p {
    font-size: 1rem;
    color: #666;
}

/* Pro Benefits Section */
.pro-benefits {
    margin-top: 1.5rem;
    background: #f8f9fa;
    border: 2px solid #6f42c1;
    border-radius: 8px;
    padding: 1.5rem;
}

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

.benefits-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
    color: #333;
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #6f42c1;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Upgrade CTA Footer */
.upgrade-cta-footer {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
    border-radius: 8px;
    color: #fff;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.link-learn-more {
    display: block;
    color: #fff;
    text-decoration: underline;
    font-size: 0.875rem;
    opacity: 0.9;
}

.link-learn-more:hover {
    opacity: 1;
    color: #fff;
}

/* Enrollment Success Message (Inline Toast) */
.lms-enrollment-success {
    display: inline-block;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background: #28a745;
    color: #fff;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease-in-out;
}

.lms-enrollment-success.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sm-lms-dashboard {
        padding: 1rem 0.5rem;
    }

    .lms-page-title {
        font-size: 2rem;
    }

    .lms-welcome {
        font-size: 1rem;
    }

    .lms-quick-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .lms-lesson-grid {
        gap: 1.5rem;
    }

    .lesson-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .quiz-score-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .lms-enrollment-success {
        display: block;
        margin-left: 0;
        margin-top: 0.75rem;
        text-align: center;
    }
}
