/* FLOARA LMS — curriculum builder, modals, quiz, single course */

/* Single course page tabs */
.nle-course-tab {
    flex-shrink: 0;
    padding: 0.85rem 0.25rem;
    margin: 0;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    font-family: Inter, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(74, 56, 54);
    opacity: 0.65;
    cursor: pointer;
    transition: opacity 0.15s, border-color 0.15s, background 0.15s;
}

.nle-course-tab:hover {
    opacity: 1;
}

.nle-course-tab.is-active {
    opacity: 1;
    border-bottom-color: rgb(74, 56, 54);
    background-color: rgba(74, 56, 54, 0.05);
}

.nle-course-tab-panel {
    display: none;
}

.nle-course-tab-panel.is-active {
    display: block;
}

.nle-course-video-wrap {
    position: relative;
}

.nle-course-video-embed,
.nle-course-video-native {
    width: 100%;
    height: 100%;
    min-height: 220px;
    border: 0;
    display: block;
}

.nle-course-overview p {
    line-height: 1.65;
}

.nle-lms-modal {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.45);
    --nle-sage: #909a78;
    --nle-sage-dark: #7a8464;
}

.nle-lms-modal.is-open {
    display: flex;
}

.nle-lms-modal__panel {
    width: 100%;
    max-width: 640px;
    max-height: min(90vh, 52rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    font-family: Inter, system-ui, sans-serif;
}

.nle-lms-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.nle-lms-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1.25rem;
    -webkit-overflow-scrolling: touch;
}

.nle-lms-modal__footer {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 -4px 16px rgba(74, 56, 54, 0.04);
}

.nle-lms-modal__footer .nle-lms-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 2.5rem;
    padding: 0.5rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 0.5rem;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none !important;
    font-family: Inter, system-ui, sans-serif;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    text-shadow: none;
}

.nle-lms-modal__footer .nle-lms-modal__btn--ghost {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: rgb(74, 56, 54);
}

.nle-lms-modal__footer .nle-lms-modal__btn--ghost:hover {
    background: #f9fafb;
}

.nle-lms-modal__footer .nle-lms-modal__btn--primary {
    border: 0;
    background: var(--nle-sage);
    color: #fff !important;
}

.nle-lms-modal__footer .nle-lms-modal__btn--primary:hover {
    background: var(--nle-sage-dark);
}

.nle-lms-field {
    margin-bottom: 1rem;
}

.nle-lms-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: rgb(74, 56, 54);
    font-family: Inter, system-ui, sans-serif;
    letter-spacing: 0.01em;
}

.nle-lms-field input[type="text"],
.nle-lms-field input[type="url"],
.nle-lms-field input[type="number"],
.nle-lms-field input[type="date"],
.nle-lms-field select,
.nle-lms-field textarea {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #d4d9cb;
    border-radius: 0.625rem;
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    color: rgb(74, 56, 54);
    background: #fff;
    box-shadow: 0 1px 2px rgba(74, 56, 54, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nle-lms-field textarea {
    min-height: 5rem;
    resize: vertical;
}

.nle-lms-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%237a8464' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.25' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
    cursor: pointer;
}

.nle-lms-field input::placeholder,
.nle-lms-field textarea::placeholder {
    color: rgba(74, 56, 54, 0.42);
    font-weight: 400;
}

.nle-lms-field input:hover,
.nle-lms-field select:hover,
.nle-lms-field textarea:hover {
    border-color: #b8c0a8;
}

.nle-lms-field input:focus,
.nle-lms-field select:focus,
.nle-lms-field textarea:focus {
    outline: none;
    border-color: #909a78;
    border-width: 2px;
    padding: calc(0.65rem - 0.5px) calc(0.9rem - 0.5px);
    box-shadow: 0 0 0 4px rgba(144, 154, 120, 0.22);
    background: #fff;
}

.nle-lms-field select:focus {
    padding-right: calc(2.25rem - 0.5px);
}

.nle-lms-lesson-panel {
    display: none;
}

.nle-lms-lesson-panel.is-active {
    display: block;
}

.nle-drag-handle {
    cursor: grab;
    color: #9ca3af;
    padding: 0.25rem;
    flex-shrink: 0;
    user-select: none;
    touch-action: none;
}

.nle-drag-handle:active {
    cursor: grabbing;
}

.nle-curriculum-module.is-dragging,
.nle-curriculum-lesson.is-dragging {
    opacity: 0.5;
}

/* Instructor curriculum page */
.nle-curriculum-hero {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.nle-curriculum-stat {
    display: flex;
    flex-direction: column;
    min-width: 4.5rem;
}

.nle-curriculum-stat__value {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgb(74, 56, 54);
    font-family: 'Flatline Sans', Georgia, serif;
}

.nle-curriculum-stat__label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.65;
    font-family: Inter, sans-serif;
    color: rgb(74, 56, 54);
}

.nle-curriculum-empty {
    background: #f6f6f1;
    font-family: Inter, sans-serif;
    color: rgb(74, 56, 54);
}

.nle-curriculum-module {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fafaf8;
    overflow: hidden;
}

.nle-curriculum-module__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1rem 0.75rem;
    background: #fff;
    border-bottom: 1px solid #eef0e8;
}

.nle-curriculum-lessons {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0.75rem 0.75rem;
    min-height: 2.5rem;
}

.nle-curriculum-lesson {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.35rem;
    background: #fff;
    border: 1px solid #eef0e8;
    border-radius: 0.5rem;
}

.nle-curriculum-lesson__title {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    font-family: Inter, sans-serif;
    color: rgb(74, 56, 54);
}

.nle-lesson-type-badge {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.45rem;
    border-radius: 0.25rem;
    flex-shrink: 0;
}

.nle-lesson-type-badge--video {
    background: #dbeafe;
    color: #1e40af;
}

.nle-lesson-type-badge--text {
    background: #f3f4f6;
    color: #374151;
}

.nle-lesson-type-badge--quiz {
    background: #fef3c7;
    color: #92400e;
}

.nle-curriculum-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-family: Inter, sans-serif;
    border: 1px solid transparent;
}

.nle-curriculum-btn--ghost {
    background: #fff;
    border-color: #e5e7eb;
    color: rgb(74, 56, 54);
}

.nle-curriculum-btn--primary {
    background: #909a78;
    color: #fff;
    border-color: #909a78;
}

.nle-curriculum-btn--danger {
    background: #fff;
    border-color: #fecaca;
    color: #b91c1c;
}

.nle-lms-modal__panel--wide {
    max-width: 720px;
}

.nle-curriculum-module.drag-over {
    outline: 2px dashed #909a78;
    outline-offset: 4px;
}

.nle-curriculum-lessons.drag-over {
    background: #f6f6f1;
    border-radius: 0.5rem;
}

.nle-quiz-q {
    border: 1px solid #e8ebe3;
    border-radius: 0.875rem;
    padding: 1rem;
    margin-bottom: 0.875rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(74, 56, 54, 0.04);
}

.nle-quiz-q__options {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
}

.nle-quiz-q__options li {
    margin-bottom: 0.5rem;
}

.nle-learn-quiz .nle-quiz-result {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: Inter, sans-serif;
}

.nle-learn-quiz .nle-quiz-result.is-pass {
    background: #ecfdf5;
    color: #166534;
}

.nle-learn-quiz .nle-quiz-result.is-fail {
    background: #fef2f2;
    color: #991b1b;
}

.nle-learn-quiz .nle-quiz-result.hidden {
    display: none;
}

.nle-learn-quiz .nle-quiz-result:not(.hidden) {
    display: block;
}

.nle-learn-quiz label.nle-quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.35rem;
}

.nle-learn-quiz label.nle-quiz-option:hover {
    background: #f6f6f1;
}

.nle-learn-quiz label.nle-quiz-option.is-correct {
    background: #ecfdf5;
    border: 1px solid #86efac;
}

.nle-learn-quiz label.nle-quiz-option.is-wrong {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.nle-learn-quiz label.nle-quiz-option.is-answer-key {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    box-shadow: inset 3px 0 0 #22c55e;
}

.nle-learn-quiz label.nle-quiz-option.is-answer-key.is-wrong {
    box-shadow: inset 3px 0 0 #22c55e;
}

.nle-quiz-q-status {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: Inter, system-ui, sans-serif;
}

.nle-quiz-q-status.is-pass {
    color: #166534;
}

.nle-quiz-q-status.is-fail {
    color: #991b1b;
}

.nle-quiz-result__detail {
    font-weight: 500;
    font-size: 0.8125rem;
}

.nle-quiz-result__redirect {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    opacity: 0.85;
}

.nle-curriculum-save-status {
    font-size: 0.75rem;
    color: #909a78;
    font-family: Inter, sans-serif;
}

#nle-drip-days-wrap.hidden,
#nle-drip-date-wrap.hidden {
    display: none;
}

.nle-stripe-checkout {
    width: 100%;
}

#nle-stripe-error.hidden {
    display: none;
}

/* Phase 4: Lesson Q&A */
.nle-lesson-qa .nle-qa-item {
    background: #fafaf8;
}

.nle-lesson-qa .nle-qa-replies {
    margin-top: 0.75rem;
}

.nle-lesson-qa .nle-qa-empty {
    padding: 1rem;
    text-align: center;
    background: #f6f6f1;
    border-radius: 0.5rem;
}

@media print {
    body.nle-certificate-view #navbar,
    body.nle-certificate-view nav#navbar,
    body.nle-certificate-view footer {
        display: none !important;
    }
}

/* Learn player layout (do not rely on Tailwind purge for critical flex rules) */
.nle-learn-shell {
    max-width: 90rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem 1rem;
}

.nle-learn-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.nle-learn-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nle-learn-main {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.nle-learn-sidebar {
    width: 100%;
    flex-shrink: 0;
}

.nle-learn-sidebar-inner {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
}

.nle-learn-playlist {
    display: flex;
    flex-direction: column;
    max-height: none;
}

.nle-learn-playlist__head {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.nle-learn-playlist__eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #909a78;
    font-family: Inter, system-ui, sans-serif;
}

.nle-learn-playlist__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    color: rgb(74, 56, 54);
    font-family: 'Flatline Sans', Georgia, serif;
}

.nle-learn-playlist__meta {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: rgb(74, 56, 54);
    opacity: 0.72;
    font-family: Inter, system-ui, sans-serif;
}

.nle-learn-playlist__list {
    overflow-y: auto;
    overscroll-behavior: contain;
}

.nle-learn-playlist__section {
    margin: 0;
    padding: 0.625rem 1rem 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgb(74, 56, 54);
    opacity: 0.65;
    background: #fafaf8;
    border-top: 1px solid #eef0e8;
    font-family: Inter, system-ui, sans-serif;
}

.nle-learn-playlist__section:first-child {
    border-top: 0;
}

.nle-learn-playlist__item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem 0.875rem;
    border-left: 3px solid transparent;
    color: rgb(74, 56, 54);
    text-decoration: none !important;
    transition: background 0.15s ease;
    font-family: Inter, system-ui, sans-serif;
}

.nle-learn-playlist__item:hover:not(.is-locked) {
    background: #f6f6f1;
}

.nle-learn-playlist__item.is-active {
    background: #eef0e8;
    border-left-color: #909a78;
}

.nle-learn-playlist__item.is-locked {
    opacity: 0.58;
    cursor: not-allowed;
}

.nle-learn-playlist__index {
    flex: 0 0 1.125rem;
    margin-top: 0.125rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: rgb(74, 56, 54);
    opacity: 0.55;
    text-align: center;
}

.nle-learn-playlist__item.is-active .nle-learn-playlist__index {
    opacity: 0;
    width: 0;
    flex-basis: 0;
    overflow: hidden;
}

.nle-learn-playlist__icon {
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: #eef0e8 center / 1rem no-repeat;
}

.nle-learn-playlist__item.is-active .nle-learn-playlist__icon {
    background-color: #909a78;
}

.nle-learn-playlist__icon--video {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23909a78' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
}

.nle-learn-playlist__item.is-active .nle-learn-playlist__icon--video {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
}

.nle-learn-playlist__icon--quiz {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23909a78' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
}

.nle-learn-playlist__item.is-active .nle-learn-playlist__icon--quiz {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
}

.nle-learn-playlist__icon--assignment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23909a78' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'/%3E%3C/svg%3E");
}

.nle-learn-playlist__item.is-active .nle-learn-playlist__icon--assignment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'/%3E%3C/svg%3E");
}

.nle-learn-playlist__icon--text {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23909a78' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 6h16M4 12h16M4 18h7'/%3E%3C/svg%3E");
}

.nle-learn-playlist__item.is-active .nle-learn-playlist__icon--text {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 6h16M4 12h16M4 18h7'/%3E%3C/svg%3E");
}

.nle-learn-playlist__body {
    flex: 1 1 auto;
    min-width: 0;
}

.nle-learn-playlist__name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: rgb(74, 56, 54);
}

.nle-learn-playlist__sub {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.6875rem;
    line-height: 1.35;
    color: rgb(74, 56, 54);
    opacity: 0.68;
}

.nle-learn-playlist__item.is-active .nle-learn-playlist__name,
.nle-learn-playlist__item.is-active .nle-learn-playlist__sub {
    color: rgb(74, 56, 54);
}

.nle-learn-playlist__check {
    flex: 0 0 auto;
    margin-top: 0.125rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #909a78;
}

.nle-learn-locked {
    background: #fff;
    border: 1px solid #fde68a;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.nle-learn-locked p {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.nle-learn-video {
    aspect-ratio: 16 / 9;
    background: #000;
}

.nle-learn-video iframe,
.nle-learn-video video {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.nle-learn-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.nle-learn-actions--footer {
    justify-content: flex-start;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.nle-learn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    font-family: Inter, system-ui, sans-serif;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.nle-learn-btn--primary {
    background: #909a78;
    border-color: #909a78;
    color: #fff !important;
}

.nle-learn-btn--primary:hover:not(.is-disabled) {
    background: #7a8464;
    border-color: #7a8464;
}

.nle-learn-btn--ghost {
    background: #fff;
    border-color: #dcded6;
    color: rgb(74, 56, 54) !important;
}

.nle-learn-btn--ghost:hover {
    background: #f6f6f1;
}

.nle-learn-btn.is-disabled,
.nle-learn-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .nle-learn-header__progress {
        display: none;
    }
}

@media (min-width: 1024px) {
    .nle-learn-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .nle-learn-main {
        flex: 1 1 0;
        min-width: 0;
    }

    .nle-learn-sidebar {
        width: 22rem;
        flex: 0 0 22rem;
        position: sticky;
        top: 6.5rem;
    }

    .nle-learn-playlist {
        max-height: calc(100vh - 7rem);
    }

    .nle-learn-playlist__list {
        max-height: calc(100vh - 12.5rem);
    }

    .nle-learn-curriculum {
        max-height: calc(100vh - 7rem);
    }

    .nle-learn-curriculum__list {
        max-height: calc(100vh - 15rem);
    }
}

/* Secure lesson video player */
.nle-secure-player {
    position: relative;
    background: #111;
}

.nle-secure-player__notice {
    padding: 0.625rem 0.875rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: rgb(74, 56, 54);
    background: #fff8e6;
    border-bottom: 1px solid #f3e8c3;
    font-family: Inter, system-ui, sans-serif;
}

.nle-secure-player__frame-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.nle-secure-player__video,
.nle-secure-player__frame-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.nle-secure-player__shield {
    position: absolute;
    inset: auto 0 0 0;
    height: 38%;
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.2s ease;
    opacity: 0;
    background: linear-gradient(to top, rgba(246, 246, 241, 0.98), rgba(246, 246, 241, 0));
}

.nle-secure-player__shield.is-active {
    opacity: 1;
    pointer-events: auto;
}

.nle-secure-player__end-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: rgba(246, 246, 241, 0.96);
    color: rgb(74, 56, 54);
    font-family: Inter, system-ui, sans-serif;
    text-align: center;
}

.nle-secure-player__end-cover[hidden] {
    display: none !important;
}

.nle-secure-player__end-cover p {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Flatline Sans', Georgia, serif;
}

.nle-secure-player__end-cover span {
    font-size: 0.8125rem;
    opacity: 0.75;
}

.nle-secure-player__watermark {
    display: none;
}

.nle-secure-player__forensic {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.nle-secure-player__mark {
    position: absolute;
    padding: 0.2rem 0.55rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.42);
    background: rgba(0, 0, 0, 0.18);
    border-radius: 0.25rem;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    animation: nle-forensic-float 18s linear infinite;
}

.nle-secure-player__mark--0 {
    top: 12%;
    left: 8%;
    animation-duration: 16s;
}

.nle-secure-player__mark--1 {
    top: 58%;
    left: 18%;
    animation-duration: 22s;
    animation-delay: -4s;
}

.nle-secure-player__mark--2 {
    top: 28%;
    left: 52%;
    animation-duration: 19s;
    animation-delay: -8s;
}

.nle-secure-player__mark--3 {
    top: 72%;
    left: 46%;
    animation-duration: 24s;
    animation-delay: -2s;
}

.nle-secure-player__mark-pattern {
    position: absolute;
    inset: -20%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1rem;
    transform: rotate(-24deg);
    opacity: 0.16;
}

.nle-secure-player__mark-pattern span {
    font-size: 0.625rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes nle-forensic-float {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(12px, -8px);
    }
    50% {
        transform: translate(-6px, 10px);
    }
    75% {
        transform: translate(8px, 6px);
    }
    100% {
        transform: translate(0, 0);
    }
}

.nle-secure-player__focus-guard {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1rem;
    text-align: center;
    color: #fff;
    background: rgba(20, 18, 17, 0.94);
    backdrop-filter: blur(8px);
}

.nle-secure-player__focus-guard[hidden] {
    display: none !important;
}

.nle-secure-player__focus-guard p {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Flatline Sans', Georgia, serif;
}

.nle-secure-player__focus-guard span {
    font-size: 0.8125rem;
    opacity: 0.82;
    font-family: Inter, system-ui, sans-serif;
}

.nle-secure-player.is-playback-blocked .nle-secure-player__video,
.nle-secure-player.is-playback-blocked iframe {
    filter: blur(18px) brightness(0.35);
}

.nle-secure-player__legal {
    margin: 0;
    padding: 0.625rem 0.875rem;
    font-size: 0.6875rem;
    line-height: 1.45;
    color: rgb(74, 56, 54);
    opacity: 0.75;
    background: #fafaf8;
    border-top: 1px solid #e8ebe3;
    font-family: Inter, system-ui, sans-serif;
}

.nle-learn--protected {
    -webkit-user-select: none;
    user-select: none;
}

.nle-learn--protected img,
.nle-learn--protected video,
.nle-learn--protected iframe {
    -webkit-user-drag: none;
    user-drag: none;
}

@media print {
    .nle-learn--protected,
    .nle-learn--protected * {
        display: none !important;
    }
}

.nle-secure-player__error {
    padding: 1rem;
    font-size: 0.875rem;
    color: rgb(74, 56, 54);
}

/* Custom course curriculum sidebar */
.nle-learn-curriculum {
    display: flex;
    flex-direction: column;
}

.nle-learn-curriculum__head {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid #e8ebe3;
    background: linear-gradient(180deg, #fff 0%, #fafaf8 100%);
}

.nle-learn-curriculum__thumb {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.625rem;
    object-fit: cover;
    flex-shrink: 0;
}

.nle-learn-curriculum__head-body {
    min-width: 0;
    flex: 1;
}

.nle-learn-curriculum__label {
    margin: 0 0 0.15rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #909a78;
    font-family: Inter, system-ui, sans-serif;
}

.nle-learn-curriculum__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    color: rgb(74, 56, 54);
    font-family: 'Flatline Sans', Georgia, serif;
}

.nle-learn-curriculum__meta {
    margin: 0.2rem 0 0.55rem;
    font-size: 0.75rem;
    color: rgb(74, 56, 54);
    opacity: 0.7;
    font-family: Inter, system-ui, sans-serif;
}

.nle-learn-curriculum__progress {
    height: 0.35rem;
    border-radius: 999px;
    background: #eef0e8;
    overflow: hidden;
}

.nle-learn-curriculum__progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #909a78, #7a8464);
    transition: width 0.25s ease;
}

.nle-learn-curriculum__progress-text {
    margin: 0.35rem 0 0;
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgb(74, 56, 54);
    opacity: 0.75;
    font-family: Inter, system-ui, sans-serif;
}

.nle-learn-curriculum__list {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.5rem;
}

.nle-learn-curriculum__section {
    margin-bottom: 0.5rem;
    border: 1px solid #e8ebe3;
    border-radius: 0.75rem;
    background: #fff;
    overflow: hidden;
}

.nle-learn-curriculum__section.is-open {
    box-shadow: 0 4px 14px rgba(74, 56, 54, 0.05);
}

.nle-learn-curriculum__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 0;
    background: #fafaf8;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
    font-family: Inter, system-ui, sans-serif;
}

.nle-learn-curriculum__toggle:hover {
    background: #f3f4ef;
}

.nle-learn-curriculum__section.is-open .nle-learn-curriculum__toggle {
    background: #eef0e8;
    border-bottom: 1px solid #e8ebe3;
}

.nle-learn-curriculum__toggle-text {
    flex: 1;
    min-width: 0;
}

.nle-learn-curriculum__toggle-title {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgb(74, 56, 54);
    line-height: 1.35;
}

.nle-learn-curriculum__toggle-meta {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.625rem;
    font-weight: 600;
    color: rgb(74, 56, 54);
    opacity: 0.62;
}

.nle-learn-curriculum__chevron {
    flex: 0 0 auto;
    display: inline-flex;
    color: #909a78;
    transition: transform 0.2s ease;
}

.nle-learn-curriculum__section.is-open .nle-learn-curriculum__chevron {
    transform: rotate(180deg);
}

.nle-learn-curriculum__panel {
    padding: 0.25rem 0;
}

.nle-learn-curriculum__panel[hidden] {
    display: none;
}

.nle-learn-curriculum__module {
    margin: 0;
    padding: 0.75rem 1rem 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgb(74, 56, 54);
    opacity: 0.62;
    font-family: Inter, system-ui, sans-serif;
}

.nle-learn-curriculum__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0.35rem;
    padding: 0.65rem 0.75rem;
    border-left: 3px solid transparent;
    border-radius: 0.5rem;
    color: rgb(74, 56, 54);
    text-decoration: none !important;
    transition: background 0.15s ease;
    font-family: Inter, system-ui, sans-serif;
}

.nle-learn-curriculum__item:hover:not(.is-locked) {
    background: #f6f6f1;
}

.nle-learn-curriculum__item.is-current {
    background: #eef0e8;
    border-left-color: #909a78;
}

.nle-learn-curriculum__item.is-locked {
    opacity: 0.55;
}

.nle-learn-curriculum__num {
    flex: 0 0 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    background: #eef0e8;
    color: rgb(74, 56, 54);
}

.nle-learn-curriculum__item.is-current .nle-learn-curriculum__num {
    background: #909a78;
    color: #fff;
}

.nle-learn-curriculum__item.is-done .nle-learn-curriculum__num {
    background: #dce3d0;
}

.nle-learn-curriculum__content {
    flex: 1;
    min-width: 0;
}

.nle-learn-curriculum__name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
}

.nle-learn-curriculum__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.2rem;
}

.nle-learn-curriculum__tag {
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: #f3f4ef;
    color: rgb(74, 56, 54);
    opacity: 0.85;
}

.nle-learn-curriculum__status {
    flex: 0 0 auto;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #909a78;
}

.nle-lesson-video-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.nle-lesson-video-upload .hidden {
    display: none !important;
}

.nle-lesson-video-upload__name {
    margin: 0;
    width: 100%;
    font-size: 0.75rem;
    color: rgb(74, 56, 54);
    opacity: 0.8;
}
