/* LMS Core - Frontend */

/* Hide theme entry title / page header on LMS pages (we use our own headings) */
body.lms-page .page-header,
body.lms-page .entry-header,
body.lms-page .entry-title,
body.lms-page .site-main .entry-title,
body.lms-page main .page-header {
    display: none !important;
}

/* Override theme max-width on LMS pages so content can use full viewport */
body.lms-page .site-main,
body.lms-page .site-main .entry-content,
body.lms-page .site-content {
    max-width: 100vw !important;
    width: 100% !important;
}

/* Shared gradient #245c51 – used by dashboard, my-courses, course-list heroes and progress bars */
body.lms-page {
    --lms-gradient-hero: linear-gradient(135deg, #245c51 0%, #1a453d 50%, #163d35 100%);
    --lms-gradient-bar: linear-gradient(90deg, #245c51 0%, #1a453d 100%);
}

/* Course details page */
.lms-course-details--modern .lms-course-details-hero {
    background: var(--lms-gradient-hero);
    color: #fff;
    border-radius: var(--lms-radius);
    padding: 1.25rem 1.25rem;
    margin-bottom: 1rem;
}
.lms-course-details-hero-inner {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: space-between;
}
.lms-course-details-title {
    margin: 0 0 0.35rem;
    font-size: 1.6rem;
    font-weight: 700;
}
.lms-course-details-subtitle {
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
}
.lms-course-details-actions {
    margin-top: 0.85rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.lms-course-details-hero-thumb img {
    width: 220px;
    max-width: 32vw;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.25);
    display: block;
}
.lms-course-details-card {
    background: var(--lms-card);
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius);
    box-shadow: var(--lms-shadow);
    padding: 1rem 1.25rem;
}
.lms-course-details-card-title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lms-text);
}
.lms-course-details-content {
    color: var(--lms-text);
    line-height: 1.7;
}
.lms-course-details-content p {
    margin-top: 0;
}
@media (max-width: 768px) {
    .lms-course-details-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .lms-course-details-hero-thumb img {
        width: 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   App layout with sidebar (Dashboard, My Courses, All Courses, Profile)
   ========================================================================== */
.lms-app-layout {
    --lms-sidebar-width: 260px;
    --lms-header-height: 56px;
    position: relative;
}
/* Fixed top header (DigiSkills-style): logo, title, user profile */
.lms-app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    height: var(--lms-header-height);
    background: var(--lms-primary, #245c51);
    color: #fff;
    z-index: 1002;
    box-sizing: border-box;
}
.lms-app-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 0.75rem;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.lms-app-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.lms-app-header-logo {
    background: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .lms-app-header-logo {
        margin-top: 0;
    }
}


.lms-app-header-logo-link,
.lms-app-header-logo-text {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
}
.lms-app-header-logo-link:hover,
.lms-app-header-logo-text:hover {
    color: #fff;
    opacity: 0.9;
}
.lms-app-header-logo .lms-app-header-logo-text {
    color: var(--lms-primary, #245c51);
}
.lms-app-header-logo-link img {
    /* max-height: 36px; */
    max-width: 120px !important;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}
.lms-app-header-center {
    flex: 1;
    text-align: center;
    padding: 0 0.5rem;
    min-width: 0;
    overflow: hidden;
}
.lms-app-header-title {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.95;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lms-app-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.lms-app-header-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    color: #fff;
    text-decoration: none !important;
    transition: background 0.2s;
}
.lms-app-header-profile:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.lms-app-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.lms-app-header-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25);
    font-size: 1rem;
    font-weight: 600;
}
.lms-app-header-username {
    font-size: 0.9rem;
    font-weight: 500;
}
@media (max-width: 600px) {
    .lms-app-header-username {
        display: none;
    }
    .lms-app-header-title {
        font-size: 0.9rem;
    }
}
/* Mobile: ensure header stays fixed and doesn't overflow */
@media (max-width: 768px) {
    .lms-app-header {
        left: 0;
        right: 0;
    }
    .lms-app-header-inner {
        padding-left: max(0.5rem, env(safe-area-inset-left, 0));
        padding-right: max(0.5rem, env(safe-area-inset-right, 0));
    }
    .lms-app-header-center,
    .lms-app-header-title {
        display: none;
    }
    .lms-app-header-logo-text {
        font-size: 0.95rem;
    }
    .lms-app-header-logo-link img {
        max-height: 32px;
        max-width: 100px;
    }
}
/* No underlines on links (override theme) */
.lms-app-layout a,
.lms-app-layout .lms-dashboard a,
.lms-app-layout .lms-my-courses a {
    text-decoration: none !important;
}
.lms-app-layout a:hover,
.lms-app-layout a:focus {
    text-decoration: none !important;
}
    .lms-app-main {
        flex: 1;
        min-width: 0;
        padding: 1rem 1.25rem 1.5rem;
        padding-top: calc(var(--lms-header-height) + 1rem);
    }

    @media (max-width: 768px) {
        .lms-app-main {
            padding: 0;
         
        }
    }

/* Sidebar: fixed below header (#245c51) */
.lms-app-sidebar {
    width: var(--lms-sidebar-width);
    background: var(--lms-primary, #245c51);
    color: #fff;
    padding: 1.5rem 0;
    position: fixed;
    left: 0;
    top: var(--lms-header-height);
    bottom: 0;
    height: calc(100vh - var(--lms-header-height));
    z-index: 1001;
    overflow-y: auto;
    box-shadow: none;
}
.lms-app-sidebar-inner {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.lms-app-sidebar-logo {
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}
.lms-app-sidebar-logo-link {
    display: block;
    text-decoration: none;
}
.lms-app-sidebar-logo-link img {
    max-width: 120px;
    max-height: 48px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}
.lms-app-sidebar-logo-text {
    display: block;
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}
.lms-app-sidebar-logo-text:hover {
    color: #fff;
    opacity: 0.9;
}
.lms-app-sidebar-logo-name {
    display: block;
}
.lms-app-sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.lms-app-sidebar-logout {
    background: #dc3545;
    color: #fff;
    opacity: 1;
}
.lms-app-sidebar-logout:hover {
    background: #c82333;
    color: #fff;
    opacity: 1;
}
.lms-app-sidebar-tagline {
    margin: 0 0 1.25rem;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    opacity: 0.92;
    line-height: 1.4;
}
.lms-app-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    margin-top: 2.25rem;
}

@media (max-width: 768px) {
    .lms-app-sidebar-nav {
        margin-top: 0.5rem;
    }
}

.lms-app-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.lms-app-sidebar-link .lms-app-sidebar-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    opacity: 0.95;
}
.lms-app-sidebar-link:hover,
.lms-app-sidebar-link:focus {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none !important;
}
.lms-app-sidebar-link--active {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}
/* Main content offset so it doesn't sit under fixed sidebar (desktop) */
@media (min-width: 769px) {
    .lms-app-main {
        margin-left: var(--lms-sidebar-width);
    }
}
/* Hamburger: inside header on mobile only – force white (override theme) */
.lms-app-header .lms-app-sidebar-toggle {
    position: relative;
    top: auto;
    left: auto;
    flex-shrink: 0;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: none !important;
    outline: none;
}
.lms-app-sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none !important;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.lms-app-sidebar-toggle:hover,
.lms-app-sidebar-toggle:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    border: none !important;
}
.lms-app-sidebar-toggle::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: #fff !important;
    box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
}
.lms-app-sidebar-overlay {
    display: none;
    position: fixed;
    top: var(--lms-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s;
}
.lms-app-sidebar-overlay.is-visible {
    display: block;
    opacity: 1;
}
/* Mobile only: sidebar as overlay, hamburger visible in header */
@media (max-width: 768px) {
    .lms-app-main {
        margin-left: 0;
        padding-top: calc(var(--lms-header-height) + 1rem);
    }
    /* When sidebar is open, remove main padding so content isn’t padded behind overlay */
    .lms-app-sidebar.is-open ~ .lms-app-main {
        padding: 0;
    }
    .lms-app-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }
    .lms-app-sidebar.is-open {
        transform: translateX(0);
    }
    .lms-app-sidebar-toggle {
        display: flex !important;
    }
}
@media (min-width: 769px) {
    .lms-app-sidebar-toggle {
        display: none !important;
    }
    .lms-app-sidebar-overlay.is-visible {
        display: none !important;
    }
}

.lms-dashboard,
.lms-course-list,
.lms-my-courses,
.lms-lesson-view,
.lms-quiz-view,
.lms-paywall {
    /* max-width: 960px; */
    margin: 0 auto;
    padding: 0;
}

.lms-dashboard-header,
.lms-course-list-header,
.lms-my-courses-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #ddd;
}

.lms-dashboard-header h1,
.lms-course-list-header h1,
.lms-my-courses-header h1 {
    margin: 0;
    flex: 1;
}

.lms-dashboard-nav a,
.lms-course-list-header a,
.lms-my-courses-header a {
    margin-left: 0.5rem;
}

.lms-dashboard-grid {
    display: grid;
    gap: 1.5rem;
}

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

.lms-notice-board,
.lms-my-activities,
.lms-course-progress,
.lms-trainee-services,
.lms-exercise-submissions {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #eee;
}

.lms-notice-list,
.lms-activity-links,
.lms-progress-list,
.lms-submissions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lms-notice-item {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #fff;
    border-left: 4px solid #2271b1;
}

.lms-notice-item.lms-notice-event { border-left-color: #d63638; }
.lms-notice-item.lms-notice-link { border-left-color: #00a32a; }

.lms-progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.25rem 0;
}

.lms-progress-bar span {
    display: block;
    height: 100%;
    background: #2271b1;
    transition: width 0.3s;
}

.lms-progress-pct {
    font-size: 0.875rem;
    color: #50575e;
}

.lms-courses-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.lms-course-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.lms-course-thumb {
    aspect-ratio: 16/9;
    background: #eee;
}

.lms-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lms-course-body {
    padding: 1rem;
}

.lms-course-body h2 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
}

.lms-course-desc {
    font-size: 0.875rem;
    color: #50575e;
    margin: 0 0 0.75rem;
}

.lms-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.lms-btn-primary {
    background: #2271b1;
    color: #fff;
}

.lms-btn-primary:hover { color: #fff; opacity: 0.9; }

.lms-btn-secondary {
    background: #f0f0f1;
    color: #1d2327;
}

.lms-course-locked {
    font-size: 0.875rem;
    color: #d63638;
}

.lms-lesson-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 1rem 0;
    background: #000;
}

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

.lms-lesson-notes,
.lms-lesson-exercises,
.lms-lesson-quizzes {
    margin: 1.5rem 0;
}

.lms-quiz-questions {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.lms-quiz-question {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.lms-question-options {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.lms-question-options li {
    margin: 0.25rem 0;
}

.lms-quiz-result {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f6fc;
    border: 1px solid #2271b1;
    border-radius: 4px;
}

.lms-paywall {
    text-align: center;
    padding: 2rem;
}

.lms-paywall .lms-btn { margin-top: 1rem; }

.lms-results-table,
.lms-results-table th,
.lms-results-table td {
    border: 1px solid #ddd;
    border-collapse: collapse;
    padding: 0.5rem;
}

.lms-results-table th { background: #f0f0f1; }

.lms-notice.lms-success { color: #00a32a; margin-top: 0.5rem; }

/* ==========================================================================
   LMS Dashboard – Modern learning-environment UI
   ========================================================================== */
.lms-dashboard--modern {
    --lms-bg: #f5f6f8;
    --lms-card: #ffffff;
    --lms-border: #e8eaed;
    --lms-text: #1a1d21;
    --lms-text-muted: #5f6368;
    --lms-primary: #245c51;
    --lms-primary-light: #e8f2f0;
    --lms-primary-dark: #1a453d;
    --lms-accent: #6366f1;
    --lms-success: #059669;
    border-radius: var(--lms-radius);
    --lms-radius: 12px;
    --lms-radius-sm: 8px;
    --lms-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --lms-shadow-card: 0 4px 20px rgba(0,0,0,0.06);
    /* max-width: 1100px; */
    padding: 1rem;
    /* margin: 0 auto; */
    /* padding: 0; */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
    color: var(--lms-text);
    background: var(--lms-bg);
}

/* Hero / Welcome – gradient #245c51 */
.lms-dashboard-hero {
    background: var(--lms-gradient-hero);
    color: #fff;
    border-radius: var(--lms-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--lms-shadow-card);
}
.lms-dashboard-hero-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.lms-dashboard-hero-text {
    min-width: 0;
}
.lms-dashboard-avatar-link {
    flex-shrink: 0;
    display: block;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.4);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.lms-dashboard-greeting {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    opacity: 0.95;
    letter-spacing: 0.02em;
}
.lms-dashboard-title {
    margin: 0 0 0.25rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.lms-dashboard-tagline {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 520px;
}
.lms-dashboard-avatar {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: cover;
}
.lms-dashboard-avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 64px;
    text-align: center;
    text-decoration: none;
}
.lms-dashboard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}
.lms-nav-item {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    border-radius: var(--lms-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.lms-nav-item:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.lms-nav-item--active {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Grid */
.lms-dashboard--modern .lms-dashboard-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .lms-dashboard--modern .lms-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 960px) {
    .lms-dashboard--modern .lms-dashboard-grid {
        gap: 1.25rem;
    }
    .lms-dashboard-card--span-2 {
        grid-column: span 2;
    }
}

/* Cards */
.lms-dashboard-card {
    background: var(--lms-card);
    border-radius: var(--lms-radius);
    border: 1px solid var(--lms-border);
    box-shadow: var(--lms-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.lms-dashboard-card:hover {
    box-shadow: var(--lms-shadow-card);
}
.lms-dashboard-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(180deg, #fafbfc 0%, #f5f6f8 100%);
    border-bottom: 1px solid var(--lms-border);
    border-left: 4px solid transparent;
}
.lms-dashboard-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--lms-radius-sm);
    background: #0d9488;
    color: #fff;
    opacity: 0.95;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lms-dashboard-card-icon svg {
    width: 22px;
    height: 22px;
}
/* Notice Board – teal */
.lms-dashboard-card--notice .lms-dashboard-card-header { border-left-color: #0d9488; }
.lms-dashboard-card--notice .lms-dashboard-card-title { color: #0f766e; }
.lms-dashboard-card-icon--notice,
.lms-dashboard-card--notice .lms-dashboard-card-icon { background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%); }
/* My Activities – indigo */
.lms-dashboard-card--activities .lms-dashboard-card-header { border-left-color: #6366f1; }
.lms-dashboard-card--activities .lms-dashboard-card-title { color: #4f46e5; }
.lms-dashboard-card-icon--activities { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }
/* Course Progress – forest green */
.lms-dashboard-card--progress .lms-dashboard-card-header { border-left-color: #245c51; }
.lms-dashboard-card--progress .lms-dashboard-card-title { color: #1a453d; }
.lms-dashboard-card-icon--progress { background: linear-gradient(135deg, #2d6a5f 0%, #245c51 100%); }
/* My Results – blue */
.lms-dashboard-card--results .lms-dashboard-card-header { border-left-color: #2563eb; }
.lms-dashboard-card--results .lms-dashboard-card-title { color: #1d4ed8; }
.lms-dashboard-card-icon--results { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
/* Exercise Submissions – amber */
.lms-dashboard-card--submissions .lms-dashboard-card-header { border-left-color: #d97706; }
.lms-dashboard-card--submissions .lms-dashboard-card-title { color: #b45309; }
.lms-dashboard-card-icon--submissions { background: linear-gradient(135deg, #ea580c 0%, #d97706 100%); }
.lms-dashboard-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--lms-text);
}
.lms-dashboard-card-body {
    padding: 1rem 1.25rem;
}
.lms-dashboard-empty {
    text-align: center;
    padding: 1rem 1rem;
    color: var(--lms-text-muted);
    font-size: 0.9rem;
}
.lms-dashboard-empty .lms-btn { margin-top: 0.75rem; }

/* Notice Board */
.lms-dashboard--modern .lms-notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lms-dashboard--modern .lms-notice-item {
    margin-bottom: 0.75rem;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border-radius: var(--lms-radius-sm);
    border-left: 4px solid var(--lms-primary);
}
.lms-dashboard--modern .lms-notice-item:last-child { margin-bottom: 0; }
.lms-dashboard--modern .lms-notice-item.lms-notice-event { border-left-color: #d97706; }
.lms-dashboard--modern .lms-notice-item.lms-notice-link { border-left-color: #6366f1; }
.lms-notice-item-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--lms-text);
}
.lms-dashboard--modern .lms-notice-content {
    font-size: 0.9rem;
    color: var(--lms-text-muted);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}
.lms-notice-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lms-primary);
    text-decoration: none;
}
.lms-notice-link:hover { text-decoration: underline; }

/* Activities */
.lms-dashboard--modern .lms-activity-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lms-activity-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    color: var(--lms-text);
    text-decoration: none !important;
    font-weight: 500;
    border-bottom: 1px solid var(--lms-border);
    transition: color 0.2s, padding-left 0.2s;
}
.lms-activity-link:last-child { border-bottom: none; }
.lms-activity-link:hover,
.lms-activity-link:focus {
    color: var(--lms-primary);
    padding-left: 0.25rem;
    text-decoration: none !important;
}
.lms-activity-link-arrow::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.6;
}

/* Course Progress */
.lms-dashboard--modern .lms-progress-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lms-progress-item {
    margin-bottom: 1rem;
}
.lms-progress-item:last-child { margin-bottom: 0; }
.lms-progress-item-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}
.lms-progress-item-title {
    font-weight: 600;
    color: var(--lms-text);
    text-decoration: none !important;
    font-size: 0.95rem;
}
.lms-progress-item-title:hover,
.lms-progress-item-title:focus { color: var(--lms-primary); text-decoration: none !important; }
.lms-progress-item-pct {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lms-text-muted);
}
.lms-progress-item-pct--complete { color: var(--lms-success); }
.lms-dashboard--modern .lms-progress-bar {
    height: 10px;
    background: #e8eaed;
    border-radius: 999px;
    overflow: hidden;
}
.lms-progress-bar-fill {
    display: block;
    height: 100%;
    background: var(--lms-gradient-bar);
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* Results table (legacy / fallback) */
.lms-results-wrap { overflow-x: auto; }
.lms-dashboard--modern .lms-results-table {
    width: 100%;
    border: none;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.lms-dashboard--modern .lms-results-table th,
.lms-dashboard--modern .lms-results-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--lms-border);
    text-align: left;
}
.lms-dashboard--modern .lms-results-table th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--lms-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.lms-dashboard--modern .lms-results-table tbody tr:hover {
    background: #fafbfc;
}

/* My Results – list layout with score badges */
.lms-dashboard--modern .lms-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lms-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--lms-border);
    font-size: 0.9rem;
}
.lms-result-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.lms-result-item:first-child {
    padding-top: 0;
}
.lms-result-item-main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.lms-result-quiz-title {
    font-weight: 600;
    color: var(--lms-text);
}
.lms-result-date {
    font-size: 0.8rem;
    color: var(--lms-text-muted);
}
.lms-result-item-score {
    flex-shrink: 0;
}
.lms-result-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
}
.lms-result-score-badge--pass {
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
}
.lms-result-score-badge--fail {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
}
.lms-result-score-value {
    font-variant-numeric: tabular-nums;
}
.lms-result-score-pct {
    opacity: 0.9;
    font-size: 0.8rem;
}
.lms-results-empty .lms-results-empty-text {
    margin: 0 0 0.25rem;
    font-weight: 500;
    color: var(--lms-text);
}
.lms-results-empty .lms-results-empty-hint {
    margin: 0;
    font-size: 0.85rem;
    color: var(--lms-text-muted);
    line-height: 1.4;
}

/* Submissions */
.lms-dashboard--modern .lms-submissions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lms-submission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--lms-border);
    font-size: 0.9rem;
}
.lms-submission-item:last-child { border-bottom: none; }
.lms-submission-title { font-weight: 500; color: var(--lms-text); }
.lms-submission-date { color: var(--lms-text-muted); font-size: 0.85rem; }

/* Buttons in dashboard */
.lms-dashboard--modern .lms-btn-primary {
    background: var(--lms-primary);
    color: #fff;
}
.lms-dashboard--modern .lms-btn-primary:hover {
    background: var(--lms-primary-dark);
    color: #fff;
}

/* ==========================================================================
   My Courses – Modern learning UI
   ========================================================================== */
.lms-my-courses--modern {
    --lms-bg: #f5f6f8;
    --lms-card: #ffffff;
    --lms-border: #e8eaed;
    --lms-text: #1a1d21;
    --lms-text-muted: #5f6368;
    --lms-primary: #245c51;
    --lms-primary-dark: #1a453d;
    --lms-success: #059669;
    --lms-radius: 12px;
    --lms-radius-sm: 8px;
    --lms-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --lms-shadow-card: 0 4px 20px rgba(0,0,0,0.06);
    /* max-width: 800px; */
    margin: 0 auto;
    padding: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
    color: var(--lms-text);
    background: var(--lms-bg);
    border-radius: var(--lms-radius);
}

.lms-my-courses-hero {
    background: var(--lms-gradient-hero);
    color: #fff;
    border-radius: var(--lms-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--lms-shadow-card);
}
.lms-my-courses-hero-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.lms-my-courses-hero-icon {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.95);
}
.lms-my-courses-hero-icon .lms-hero-icon {
    width: 32px;
    height: 32px;
}
.lms-my-courses-title {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.lms-my-courses-tagline {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    opacity: 0.92;
}
.lms-my-courses-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.lms-myc-nav-item {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    border-radius: var(--lms-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.lms-myc-nav-item:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.lms-myc-nav-item--active {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.lms-my-courses-empty {
    background: var(--lms-card);
    border-radius: var(--lms-radius);
    border: 1px solid var(--lms-border);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--lms-shadow);
}
.lms-my-courses-empty-title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--lms-text);
}
.lms-my-courses-empty-text {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    color: var(--lms-text-muted);
    line-height: 1.5;
}
.lms-my-courses--modern .lms-my-courses-empty .lms-btn-primary {
    background: var(--lms-primary);
    color: #fff;
}
.lms-my-courses--modern .lms-my-courses-empty .lms-btn-primary:hover {
    background: var(--lms-primary-dark);
    color: #fff;
}

.lms-my-courses-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* ==========================================================================
   Course List (All Courses) – Modern theme
   ========================================================================== */
.lms-course-list--modern {
    --lms-bg: #f5f6f8;
    --lms-card: #ffffff;
    --lms-border: #e8eaed;
    --lms-text: #1a1d21;
    --lms-text-muted: #5f6368;
    --lms-primary: #245c51;
    --lms-primary-dark: #1a453d;
    --lms-radius: 12px;
    --lms-radius-sm: 8px;
    --lms-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --lms-shadow-card: 0 4px 20px rgba(0,0,0,0.06);
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
    color: var(--lms-text);
    padding: 1rem;
    border-radius: var(--lms-radius);
    background: var(--lms-bg);
}
.lms-course-list-hero {
    background: var(--lms-gradient-hero);
    color: #fff;
    border-radius: var(--lms-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--lms-shadow-card);
}
.lms-course-list-hero-content {
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.lms-course-list-hero-icon {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.95);
}
.lms-course-list-hero-icon .lms-hero-icon {
    width: 32px;
    height: 32px;
}
.lms-course-list-title {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.lms-course-list-tagline {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.92;
}
.lms-course-list-empty {
    background: var(--lms-card);
    border-radius: var(--lms-radius);
    border: 1px solid var(--lms-border);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--lms-shadow);
}
.lms-course-list-empty-title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--lms-text);
}
.lms-course-list-empty-text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--lms-text-muted);
    line-height: 1.5;
}
.lms-courses-grid--modern {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.lms-course-card--catalog {
    background: var(--lms-card);
    border-radius: var(--lms-radius);
    border: 1px solid var(--lms-border);
    box-shadow: var(--lms-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.lms-course-card--catalog:hover {
    box-shadow: var(--lms-shadow-card);
}
.lms-course-card-thumb {
    aspect-ratio: 16/9;
    background: #e8eaed;
    overflow: hidden;
}
.lms-course-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lms-course-card-thumb--placeholder {
    background: linear-gradient(135deg, #e8eaed 0%, #e0e2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lms-course-card-body {
    padding: 1rem 1.25rem;
}
.lms-course-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--lms-text);
    line-height: 1.3;
}
.lms-course-card-desc {
    font-size: 0.9rem;
    color: var(--lms-text-muted);
    margin: 0 0 0.75rem;
    line-height: 1.45;
}
.lms-course-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.lms-course-list--modern .lms-course-card-actions .lms-btn-secondary {
    background: rgba(36, 92, 81, 0.08);
    color: var(--lms-primary);
    border: 1px solid rgba(36, 92, 81, 0.25);
}
.lms-course-list--modern .lms-course-card-actions .lms-btn-secondary:hover {
    background: rgba(36, 92, 81, 0.14);
    color: var(--lms-primary-dark);
}
.lms-course-list--modern .lms-course-card-btn,
.lms-course-list--modern .lms-btn-primary {
    background: var(--lms-primary);
    color: #fff;
    padding: 0.55rem 1.1rem;
    border-radius: var(--lms-radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none !important;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
}
.lms-course-list--modern .lms-course-card-btn:hover,
.lms-course-list--modern .lms-btn-primary:hover {
    background: var(--lms-primary-dark);
    color: #fff;
    text-decoration: none !important;
}
.lms-course-card-locked {
    font-size: 0.875rem;
    color: var(--lms-text-muted);
    font-style: italic;
}

.lms-course-card-modern {
    background: var(--lms-card);
    border-radius: var(--lms-radius);
    border: 1px solid var(--lms-border);
    box-shadow: var(--lms-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.lms-course-card-modern:hover {
    box-shadow: var(--lms-shadow-card);
}
.lms-course-card-modern--expanded {
    border-color: rgba(13, 148, 136, 0.25);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.lms-course-card-modern-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}
.lms-course-card-modern-main {
    flex: 1;
    min-width: 0;
}
.lms-course-card-modern-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--lms-text);
    line-height: 1.3;
}
.lms-course-card-modern-progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.lms-course-card-modern-progress-bar {
    flex: 1;
    height: 10px;
    background: #e8eaed;
    border-radius: 999px;
    overflow: hidden;
    min-width: 80px;
}
.lms-course-card-modern-progress-fill {
    display: block;
    height: 100%;
    background: var(--lms-gradient-bar);
    border-radius: 999px;
    transition: width 0.4s ease;
}
.lms-course-card-modern-pct {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lms-text-muted);
    flex-shrink: 0;
}
.lms-course-card-modern-pct--complete {
    color: var(--lms-success);
}
.lms-course-card-modern-toggle {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lms-primary);
    text-decoration: none;
    border: 1px solid var(--lms-primary);
    border-radius: var(--lms-radius-sm);
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.lms-course-card-modern-toggle:hover {
    background: var(--lms-primary);
    color: #fff;
}

.lms-course-card-modern-lessons {
    padding: 0 1.25rem 1rem 1.75rem;
    border-top: 1px solid var(--lms-border);
    padding-top: 0.85rem;
    margin-top: -0.25rem;
}
.lms-course-card-modern-lessons-title {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--lms-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.lms-course-card-modern-lessons-title::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 6px;
    border-color: transparent transparent transparent var(--lms-primary);
    flex-shrink: 0;
}
.lms-lesson-list-modern {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lms-lesson-list-modern li {
    margin-bottom: 0.35rem;
}
.lms-lesson-list-modern li:last-child { margin-bottom: 0; }

/* Lesson preview (table-of-contents style: play icon, thumbnail, title, duration) */
.lms-lesson-list-preview {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.lms-lesson-preview-item {
    margin-bottom: 0 !important;
    border-bottom: 1px solid var(--lms-border);
}
.lms-lesson-preview-item:last-child {
    border-bottom: none;
}
.lms-lesson-preview-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0 0.6rem 0.5rem;
    color: var(--lms-text);
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
    min-width: 0;
}
.lms-lesson-preview-link:hover {
    background: rgba(13, 148, 136, 0.06);
    color: var(--lms-primary);
}
.lms-lesson-preview-play {
    flex-shrink: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent var(--lms-text-muted);
    margin-left: 0.15rem;
    transition: border-color 0.2s;
}
.lms-lesson-preview-link:hover .lms-lesson-preview-play {
    border-left-color: var(--lms-primary);
}
.lms-lesson-preview-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 68px;
    border-radius: 6px;
    overflow: hidden;
    background: #e8eaed;
}
.lms-lesson-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lms-lesson-preview-thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8eaed 0%, #e0e2e6 100%);
}
.lms-lesson-preview-title {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lms-lesson-preview-meta {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--lms-text-muted);
    font-variant-numeric: tabular-nums;
}
@media (max-width: 480px) {
    .lms-lesson-preview-thumb {
        width: 90px;
        height: 51px;
    }
    .lms-lesson-preview-title {
        white-space: normal;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }
}

.lms-lesson-link-modern {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    color: var(--lms-text);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: var(--lms-radius-sm);
    transition: background 0.2s, color 0.2s;
}
.lms-lesson-link-modern:hover {
    background: #f0fdfa;
    color: var(--lms-primary);
}
.lms-lesson-link-icon {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lms-primary);
    opacity: 0.8;
    flex-shrink: 0;
}
.lms-lesson-link-modern:hover .lms-lesson-link-icon {
    opacity: 1;
}

/* ==========================================================================
   Lesson View – Modern learning UI
   ========================================================================== */
.lms-lesson-view--modern {
    --lms-bg: #f5f6f8;
    --lms-card: #ffffff;
    --lms-border: #e8eaed;
    --lms-text: #1a1d21;
    --lms-text-muted: #5f6368;
    --lms-primary: #245c51;
    --lms-primary-dark: #1a453d;
    --lms-radius: 12px;
    --lms-radius-sm: 8px;
    --lms-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --lms-shadow-card: 0 4px 20px rgba(0,0,0,0.06);
    /* max-width: 840px; */
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
    color: var(--lms-text);
    background: var(--lms-bg);
    border-radius: var(--lms-radius);
}

/* Lesson hero – same gradient as dashboard / my-courses */
.lms-lesson-hero {
    background: var(--lms-gradient-hero, linear-gradient(135deg, #245c51 0%, #1a453d 50%, #163d35 100%));
    color: #fff;
    border-radius: var(--lms-radius);
    padding: 1.25rem 1.5rem;
    margin: 0 0 1.5rem;
    box-shadow: var(--lms-shadow-card);
}
.lms-lesson-hero-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.lms-lesson-hero-icon {
    flex-shrink: 0;
    color: #fff;
}
.lms-lesson-hero-icon .lms-hero-icon {
    width: 32px;
    height: 32px;
}
.lms-lesson-hero .lms-lesson-breadcrumb {
    margin-bottom: 0.5rem;
}
.lms-lesson-hero .lms-lesson-breadcrumb a {
    color: #fff;
    text-decoration: none;
}
.lms-lesson-hero .lms-lesson-breadcrumb a:hover {
    text-decoration: underline;
    opacity: 0.95;
}
.lms-lesson-hero .lms-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.85);
}
.lms-lesson-hero .lms-breadcrumb-current {
    color: #fff;
    font-weight: 600;
}
.lms-lesson-hero .lms-lesson-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #fff;
}

.lms-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.lms-lesson-view--modern .lms-lesson-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}
.lms-lesson-view--modern .lms-lesson-breadcrumb a {
    color: #fff;
    text-decoration: none;
}
.lms-lesson-view--modern .lms-lesson-breadcrumb a:hover {
    text-decoration: underline;
}
.lms-breadcrumb-sep {
    color: #fff ;
    font-weight: 300;
}
.lms-breadcrumb-sep::after {
    content: "›";
}
.lms-breadcrumb-current {
    color: #fff;
    font-weight: 500;
}
.lms-lesson-view--modern .lms-lesson-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #fff;
}

.lms-lesson-video-wrap {
    background: var(--lms-card);
    border-radius: var(--lms-radius);
    border: 1px solid var(--lms-border);
    box-shadow: var(--lms-shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.lms-lesson-view--modern .lms-lesson-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}
.lms-lesson-view--modern .lms-lesson-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lms-lesson-card {
    background: var(--lms-card);
    border-radius: var(--lms-radius);
    border: 1px solid var(--lms-border);
    box-shadow: var(--lms-shadow);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}
.lms-lesson-card-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--lms-text);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--lms-border);
}
.lms-lesson-view--modern .lms-lesson-notes-content {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--lms-text);
}
.lms-lesson-view--modern .lms-lesson-notes-content p:last-child { margin-bottom: 0; }

.lms-exercise-list-modern {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lms-exercise-item-modern {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--lms-border);
}
.lms-exercise-item-modern:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.lms-exercise-item-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--lms-text);
}
.lms-exercise-desc {
    font-size: 0.9rem;
    color: var(--lms-text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.lms-exercise-attachment {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--lms-primary);
    text-decoration: none;
    margin-bottom: 0.75rem;
}
.lms-exercise-attachment:hover { text-decoration: underline; }
.lms-lesson-view--modern .lms-exercise-submit-form textarea.lms-exercise-textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    resize: vertical;
}
.lms-lesson-view--modern .lms-exercise-submit-form textarea:focus {
    outline: none;
    border-color: var(--lms-primary);
    box-shadow: 0 0 0 3px rgba(36, 92, 81, 0.15);
}
.lms-lesson-view--modern .lms-lesson-card--exercises .lms-btn-primary {
    background: var(--lms-primary);
    color: #fff;
}
.lms-lesson-view--modern .lms-lesson-card--exercises .lms-btn-primary:hover {
    background: var(--lms-primary-dark);
    color: #fff;
}

.lms-quiz-links-modern {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lms-quiz-links-modern li { margin-bottom: 0.5rem; }
.lms-quiz-link-modern {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: #f0fdfa;
    color: var(--lms-primary);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--lms-radius-sm);
    border: 1px solid rgba(13, 148, 136, 0.3);
    transition: background 0.2s, color 0.2s;
}
.lms-quiz-link-modern:hover {
    background: var(--lms-primary);
    color: #fff;
    border-color: var(--lms-primary);
}

.lms-lesson-nav-modern {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--lms-border);
}
.lms-lesson-nav-btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--lms-primary);
    text-decoration: none;
    border: 1px solid var(--lms-primary);
    border-radius: var(--lms-radius-sm);
    transition: background 0.2s, color 0.2s;
}
.lms-lesson-nav-btn:hover {
    background: var(--lms-primary);
    color: #fff;
}
.lms-lesson-nav-btn--disabled {
    color: var(--lms-text-muted);
    border-color: var(--lms-border);
    cursor: default;
}
.lms-lesson-nav-back {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--lms-text-muted);
    text-decoration: none;
}
.lms-lesson-nav-back:hover { color: var(--lms-primary); }

/* ==========================================================================
   Quiz View – Modern learning UI
   ========================================================================== */
.lms-quiz-view--modern {
    --lms-bg: #f5f6f8;
    --lms-card: #ffffff;
    --lms-border: #e8eaed;
    --lms-text: #1a1d21;
    --lms-text-muted: #5f6368;
    --lms-primary: #0d9488;
    --lms-primary-dark: #0f766e;
    --lms-success: #059669;
    --lms-warning: #d97706;
    --lms-radius: 12px;
    --lms-radius-sm: 8px;
    --lms-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --lms-shadow-card: 0 4px 20px rgba(0,0,0,0.06);
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
    color: var(--lms-text);
    background: var(--lms-bg);
}

.lms-quiz-view--modern .lms-quiz-header {
    margin-bottom: 1.5rem;
}
.lms-quiz-view--modern .lms-quiz-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}
.lms-quiz-view--modern .lms-quiz-breadcrumb a {
    color: var(--lms-primary);
    text-decoration: none;
}
.lms-quiz-view--modern .lms-quiz-breadcrumb a:hover {
    text-decoration: underline;
}
.lms-quiz-view--modern .lms-breadcrumb-sep {
    color: var(--lms-text-muted);
}
.lms-quiz-view--modern .lms-breadcrumb-sep::after {
    content: "›";
}
.lms-quiz-view--modern .lms-breadcrumb-current {
    color: var(--lms-text-muted);
    font-weight: 500;
}
.lms-quiz-view--modern .lms-quiz-title {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--lms-text);
}
.lms-quiz-view--modern .lms-quiz-meta {
    margin: 0;
    font-size: 0.9rem;
    color: var(--lms-text-muted);
}

.lms-quiz-form-card {
    background: var(--lms-card);
    border-radius: var(--lms-radius);
    border: 1px solid var(--lms-border);
    box-shadow: var(--lms-shadow);
    padding: 1.5rem 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
}

.lms-quiz-questions-modern {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    counter-reset: quiz-q;
}
.lms-quiz-question-modern {
    counter-increment: quiz-q;
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.25rem 1.35rem;
    background: #f8fafb;
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.lms-quiz-question-modern:hover {
    border-color: rgba(13, 148, 136, 0.25);
}
.lms-quiz-question-modern::before {
    content: counter(quiz-q) ".";
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--lms-primary);
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}
.lms-question-text {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--lms-text);
}
.lms-question-options-modern {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lms-option-item {
    margin-bottom: 0.5rem;
}
.lms-option-item:last-child { margin-bottom: 0; }
.lms-option-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    margin: 0 -0.25rem;
    border-radius: var(--lms-radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}
.lms-option-label:hover {
    background: rgba(13, 148, 136, 0.06);
}
.lms-option-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
.lms-option-marker {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--lms-border);
    border-radius: 50%;
    background: var(--lms-card);
    margin-top: 0.15rem;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.lms-option-input:focus + .lms-option-marker {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25);
}
.lms-option-input:checked + .lms-option-marker {
    border-color: var(--lms-primary);
    background: var(--lms-primary);
    box-shadow: inset 0 0 0 3px var(--lms-card);
}
.lms-option-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--lms-text);
}

.lms-quiz-actions-modern {
    margin-top: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--lms-border);
}
.lms-quiz-view--modern .lms-quiz-submit-btn {
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--lms-primary);
    color: #fff;
    border: none;
    border-radius: var(--lms-radius-sm);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.lms-quiz-view--modern .lms-quiz-submit-btn:hover {
    background: var(--lms-primary-dark);
    color: #fff;
}

/* Quiz result card */
.lms-quiz-result-card {
    background: var(--lms-card);
    border-radius: var(--lms-radius);
    border: 1px solid var(--lms-border);
    box-shadow: var(--lms-shadow-card);
    padding: 2rem 1.75rem;
    text-align: center;
}
.lms-quiz-result-card--pass {
    border-color: rgba(5, 150, 105, 0.4);
    background: linear-gradient(180deg, rgba(5, 150, 105, 0.06) 0%, var(--lms-card) 100%);
}
.lms-quiz-result-card--fail {
    border-color: rgba(217, 119, 6, 0.35);
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.06) 0%, var(--lms-card) 100%);
}
.lms-quiz-result-inner {
    max-width: 360px;
    margin: 0 auto;
}
.lms-quiz-result-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--lms-primary);
    opacity: 0.9;
}
.lms-quiz-result-card--pass .lms-quiz-result-icon {
    background: var(--lms-success);
}
.lms-quiz-result-card--fail .lms-quiz-result-icon {
    background: var(--lms-warning);
}
.lms-quiz-result-heading {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--lms-text);
}
.lms-quiz-result-score {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--lms-primary);
}
.lms-quiz-result-card--pass .lms-quiz-result-score {
    color: var(--lms-success);
}
.lms-quiz-result-card--fail .lms-quiz-result-score {
    color: var(--lms-warning);
}
.lms-quiz-result-message {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: var(--lms-text-muted);
    line-height: 1.5;
}
.lms-quiz-result-date {
    margin: 0 0 1.5rem;
    font-size: 0.85rem;
    color: var(--lms-text-muted);
    opacity: 0.9;
}
.lms-quiz-result-actions {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}
.lms-quiz-result-actions .lms-btn {
    display: inline-block;
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--lms-radius-sm);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.lms-quiz-result-actions .lms-btn-outline {
    background: transparent;
    color: var(--lms-primary);
    border: 1px solid var(--lms-primary);
}
.lms-quiz-result-actions .lms-btn-outline:hover {
    background: var(--lms-primary);
    color: #fff;
}
.lms-quiz-result-actions .lms-btn-secondary {
    background: #f0fdfa;
    color: var(--lms-primary);
    border: 1px solid rgba(13, 148, 136, 0.3);
}
.lms-quiz-result-actions .lms-btn-secondary:hover {
    background: var(--lms-primary);
    color: #fff;
    border-color: var(--lms-primary);
}

.lms-quiz-view--modern .lms-quiz-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--lms-text-muted);
    background: var(--lms-card);
    border-radius: var(--lms-radius);
    border: 1px solid var(--lms-border);
}

/* ==========================================================================
   Profile – Edit profile (picture, name, email, bio)
   ========================================================================== */
.lms-profile--modern {
    --lms-bg: #f5f6f8;
    --lms-card: #ffffff;
    --lms-border: #e8eaed;
    --lms-border-light: #eef0f2;
    --lms-text: #1a1d21;
    --lms-text-muted: #5f6368;
    --lms-label: #6b7280;
    --lms-primary: #245c51;
    --lms-primary-dark: #1a453d;
    --lms-radius: 12px;
    --lms-radius-sm: 8px;
    --lms-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --lms-shadow-card: 0 4px 20px rgba(0,0,0,0.06);
    /* max-width: 960px; */
    margin: 0 auto;
    padding: 1rem 1.5rem 2rem;
    border-radius: var(--lms-radius);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
    color: var(--lms-text);
    background: var(--lms-bg);
}

/* Profile hero – same gradient as dashboard / my-courses / lesson */
.lms-profile-hero {
    background: var(--lms-gradient-hero, linear-gradient(135deg, #245c51 0%, #1a453d 50%, #163d35 100%));
    color: #fff;
    border-radius: var(--lms-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--lms-shadow-card);
}
.lms-profile-hero-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.lms-profile-hero-icon {
    flex-shrink: 0;
    color: #fff;
}
.lms-profile-hero-icon .lms-hero-icon {
    width: 32px;
    height: 32px;
}
.lms-profile-hero .lms-profile-breadcrumb {
    margin-bottom: 0.5rem;
}
.lms-profile-hero .lms-profile-breadcrumb a {
    color: #fff;
    text-decoration: none;
}
.lms-profile-hero .lms-profile-breadcrumb a:hover {
    text-decoration: underline;
}
.lms-profile-hero .lms-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.85);
}
.lms-profile-hero .lms-breadcrumb-current {
    color: #fff;
    font-weight: 600;
}
.lms-profile-hero .lms-profile-title {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}
.lms-profile-hero .lms-profile-tagline {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.92);
}

.lms-profile-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1rem;
    align-items: start;
}
@media (max-width: 700px) {
    .lms-profile-layout {
        grid-template-columns: 1fr;
    }
}
.lms-profile-sidebar {
    position: sticky;
    top: 1rem;
}
.lms-profile-summary {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lms-profile-summary .lms-profile-picture-preview {
    margin: 0 auto 0.5rem;
}
.lms-profile-summary .lms-profile-summary-item {
    align-self: stretch;
    width: 100%;
}
.lms-profile-summary-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
}
.lms-profile-summary-bio {
    margin: 0 0 0.5rem;
    text-align: center;
    align-self: stretch;
    width: 100%;
}
.lms-profile-summary-bio-text {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--lms-text-muted);
    line-height: 1.4;
    margin: 0;
}
.lms-profile-summary-item {
    text-align: left;
    padding: 0.35rem 0;
    border-top: 1px solid var(--lms-border-light);
}
.lms-profile-summary-label {
    display: block;
    font-size: 0.8rem;
    color: var(--lms-text-muted);
    margin-bottom: 0.15rem;
}
.lms-profile-summary-value {
    font-size: 0.95rem;
}
.lms-profile-required-note {
    font-size: 0.9rem;
    color: var(--lms-text-muted);
    margin: 0 0 0.75rem;
}
.lms-profile-accordion {
    margin-bottom: 1rem;
}
.lms-profile-accordion-item {
    border: 1px solid var(--lms-border-light);
    border-radius: var(--lms-radius-sm);
    margin-bottom: 0.4rem;
    background: var(--lms-card);
    box-shadow: var(--lms-shadow);
    overflow: hidden;
}
.lms-profile-accordion-head {
    padding: 0.6rem 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--lms-card);
    color: var(--lms-text);
    transition: background 0.28s ease, color 0.2s ease, border-color 0.2s ease;
}
.lms-profile-accordion-head:hover {
    background: rgba(13, 148, 136, 0.04);
}
.lms-profile-accordion-head::-webkit-details-marker { display: none; }
.lms-profile-accordion-head::after {
    content: "+";
    font-size: 1.2rem;
    color: var(--lms-label);
    font-weight: 400;
    transition: transform 0.28s ease, color 0.2s ease;
}
.lms-profile-accordion-item[open] {
    border-color: rgba(13, 148, 136, 0.28);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.06);
}
.lms-profile-accordion-item[open] .lms-profile-accordion-head {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, rgba(13, 148, 136, 0.04) 100%);
    color: var(--lms-primary-dark);
    border-bottom: 1px solid rgba(13, 148, 136, 0.12);
}
.lms-profile-accordion-item[open] .lms-profile-accordion-head::after {
    content: "−";
    color: var(--lms-primary);
    transform: rotate(0deg);
}
.lms-profile-accordion-body {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--lms-border-light);
    animation: lms-profile-accordion-open 0.32s ease-out;
}
@keyframes lms-profile-accordion-open {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.lms-profile-date-row,
.lms-profile-mobile-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.lms-profile-date-row .lms-profile-select,
.lms-profile-mobile-row .lms-profile-select,
.lms-profile-mobile-row .lms-profile-input {
    flex: 1;
    min-width: 0;
}
.lms-profile-radio-group {
    display: flex;
    flex-direction: column;
    /* gap: 0.5rem; */
}
.lms-profile-radio-group--wrap { gap: 0.5rem; }
.lms-profile-radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
    padding: 0.15rem 0;
    cursor: pointer;
    color: var(--lms-text-muted);
    line-height: 1.4;
}
.lms-profile-radio-group label:has(input:checked) {
    color: var(--lms-primary-dark);
    font-weight: 500;
}
.lms-profile-radio-group input[type="radio"] {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--lms-primary);
    cursor: pointer;
}
.lms-profile-radio-group input[type="radio"]:focus {
    outline: 2px solid var(--lms-primary);
    outline-offset: 2px;
}
.lms-profile-hint {
    display: block;
    font-size: 0.82rem;
    color: var(--lms-text-muted);
    margin-bottom: 0.5rem;
}
.lms-profile-select {
    min-height: 2.25rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--lms-border-light);
    border-radius: var(--lms-radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--lms-label);
    background: var(--lms-card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lms-profile-select:focus {
    outline: none;
    border-color: var(--lms-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

/* Proficiency/Interests – professional styling with theme colors */
.lms-profile-accordion-item--proficiency .lms-profile-accordion-head {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.06) 0%, rgba(13, 148, 136, 0.02) 100%);
    color: var(--lms-label);
}
.lms-profile-accordion-item--proficiency[open] .lms-profile-accordion-head {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.12) 0%, rgba(13, 148, 136, 0.05) 100%);
    color: var(--lms-primary-dark);
}
.lms-profile-proficiency {
    background: var(--lms-card);
}
.lms-profile-proficiency .lms-profile-field {
    margin-bottom: 1rem;
}
.lms-profile-proficiency .lms-profile-field:last-child {
    margin-bottom: 0;
}
.lms-profile-proficiency-label {
    display: block;
    font-weight: 600;
    color: var(--lms-text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}
.lms-profile-proficiency-sublabel {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lms-label);
}
.lms-profile-note {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0 0 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--lms-radius-sm);
}
.lms-profile-note--info {
    background: rgba(13, 148, 136, 0.05);
    color: var(--lms-primary-dark);
    border: 1px solid rgba(13, 148, 136, 0.14);
    font-size: 0.85rem;
    font-weight: 400;
}
.lms-profile-radio-list {
    display: flex;
    flex-direction: column;
    /* gap: 0.5rem; */
}
.lms-profile-radio-list--stack {
    gap: 0.5rem;
}
.lms-profile-radio-option {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--lms-text-muted);
    margin: 0;
    padding: 0.15rem 0;
    line-height: 1.4;
}
.lms-profile-radio-option input[type="radio"] {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--lms-primary);
    cursor: pointer;
}
.lms-profile-radio-option input[type="radio"]:focus {
    outline: 2px solid var(--lms-primary);
    outline-offset: 2px;
}
.lms-profile-radio-text {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--lms-text-muted);
}
.lms-profile-radio-option:has(input:checked) .lms-profile-radio-text {
    color: var(--lms-primary-dark);
    font-weight: 500;
}
.lms-profile-proficiency-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
@media (max-width: 520px) {
    .lms-profile-proficiency-row {
        grid-template-columns: 1fr;
    }
}
.lms-profile-proficiency-col {
    padding: 0.75rem;
    background: rgba(13, 148, 136, 0.04);
    border-radius: var(--lms-radius-sm);
    border: 1px solid rgba(13, 148, 136, 0.1);
}
.lms-profile-select--proficiency {
    max-width: 280px;
}
.lms-profile-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1.25rem;
}
@media (max-width: 520px) {
    .lms-profile-checkbox-grid {
        grid-template-columns: 1fr;
    }
}
.lms-profile-checkbox-option {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    font-weight: 400;
    margin: 0;
    font-size: 0.9rem;
    color: var(--lms-text-muted);
}
.lms-profile-checkbox-option:has(input:checked) {
    color: var(--lms-primary-dark);
    font-weight: 500;
}
.lms-profile-checkbox-option input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    accent-color: var(--lms-primary);
    cursor: pointer;
    flex-shrink: 0;
}
.lms-profile-checkbox-option input[type="checkbox"]:focus {
    outline: 2px solid var(--lms-primary);
    outline-offset: 2px;
}
.lms-profile-checkbox-text {
    line-height: 1.3;
}

.lms-profile-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}
.lms-profile-breadcrumb a {
    color: var(--lms-primary);
    text-decoration: none;
}
.lms-profile-breadcrumb a:hover { text-decoration: underline; }
.lms-profile--modern .lms-breadcrumb-sep::after { content: "›"; }
.lms-profile--modern .lms-breadcrumb-current { color: #fff; font-weight: 500; }
.lms-profile-title {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--lms-text);
}
.lms-profile-tagline {
    margin: 0;
    font-size: 0.9rem;
    color: var(--lms-text-muted);
}
.lms-profile-notice {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: var(--lms-radius-sm);
    font-size: 0.95rem;
}
.lms-profile-notice--success {
    background: rgba(5, 150, 105, 0.15);
    color: #047857;
    border: 1px solid rgba(5, 150, 105, 0.35);
    font-weight: 500;
}
.lms-profile-notice--error {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.25);
}
.lms-profile-card {
    background: var(--lms-card);
    border-radius: var(--lms-radius);
    border: 1px solid var(--lms-border-light);
    box-shadow: var(--lms-shadow);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.lms-profile-card-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--lms-label);
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--lms-border-light);
}
.lms-profile-picture-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.lms-profile-picture-preview {
    flex-shrink: 0;
}
.lms-profile-avatar,
.lms-profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    object-position: center;
    background: #e8eaed;
    color: var(--lms-text-muted);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 120px;
    text-align: center;
}
.lms-profile-picture-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.lms-profile-file-label {
    cursor: pointer;
    display: inline-block;
}
.lms-profile-file-label .lms-btn { cursor: pointer; }
.lms-profile-file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}
.lms-profile-check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--lms-text-muted);
    cursor: pointer;
}
.lms-profile-check-input { margin: 0; }
.lms-profile-field {
    margin: 0 0 0.75rem;
}
.lms-profile-field:last-child { margin-bottom: 0; }
.lms-profile-field label {
    display: block;
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lms-text);
}
.lms-profile-input,
.lms-profile-textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--lms-border-light);
    border-radius: var(--lms-radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--lms-label);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lms-profile-input:focus,
.lms-profile-textarea:focus {
    outline: none;
    border-color: var(--lms-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.lms-profile-textarea {
    resize: vertical;
    min-height: 100px;
}
.lms-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.75rem;
}
.lms-profile--modern .lms-btn-primary {
    background: var(--lms-primary);
    color: #fff;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    border: none;
    border-radius: var(--lms-radius-sm);
    cursor: pointer;
}
.lms-profile--modern .lms-btn-primary:hover {
    background: var(--lms-primary-dark);
    color: #fff;
}
.lms-profile--modern .lms-btn-outline {
    background: transparent;
    color: var(--lms-primary);
    border: 1px solid var(--lms-primary);
    padding: 0.6rem 1.25rem;
    border-radius: var(--lms-radius-sm);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
}
.lms-profile--modern .lms-btn-outline:hover {
    background: var(--lms-primary);
    color: #fff;
}
.lms-profile--modern .lms-btn-secondary {
    background: #f0fdfa;
    color: var(--lms-primary);
    border: 1px solid rgba(13, 148, 136, 0.3);
    padding: 0.6rem 1.25rem;
    border-radius: var(--lms-radius-sm);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
}
.lms-profile--modern .lms-btn-secondary:hover {
    background: var(--lms-primary);
    color: #fff;
}

/* ==========================================================================
   Registration / Sign up
   ========================================================================== */
.lms-registration--modern {
    --lms-bg: #f5f6f8;
    --lms-card: #ffffff;
    --lms-border: #e8eaed;
    --lms-text: #1a1d21;
    --lms-text-muted: #5f6368;
    --lms-primary: #245c51;
    --lms-primary-dark: #1a453d;
    --lms-radius: 12px;
    --lms-radius-sm: 8px;
    --lms-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --lms-shadow-card: 0 4px 20px rgba(0,0,0,0.08);
    /* Login-style header/card (shared with login page) */
    --lms-login-header: #374151;
    --lms-login-card: #ffffff;
    --lms-login-border: #b8c5d0;
    --lms-login-radius: 12px;
    max-width: 460px;
    margin: 0 auto;
    padding: 2rem 1rem 2.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
    color: var(--lms-text);
    background: var(--lms-bg);
}
/* Override theme red/pink hover – use only theme teal or neutral */
.lms-registration--modern a:hover,
.lms-registration--modern button:hover,
.lms-registration--modern input:hover {
    border-color: var(--lms-border) !important;
    color: inherit !important;
}
.lms-registration--modern .lms-registration-signin-btn:hover {
    border-color: transparent !important;
    color: #fff !important;
}
.lms-registration--modern .lms-registration-submit:hover {
    border-color: transparent !important;
    color: #fff !important;
}
.lms-registration--modern .lms-registration-password-toggle:hover {
    color: var(--lms-primary) !important;
    border-color: transparent !important;
    background: rgba(13, 148, 136, 0.06) !important;
}
.lms-registration--modern .lms-registration-input-wrap:focus-within {
    border-color: var(--lms-primary) !important;
}
.lms-registration-login-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem 0.5rem;
    text-align: center;
}
.lms-registration-have-account {
    font-size: 0.95rem;
    color: var(--lms-text);
    margin: 0;
}
.lms-registration-signin-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--lms-primary);
    color: #fff;
    border: none;
    border-radius: var(--lms-radius-sm);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.lms-registration-signin-btn:hover {
    background: var(--lms-primary-dark);
    color: #fff;
}
.lms-registration-signin-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--lms-card), 0 0 0 4px var(--lms-primary);
}
.lms-registration-notice {
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: var(--lms-radius-sm);
    font-size: 0.9rem;
}
.lms-registration-notice--success {
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
    border: 1px solid rgba(5, 150, 105, 0.3);
}
.lms-registration-notice--error {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.25);
}
.lms-registration-card {
    display: flex;
    flex-direction: column;
    background: var(--lms-card);
    border-radius: var(--lms-radius);
    border: 1px solid var(--lms-border);
    box-shadow: var(--lms-shadow-card);
    padding: 1.75rem 1.5rem 1.5rem;
    min-height: 420px;
}
.lms-registration-card .lms-registration-form {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.lms-registration-card .lms-registration-title {
    margin: 0 0 1.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--lms-primary);
}
/* Registration page using login layout: form and title inside .lms-login-card */
.lms-registration .lms-login-card .lms-registration-title {
    margin: 0 0 1.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--lms-primary);
}
.lms-registration .lms-login-card .lms-registration-form {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.lms-registration-field {
    margin: 0 0 1.1rem;
}
.lms-registration-field:last-of-type {
    margin-bottom: 0;
}
.lms-registration-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lms-text);
    margin-bottom: 0.4rem;
}
.lms-registration-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius-sm);
    background: var(--lms-card);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.lms-registration-input-wrap:focus-within {
    border-color: var(--lms-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.lms-registration-input-wrap .lms-registration-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-left: 0.75rem;
    color: var(--lms-text-muted);
}
.lms-registration-input-wrap .lms-registration-icon--toggle {
    margin-left: 0;
    margin-right: 0.5rem;
}
/* .lms-registration-input-wrap--password .lms-registration-icon:first-child {
    margin-right: 0.5rem;
} */
.lms-registration-input-wrap--password .lms-registration-input {
    padding-right: 0.25rem;
}
/* Eye toggle: no border/outline (override theme or global button styles) */
.lms-registration-input-wrap button.lms-registration-password-toggle {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.lms-registration-input-wrap button.lms-registration-password-toggle:hover,
.lms-registration-input-wrap button.lms-registration-password-toggle:focus,
.lms-registration-input-wrap button.lms-registration-password-toggle:active {
    background: rgba(13, 148, 136, 0.06) !important;
    border: none !important;
    box-shadow: none !important;
}
.lms-registration-password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 100%;
    min-height: 40px;
    padding: 0;
    margin: 0;
    margin-left: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 0 var(--lms-radius-sm) var(--lms-radius-sm) 0;
    cursor: pointer;
    color: var(--lms-text-muted);
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
    outline: none;
    box-shadow: none;
}
.lms-registration-password-toggle:hover {
    color: var(--lms-primary);
    background: rgba(13, 148, 136, 0.04);
}
.lms-registration-password-toggle:focus,
.lms-registration-password-toggle:focus-visible,
.lms-registration-password-toggle:active {
    outline: none;
    border: none;
    box-shadow: none;
}
.lms-registration-password-toggle .lms-registration-icon {
    margin: 0;
    width: 18px;
    height: 18px;
}
.lms-registration-password-toggle .lms-registration-eye-off {
    display: none;
}
.lms-registration-password-toggle.lms-registration-password-toggle--visible .lms-registration-eye-on {
    display: none;
}
.lms-registration-password-toggle.lms-registration-password-toggle--visible .lms-registration-eye-off {
    display: block;
}
.lms-registration-input-wrap .lms-registration-input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 0.65rem 0.75rem;
    font-size: 1rem;
    line-height: 1.4;
    background: transparent;
    color: var(--lms-text);
    box-shadow: none;
}
.lms-registration-input-wrap .lms-registration-input:focus {
    outline: none;
    box-shadow: none;
}
.lms-registration-input-wrap .lms-registration-input::placeholder {
    color: var(--lms-text-muted);
}
.lms-registration-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--lms-text-muted);
    margin-top: 0.35rem;
    line-height: 1.35;
}
.lms-registration-actions {
    margin-top: auto;
    padding-top: 1.75rem;
}
.lms-registration-submit {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--lms-primary);
    color: #fff;
    border: none;
    border-radius: var(--lms-radius-sm);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.lms-registration-submit:hover {
    background: var(--lms-primary-dark);
    color: #fff;
}
.lms-registration-logged-in {
    text-align: center;
    padding: 1.5rem;
    font-size: 1rem;
    color: var(--lms-text);
}
.lms-registration-logged-in .lms-btn {
    margin-top: 0.5rem;
}

/* ==========================================================================
   Custom Login (DigiSkills-style: dark header + white form)
   ========================================================================== */
.lms-login--modern {
    --lms-login-bg: #e5e7eb;
    --lms-login-header: #374151;
    --lms-login-card: #ffffff;
    --lms-login-border: #b8c5d0;
    --lms-login-input-border: #94a3b8;
    --lms-login-text: #1a1d21;
    --lms-login-btn: #22c55e;
    --lms-login-btn-hover: #16a34a;
    --lms-login-radius: 12px;
    --lms-login-radius-sm: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    max-width: 440px;
    margin: 0 auto;
    padding: 2rem 1rem 2.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
    color: var(--lms-login-text);
    background: var(--lms-login-bg);
    box-sizing: border-box;
}
.lms-login--modern .lms-login-wrapper {
    width: 100%;
}
.lms-login-wrapper {
    border-radius: var(--lms-login-radius);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}
.lms-login-header {
    background: var(--lms-login-header);
    padding: 1.75rem 1.5rem;
    text-align: center;
    border-radius: var(--lms-login-radius) var(--lms-login-radius) 0 0;
}
.lms-login-logo-wrap {
    margin-bottom: 0.75rem;
}
.lms-login-logo-link {
    display: inline-block;
    text-decoration: none;
}
.lms-login-logo-link img {
    max-height: 48px;
    width: auto;
    max-width: 120px;
    height: auto;
    display: block;
    object-fit: contain;
}

.custom-logo {
    width:120px !important;
}


.lms-login-logo-text {
    display: inline-block;
    text-decoration: none;
    color: #fff;
}
.lms-login-logo-text:hover {
    color: #fff;
    opacity: 0.9;
}
.lms-login-site-name {
    display: block;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}
.lms-login-site-desc {
    display: block;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.2rem;
}
.lms-login-header-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.02em;
}
.lms-login-card {
    background: var(--lms-login-card);
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--lms-login-border);
    border-top: none;
    border-radius: 0 0 var(--lms-login-radius) var(--lms-login-radius);
}
/* Login required (My Courses, Dashboard, etc. when not logged in) */
.lms-login-required--modern {
    --lms-login-bg: #e5e7eb;
    --lms-login-header: #374151;
    --lms-login-card: #ffffff;
    --lms-login-border: #b8c5d0;
    --lms-login-radius: 12px;
    --lms-primary: #245c51;
    --lms-primary-dark: #1a453d;
    max-width: 420px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.lms-login-required-message {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    color: var(--lms-login-text, #1a1d21);
    line-height: 1.5;
}
.lms-login-required-actions {
    margin: 0 0 1rem;
}
.lms-login-required--modern .lms-btn-primary {
    background: var(--lms-primary, #245c51);
    color: #fff;
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.lms-login-required--modern .lms-btn-primary:hover {
    background: var(--lms-primary-dark, #1a453d);
    color: #fff;
}
.lms-login-required-register {
    margin: 0;
    font-size: 0.9rem;
    color: var(--lms-login-text, #1a1d21);
}
.lms-login-required-register a {
    font-weight: 600;
    text-decoration: none;
}
.lms-login-required-register a:hover {
    text-decoration: underline;
}
.lms-login-intro {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    color: var(--lms-login-text);
    line-height: 1.4;
}
.lms-login-notice {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--lms-login-radius-sm);
    font-size: 0.9rem;
}
.lms-login-notice--error {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.25);
}
.lms-login-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.lms-login-field {
    margin: 0 0 1rem;
}
.lms-login-field label.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.lms-login-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--lms-login-input-border);
    border-radius: var(--lms-login-radius-sm);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.lms-login-input-wrap:focus-within {
    border-color: #0d9488;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
}
.lms-login-input-wrap .lms-login-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #64748b;
}
.lms-login-input-wrap--password .lms-login-input {
    padding-right: 0.25rem;
  
}
.lms-login-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    font-size: 1rem;
    outline: none;
    border: 0 !important;
    padding: 0 !important;
}
.lms-login-password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer;
    color: var(--lms-login-input-border, #94a3b8);
    border-radius: 4px;
}
.lms-login-password-toggle:hover,
.lms-login-password-toggle:focus {
    background: transparent !important;
    color: var(--lms-primary, #245c51);
}
.lms-login-password-toggle .lms-login-eye-off {
    display: none;
}
.lms-login-password-toggle.lms-login-password-toggle--visible .lms-login-eye-on {
    display: none;
}
.lms-login-password-toggle.lms-login-password-toggle--visible .lms-login-eye-off {
    display: block;
}
.lms-login-remember {
    margin: 0 0 1.25rem;
}
.lms-login-remember-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--lms-login-text);
}
.lms-login-remember-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--lms-login-btn);
}
.lms-login-actions {
    margin: 0 0 1rem;
}
.lms-login-submit {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--lms-login-btn);
    color: #fff;
    border: none;
    border-radius: var(--lms-login-radius-sm);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.lms-login-submit:hover {
    background: var(--lms-login-btn-hover);
    color: #fff;
}
.lms-login-links-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-top: 1rem;
    padding-top: 0.5rem;
    font-size: 0.9rem;
}
.lms-login-lost-link {
    color: #dc2626;
    text-decoration: underline;
}
.lms-login-lost-link:hover {
    color: #b91c1c;
    text-decoration: underline;
}
.lms-login-register-link {
    color: #2563eb;
    text-decoration: underline;
}
.lms-login-register-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
.lms-login-logged-in {
    text-align: center;
    padding: 1.5rem;
    margin: 0;
    font-size: 1rem;
    color: var(--lms-login-text);
}
.lms-login-logged-in .lms-btn {
    margin-top: 0.75rem;
    display: inline-block;
    background: var(--lms-login-btn);
}
.lms-login-logged-in .lms-btn:hover {
    background: var(--lms-login-btn-hover);
}

/* ==========================================================================
   Progress Timeline
   ========================================================================== */
.lms-progress-timeline {
    --lms-bg: #f5f6f8;
    --lms-card: #ffffff;
    --lms-border: #e8eaed;
    --lms-text: #1a1d21;
    --lms-text-muted: #5f6368;
    --lms-primary: #245c51;
    --lms-primary-dark: #1a453d;
    --lms-radius: 12px;
    --lms-radius-sm: 8px;
    --lms-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --lms-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
    color: var(--lms-text);
    background: var(--lms-bg);
    border-radius: var(--lms-radius);
}
/* Progress Timeline hero – same gradient as dashboard / my-courses */
.lms-progress-timeline-hero {
    background: var(--lms-gradient-hero, linear-gradient(135deg, #245c51 0%, #1a453d 50%, #163d35 100%));
    color: #fff;
    border-radius: var(--lms-radius, 12px);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.lms-progress-timeline-hero-content {
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.lms-progress-timeline-hero-icon {
    flex-shrink: 0;
    color: #fff;
}
.lms-progress-timeline-hero-icon .lms-hero-icon {
    width: 32px;
    height: 32px;
}
.lms-progress-timeline-hero .lms-progress-timeline-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}
.lms-progress-timeline-hero .lms-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.85);
}
.lms-progress-timeline-hero .lms-breadcrumb-sep::after {
    content: "›";
}
.lms-progress-timeline-hero .lms-progress-timeline-breadcrumb a {
    color: #fff;
    text-decoration: none;
}
.lms-progress-timeline-hero .lms-progress-timeline-breadcrumb a:hover {
    text-decoration: underline !important;
}
.lms-progress-timeline-hero .lms-progress-timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #fff;
}
.lms-progress-timeline-course-wrap {
    margin-bottom: 0.5rem;
}
.lms-progress-timeline-hero .lms-progress-timeline-course-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.9375rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    min-width: 220px;
}
.lms-progress-timeline-hero .lms-progress-timeline-course-select option {
    background: #245c51;
    color: #fff;
}
.lms-progress-timeline-course-title {
    margin: 0;
    font-size: 1rem;
}
.lms-progress-timeline-hero .lms-progress-timeline-course-title a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}
.lms-progress-timeline-hero .lms-progress-timeline-course-title a:hover {
    text-decoration: none !important;
}
/* Fallback when hero is not used */
.lms-progress-timeline-breadcrumb {
    font-size: 0.875rem;
    color: var(--lms-text-muted, #64748b);
    margin-bottom: 0.5rem;
}
.lms-progress-timeline-breadcrumb a {
    color: var(--lms-primary, #245c51);
}
.lms-progress-timeline-breadcrumb a:hover {
    text-decoration: underline !important;
}
.lms-progress-timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--lms-heading, #0f172a);
}
.lms-progress-timeline-course-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.9375rem;
    border: 1px solid var(--lms-border, #e2e8f0);
    border-radius: 8px;
    background: #fff;
    color: var(--lms-text);
    min-width: 220px;
}
.lms-progress-timeline-course-title a {
    color: var(--lms-primary, #245c51);
    font-weight: 600;
}
.lms-progress-timeline-course-title a:hover {
    text-decoration: underline !important;
}
.lms-progress-timeline-empty {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--lms-bg-subtle, #f8fafc);
    border-radius: 12px;
}
.lms-progress-timeline-empty .lms-btn {
    margin-top: 1rem;
}
.lms-progress-timeline-charts {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.lms-timeline-chart-section {
    background: #fff;
    border: 1px solid var(--lms-border, #e2e8f0);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.lms-timeline-chart-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--lms-heading, #0f172a);
}
.lms-timeline-chart-wrap {
    position: relative;
    min-height: 120px;
    max-height: 220px;
    height: 200px;
}
.lms-timeline-chart-section--line .lms-timeline-chart-wrap {
    height: 180px;
    max-height: 180px;
}
.lms-timeline-chart-wrap--center {
    display: flex;
    justify-content: center;
    min-height: 140px;
    max-height: 200px;
    height: 180px;
}
.lms-timeline-chart-wrap canvas {
    max-width: 100%;
    max-height: 100%;
}
.lms-timeline-chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
}
@media (max-width: 640px) {
    .lms-timeline-chart-row {
        grid-template-columns: 1fr;
    }
}
