/* LMS shared styles: learner + admin */

:root {
    --lms-bg: #f9f1ea;
    --lms-surface: #ffffff;
    --lms-border: #e6dbd0;
    --lms-text: #1f1f1f;
    --lms-muted: #6b6470;
    --lms-primary: #1f1f1f;
    --lms-primary-hover: #343434;
    --lms-success: #157347;
    --lms-danger: #b42318;
    --lms-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    --lms-radius: 16px;
}

html {
    scrollbar-gutter: stable;
}

.lms-page,
.lms-admin-page {
    background: var(--lms-bg);
    color: var(--lms-text);
}

.lms-shell {
    max-width: 1220px;
    margin: 0 auto;
    padding: 28px 24px 48px;
    display: grid;
    gap: 18px;
}

.lms-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

.lms-topbar .lms-inline {
    width: auto;
    margin-left: auto;
}

.lms-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
}

.lms-brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.lms-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.lms-title {
    margin: 0;
    font-size: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
    line-height: 1.15;
}

.lms-subtitle {
    margin-top: 6px;
    color: var(--lms-muted);
}

.lms-card {
    background: var(--lms-surface);
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius);
    padding: 16px;
    box-shadow: var(--lms-shadow);
}

.lms-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.lms-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.lms-inline > .lms-input,
.lms-inline > .lms-select,
.lms-inline > .lms-textarea {
    flex: 1 1 auto;
    min-width: 0;
}

.lms-inline > .lms-button,
.lms-inline > .lms-button-auto,
.lms-inline > .lms-button.secondary {
    flex: 0 0 auto;
}

.lms-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 12px;
}

.lms-muted {
    color: var(--lms-muted);
    font-size: 0.95rem;
}

.lms-button {
    appearance: none;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    background: #3b82f6;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.lms-button:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.lms-button:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
}

.lms-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.lms-button.secondary {
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.lms-button.secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.lms-button-auto {
    width: auto;
}

.lms-button-nowrap {
    white-space: nowrap;
}

.lms-button-subtle {
    border-style: dashed;
}

.lms-button-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.lms-button-danger-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    min-width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    color: #dc2626;
    border: 1px solid #fca5a5;
    background: transparent;
}

.lms-button-danger-icon:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #b91c1c;
}

.lms-input,
.lms-textarea,
.lms-select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 12px;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lms-textarea {
    resize: vertical;
    min-height: 130px;
}

.lms-textarea-compact {
    min-height: 90px;
}

.lms-input:focus,
.lms-textarea:focus,
.lms-select:focus,
.lms-rich-editor:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.lms-input.error,
.lms-textarea.error,
.lms-select.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.lms-input.success,
.lms-textarea.success,
.lms-select.success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.lms-list {
    display: grid;
    gap: 10px;
}

.lms-item {
    border: 1px solid var(--lms-border);
    background: #fff;
    border-radius: 12px;
    padding: 10px;
}

/* Library page */

.lms-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.lms-library-card {
    position: relative;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.lms-library-card:hover,
.lms-library-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(31, 31, 31, 0.12);
}

.lms-library-card-content {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.lms-library-progress-top {
    height: 5px;
    background: #ece6df;
}

.lms-library-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #159b58, #3bc878);
}

.lms-library-thumb-wrap {
    background: #f5efe8;
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.lms-library-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lms-library-thumb-placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)),
        linear-gradient(135deg, #ecdfd2, #f6ede4);
}

.lms-library-action-btn {
    width: auto;
}

/* Learner course page */

.lms-course-page .lms-shell {
    max-width: 1360px;
    padding-top: 18px;
}

.lms-course-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    text-decoration: none;
    color: var(--lms-muted);
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: 999px;
    padding: 6px 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.lms-course-back-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.lms-course-back-link:hover {
    text-decoration: none;
    background: #f5efe8;
    color: var(--lms-text);
}

.lms-course-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-top: 10px;
}

.lms-course-sidebar-header {
    display: block;
    margin-bottom: 12px;
}

.lms-course-sidebar-header .lms-title {
    font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.45rem);
}

.lms-course-sidebar-header .lms-subtitle {
    margin-top: 4px;
    font-size: 0.85rem;
}

.lms-course-progress-track {
    height: 7px;
    margin-top: 10px;
}

.lms-course-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.74rem;
    line-height: 1.15;
    margin-top: 7px;
}

.lms-course-progress-meta .lms-muted {
    font-size: inherit;
}

.lms-course-nav-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.lms-course-module-list {
    gap: 0;
    border: 1px solid var(--lms-border);
    border-radius: 12px;
    overflow: hidden;
}

.lms-course-module-list .lms-module-nav {
    border: 0;
    border-radius: 0;
}

.lms-lesson-panel {
    min-height: 460px;
    min-width: 0;
    padding: 24px;
}

.lms-lesson-toolbar {
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
}

.lms-lesson-toolbar .lms-inline {
    align-items: flex-start;
    flex-wrap: nowrap;
    margin-left: auto;
    width: auto;
    flex: 0 0 auto;
}

#activeLessonTitle {
    min-width: 0;
    line-height: 1.2;
}

.lms-module-nav {
    border: 1px solid var(--lms-border);
    border-radius: 12px;
    overflow: hidden;
}

.lms-module-toggle {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--lms-border);
    border-top: 1px solid var(--lms-border);
    background: #faf7f3;
    color: var(--lms-text);
    text-align: left;
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background-color 0.15s ease;
}

.lms-module-toggle:hover,
.lms-module-toggle:focus-visible {
    background: #f6f0e8;
}

.lms-course-module-list .lms-module-nav:first-child .lms-module-toggle {
    border-top: 0;
}

.lms-course-module-list .lms-module-nav:last-child .lms-module-toggle[aria-expanded="false"] {
    border-bottom: 0;
}

.lms-module-toggle-main {
    display: grid;
    gap: 2px;
}

.lms-module-toggle-title {
    font-weight: 600;
}

.lms-module-toggle-meta {
    font-size: 0.84rem;
    color: var(--lms-muted);
}

.lms-module-toggle-chevron {
    color: var(--lms-muted);
    font-size: 0.95rem;
    line-height: 1;
}

.lms-module-lessons {
    display: none;
    padding: 0;
    background: #fff;
}

.lms-module-lessons.open {
    display: block;
}

.lms-lesson-nav-item {
    width: 100%;
    border: 0;
    border-radius: 0;
    background: #fff;
    padding: 11px 12px;
    cursor: pointer;
    color: var(--lms-text);
    transition: background-color 0.15s ease;
}

.lms-lesson-nav-item + .lms-lesson-nav-item {
    border-top: 1px solid var(--lms-border);
}

.lms-lesson-nav-item:hover,
.lms-lesson-nav-item:focus-visible {
    background: #f9f5ef;
}

.lms-lesson-nav-item.active {
    background: #eafaf1;
}

.lms-complete-tag {
    font-size: 0.78rem;
    color: var(--lms-success);
    font-weight: 600;
}

.lms-complete-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--lms-success);
    flex-shrink: 0;
}

.lms-complete-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.lms-progress-track {
    height: 9px;
    border-radius: 999px;
    background: #ece6df;
    overflow: hidden;
}

.lms-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #159b58, #3bc878);
}

.lms-video-wrapper {
    width: 100%;
    min-width: 0;
}

.lms-course-page .lms-video-wrapper {
    border-radius: 14px;
    overflow: hidden;
}

.lms-video-frame {
    border: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
}

.lms-lesson-text {
    padding: 2px;
}

.lms-lesson-copy {
    padding: 14px;
    background: #fff;
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.lms-lesson-copy h2,
.lms-lesson-copy h3,
.lms-lesson-copy h4 {
    margin: 0 0 8px;
}

.lms-lesson-copy p,
.lms-lesson-copy ul,
.lms-lesson-copy ol {
    margin: 0 0 10px;
}

.lms-lesson-copy img,
.lms-lesson-copy video,
.lms-lesson-copy iframe,
.lms-lesson-copy embed,
.lms-lesson-copy object {
    max-width: 100%;
    height: auto;
}

.lms-lesson-copy table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.lms-lesson-resources {
    display: grid;
    gap: 8px;
}

.lms-resource-panel {
    border: 1px solid var(--lms-border);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.lms-resource-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
}

/* Admin page */

.lms-admin-page .main {
    padding: 24px;
}

.lms-admin-container {
    max-width: 1300px;
    margin: 0 auto;
}

.dfy-container.lms-admin-container {
    display: grid;
    gap: 14px;
}

.dfy-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.dfy-title {
    margin: 0;
    font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
}

.dfy-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dfy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--lms-border);
    border-radius: 999px;
    padding: 9px 14px;
    text-decoration: none;
    color: var(--lms-text);
    background: #fff;
    font-weight: 600;
}

.dfy-btn:hover {
    background: #f5f0eb;
}

.dfy-btn-secondary {
    border-color: var(--lms-border);
}

.lms-admin-subtitle {
    margin-top: 4px;
}

.summary-cards {
    margin-top: 16px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.summary-card {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 12px;
    padding: 12px;
}

.summary-card-label {
    color: var(--lms-muted);
    font-size: 0.82rem;
}

.summary-card-value {
    font-size: 1.45rem;
    font-weight: 700;
}

.summary-card-value.highlight {
    color: var(--lms-success);
}

.lms-admin-layout {
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.lms-admin-courses-header-actions {
    width: auto;
    gap: 10px;
}

.lms-courses-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    border: 1px solid var(--lms-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.lms-course-list-empty {
    padding: 14px 16px;
}

.lms-course-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) auto repeat(3, minmax(72px, auto)) auto;
    gap: 12px;
    align-items: center;
    border-top: 1px solid var(--lms-border);
    padding: 12px 14px;
}

.lms-course-list-item:first-child {
    border-top: 0;
}

.lms-course-list-item.active {
    background: #fcf8f4;
}

.lms-course-list-main {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.lms-course-list-heading {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.lms-course-list-title {
    margin: 0;
    font-size: 1rem;
    min-width: 0;
}

.lms-course-list-description {
    margin: 0;
}

.lms-course-list-status {
    display: flex;
    justify-content: flex-start;
}

.lms-course-list-stat {
    min-width: 72px;
    display: grid;
    justify-items: center;
    gap: 2px;
    color: var(--lms-muted);
    font-size: 0.82rem;
}

.lms-course-list-stat strong {
    font-size: 0.95rem;
    color: var(--lms-text);
}

.lms-course-list-stat-label {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lms-course-list-actions {
    width: auto;
    justify-content: flex-end;
}

.lms-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 12, 9, 0.52);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.lms-modal {
    width: min(620px, 100%);
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
    display: grid;
    gap: 12px;
}

.lms-enrollments-table-wrap {
    border: 1px solid var(--lms-border);
    border-radius: 12px;
    overflow: auto;
    max-height: 560px;
    background: #fff;
}

.lms-enrollments-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    font-size: 0.92rem;
}

.lms-enrollments-table thead th {
    position: sticky;
    top: 0;
    background: #faf7f3;
    color: var(--lms-muted);
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--lms-border);
    padding: 10px 12px;
    z-index: 2;
}

.lms-enrollments-table tbody td {
    border-bottom: 1px solid var(--lms-border);
    padding: 10px 12px;
    vertical-align: middle;
}

.lms-enrollments-table tbody tr:last-child td {
    border-bottom: none;
}

.lms-enrollment-row {
    cursor: pointer;
    transition: background 0.15s ease;
}

.lms-enrollment-row:hover,
.lms-enrollment-row:focus-within {
    background: #f9f5ef;
}

.lms-enrollment-learner-name {
    font-weight: 600;
}

.lms-enrollment-progress-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
}

.lms-enrollment-progress-cell .lms-progress-track {
    width: 110px;
}

.lms-enrollment-actions {
    width: auto;
    gap: 6px;
}

.lms-enrollment-progress-modal {
    width: min(860px, 100%);
    max-height: min(86vh, 900px);
}

.lms-enrollment-progress-modal #enrollmentProgressModalBody {
    overflow: auto;
    padding-right: 4px;
}

.lms-enrollment-progress-module {
    border: 1px solid var(--lms-border);
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.lms-enrollment-progress-lesson {
    border: 1px solid var(--lms-border);
    border-radius: 10px;
    background: #faf7f3;
    padding: 10px;
    display: grid;
    gap: 8px;
}

.lms-enrollment-progress-lesson-percent {
    font-weight: 700;
    color: #105f39;
}

.lms-course-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.lms-course-stat {
    border: 1px solid var(--lms-border);
    border-radius: 10px;
    padding: 8px;
    text-align: center;
    background: #fff;
}

.lms-course-stat-label {
    color: var(--lms-muted);
    font-size: 0.78rem;
}

.lms-course-stat-value {
    font-weight: 700;
}

.lms-workspace {
    margin-top: 16px;
    min-width: 0;
}

.lms-workspace-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lms-workspace-tab {
    border: 1px solid var(--lms-border);
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    color: var(--lms-text);
}

.lms-workspace-tab.active {
    background: var(--lms-primary);
    color: #fff;
    border-color: var(--lms-primary);
}

.lms-tab-panel {
    display: none;
}

.lms-tab-panel.active {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.lms-curriculum-workspace {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
}

.lms-curriculum-sidebar,
.lms-curriculum-main {
    min-height: 400px;
    min-width: 0;
}

.lms-curriculum-sidebar h3,
.lms-curriculum-main h3,
#moduleDetailsPanel .lms-muted,
#moduleDetailsPlaceholder {
    margin: 0;
}

.lms-module-card.dragging,
.lms-lesson-item.dragging {
    opacity: 0.45;
}

.lms-module-card > .lms-row:first-child {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--lms-border);
    margin-bottom: 8px;
}

.lms-module-card [data-select-module].lms-button.secondary {
    border: none;
    background: transparent;
    padding: 0;
    min-height: 0;
    border-radius: 0;
    font-weight: 700;
    text-align: left;
    justify-content: flex-start;
}

.lms-module-card [data-select-module].lms-button.secondary:hover {
    background: transparent;
    transform: none;
    text-decoration: underline;
}

.lms-lesson-dropzone {
    min-height: 10px;
}

.lms-lesson-item {
    cursor: pointer;
    border: none;
    border-radius: 0;
    background: transparent;
    border-top: 1px solid var(--lms-border);
    padding: 10px 0;
}

.lms-lesson-item.active {
    background: #f6efe8;
    border-radius: 8px;
    border-top-color: transparent;
    padding: 10px;
}

.lms-lesson-row-title {
    font-weight: 600;
}

.lms-module-card .lms-overview-delete-btn.lms-button-danger-icon {
    background: transparent;
    border: none;
    min-width: 0;
    padding: 4px;
}

.lms-module-card .lms-overview-delete-btn.lms-button-danger-icon:hover {
    background: transparent;
}

.lms-section-title {
    margin: 0;
}

.lms-resource-editor {
    border: 1px solid var(--lms-border);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    display: grid;
    min-width: 0;
    max-width: 100%;
    gap: 10px;
}

.lms-resource-row {
    display: grid;
    gap: 8px;
}

.lms-link-row-inline {
    width: 100%;
}

.lms-course-thumbnail-preview {
    border: 1px dashed var(--lms-border);
    border-radius: 12px;
    min-height: 160px;
    display: grid;
    place-items: center;
    background: #faf7f3;
    overflow: hidden;
}

.lms-course-thumbnail-preview-img {
    display: none;
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.lms-rich-editor-wrap {
    gap: 8px;
}

.lms-rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lms-rich-btn {
    border: 1px solid var(--lms-border);
    border-radius: 8px;
    background: #fff;
    padding: 6px 9px;
    cursor: pointer;
}

.lms-rich-btn:hover {
    background: #f5f0eb;
}

.lms-rich-editor {
    min-height: 220px;
    border: 1px solid var(--lms-border);
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lms-rich-editor * {
    max-width: 100%;
}

.lms-rich-editor img,
.lms-rich-editor video,
.lms-rich-editor iframe,
.lms-rich-editor embed,
.lms-rich-editor object {
    max-width: 100%;
    height: auto;
}

.lms-rich-editor table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.lms-duration-field {
    flex: 0 1 230px;
    min-width: 0;
    max-width: 280px;
}

.lms-duration-field .lms-muted {
    display: block;
    margin-bottom: 6px;
}

.lms-lesson-preview-card {
    border: 1px solid var(--lms-border);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.lms-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid var(--lms-border);
    text-transform: capitalize;
}

.lms-status-pill.draft {
    color: #8a5d16;
    background: #fff8e9;
    border-color: #efd7aa;
}

.lms-status-pill.published,
.lms-status-pill.active {
    color: #146c43;
    background: #eafaf1;
    border-color: #bfe8ce;
}

.lms-status-pill.archived {
    color: #57606a;
    background: #f2f4f8;
}

@media (max-width: 1100px) {
    .lms-course-layout,
    .lms-admin-layout,
    .lms-curriculum-workspace {
        grid-template-columns: 1fr;
    }

    .lms-admin-page .main {
        padding: 14px;
    }
}

@media (max-width: 760px) {
    .lms-shell {
        padding: 18px 14px 36px;
    }

    .lms-topbar {
        flex-wrap: wrap;
    }

    .lms-topbar .lms-inline {
        width: 100%;
        margin-left: 0;
    }

    .lms-row,
    .lms-inline {
        flex-wrap: wrap;
    }

    .lms-lesson-toolbar {
        flex-wrap: wrap;
    }

    .lms-lesson-toolbar .lms-inline {
        margin-left: 0;
    }

    .lms-course-list-item {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 8px;
    }

    .lms-course-list-status {
        justify-content: flex-start;
    }

    .lms-course-list-stat {
        width: 100%;
        grid-template-columns: auto auto;
        justify-content: flex-start;
        justify-items: start;
        gap: 8px;
    }

    .lms-course-list-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .lms-admin-courses-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .lms-duration-field {
        min-width: 0;
        width: 100%;
    }
}
