/* ═══════════════════════════════════════════════════════════════════════
   Luminare eLearning — Main Stylesheet  (v2 — reference redesign)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────────────────── */
.lel-app *, .lel-app *::before, .lel-app *::after {
    box-sizing: border-box; margin: 0; padding: 0;
}
.lel-app {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: 58px 1fr;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    color: #1e293b;
    background: #f0f4f8;
}

/* ══════════════════════════════════════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════════════════════════════════════ */
.lel-topnav {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    padding: 0 24px;
    height: 58px;
    border-bottom: 1px solid #e8edf2;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.lel-topnav-hamburger {
    background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; gap: 5px; padding: 4px; flex-shrink: 0;
}
.lel-topnav-hamburger span {
    display: block; width: 22px; height: 2px;
    background: #64748b; border-radius: 2px;
}
.lel-topnav-brand {
    font-size: 17px; font-weight: 700; color: #0f172a;
    white-space: nowrap;
}
.lel-topnav-brand em { color: #1d4ed8; font-style: normal; }
.lel-topnav-search {
    flex: 1;
    max-width: 380px;
    position: relative;
}
.lel-topnav-search svg {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; stroke: #94a3b8; stroke-width: 2; fill: none;
}
.lel-topnav-search input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    font-size: 13px;
    color: #0f172a;
    outline: none;
    transition: border-color .15s, background .15s;
}
.lel-topnav-search input:focus { border-color: #1d4ed8; background: #fff; }
.lel-topnav-search input::placeholder { color: #94a3b8; }
.lel-topnav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}
.lel-topnav-icon {
    position: relative;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .12s;
}
.lel-topnav-icon:hover { background: #e2e8f0; }
.lel-topnav-icon svg {
    width: 18px; height: 18px;
    stroke: #475569; stroke-width: 2; fill: none;
}
.lel-topnav-badge {
    position: absolute; top: 3px; right: 3px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}
.lel-topnav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 24px;
    cursor: pointer;
    transition: background .12s;
    border: none; background: none;
}
.lel-topnav-user:hover { background: #f1f5f9; }
.lel-topnav-user-name {
    font-size: 13px; font-weight: 600; color: #0f172a; white-space: nowrap;
}
.lel-topnav-user-role {
    font-size: 11px; color: #64748b; display: block;
}

/* ══════════════════════════════════════════════════════════════════════
   BODY LAYOUT  — grid row 2 spans sidebar + main
   ══════════════════════════════════════════════════════════════════════ */
.lel-body {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    min-height: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════════════════ */
.lel-sidebar {
    width: 200px;
    min-width: 200px;
    background: #0d1b3e;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100%;
    max-height: calc(100vh - 58px);
    overflow-y: auto;
    z-index: 100;
    transition: transform .25s ease;
}
.lel-sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-align: center;
}
.lel-sidebar-logo img {
    width: 64px; height: 64px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    padding: 4px;
}
.lel-sidebar-logo span {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .2px;
}
.lel-sidebar-logo small { color: rgba(255,255,255,.45); font-size: 10px; font-weight: 400; }

.lel-nav { list-style: none; padding: 12px 10px; flex: 1; }
.lel-nav li { margin-bottom: 2px; }
.lel-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.lel-nav li a svg {
    width: 18px; height: 18px;
    stroke: currentColor; stroke-width: 2; fill: none; flex-shrink: 0;
}
.lel-nav li a:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.9); }
.lel-nav li.active a { background: #1d4ed8; color: #fff; }

.lel-sidebar-user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 14px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.lel-sidebar-user strong { display: block; color: #fff; font-size: 12px; }
.lel-sidebar-user small { color: rgba(255,255,255,.45); font-size: 10px; text-transform: capitalize; }
.lel-avatar-sm {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.2);
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════════════════════════════════════ */
.lel-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lel-content { flex: 1; padding: 24px; }

/* ══════════════════════════════════════════════════════════════════════
   HERO BANNER
   ══════════════════════════════════════════════════════════════════════ */
.lel-hero {
    background: linear-gradient(120deg, #0d1b3e 0%, #1a3a8f 45%, #1d4ed8 100%);
    border-radius: 16px;
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    min-height: 180px;
}
/* Decorative circles */
.lel-hero::before {
    content: '';
    position: absolute;
    width: 280px; height: 280px;
    border-radius: 50%;
    border: 40px solid rgba(255,255,255,.05);
    top: -80px; right: 200px;
    pointer-events: none;
}
.lel-hero::after {
    content: '';
    position: absolute;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    bottom: -60px; left: 30%;
    pointer-events: none;
}
.lel-hero-content { position: relative; z-index: 2; max-width: 420px; }
.lel-hero h1 {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.25;
}
.lel-hero p {
    color: rgba(255,255,255,.8);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
}
.lel-btn-hero {
    display: inline-block;
    background: #fff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity .15s, transform .15s;
    letter-spacing: .2px;
}
.lel-btn-hero:hover { opacity: .92; transform: translateY(-1px); color: #1d4ed8; }

.lel-hero-illustration {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 220px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lel-hero-illustration svg { width: 100%; height: 100%; }

/* ══════════════════════════════════════════════════════════════════════
   DASHBOARD GRID
   ══════════════════════════════════════════════════════════════════════ */
.lel-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

/* ── Section ──────────────────────────────────────────────────────────── */
.lel-section {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.lel-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.lel-section-header h2 { font-size: 15px; font-weight: 700; color: #0f172a; }
.lel-link-all { font-size: 12px; color: #1d4ed8; text-decoration: none; font-weight: 600; }
.lel-link-all:hover { text-decoration: underline; }
.lel-empty { color: #94a3b8; font-size: 13px; text-align: center; padding: 24px 0; }

/* ── Quick access cards ───────────────────────────────────────────────── */
.lel-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}
.lel-quick-card {
    background: var(--card-color, #1d4ed8);
    border-radius: 12px;
    padding: 18px 12px 14px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform .15s, box-shadow .15s;
}
.lel-quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.lel-quick-icon {
    width: 52px; height: 52px;
    background: rgba(255,255,255,.18);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.lel-quick-title {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.95);
    text-align: center;
    line-height: 1.3;
}
.lel-progress-wrap { width: 100%; }
.lel-progress-label {
    display: flex; justify-content: space-between;
    font-size: 10px; color: rgba(255,255,255,.75); margin-bottom: 4px;
}
.lel-progress-bar {
    background: rgba(255,255,255,.25);
    border-radius: 4px; height: 5px; overflow: hidden;
}
.lel-progress-fill {
    height: 100%;
    background: rgba(255,255,255,.9);
    border-radius: 4px;
    transition: width .4s ease;
}

/* ── Continue learning ────────────────────────────────────────────────── */
.lel-continue-grid { display: flex; flex-direction: column; gap: 12px; }
.lel-continue-card {
    display: flex; gap: 12px;
    text-decoration: none; color: #1e293b;
    border-radius: 10px; overflow: hidden;
    border: 1px solid #e8edf2;
    transition: box-shadow .15s;
    background: #fff;
}
.lel-continue-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); color: #1e293b; }
.lel-continue-thumb {
    width: 120px; min-width: 120px; height: 80px;
    position: relative; display: flex; align-items: center;
    justify-content: center; overflow: hidden; flex-shrink: 0;
}
.lel-continue-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lel-play-btn {
    position: absolute;
    width: 32px; height: 32px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.lel-play-btn svg { width: 12px; height: 12px; fill: #1d4ed8; stroke: none; margin-left: 2px; }
.lel-continue-pct {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,.55); color: #fff; font-size: 10px;
    text-align: center; padding: 3px;
}
.lel-continue-info {
    flex: 1; padding: 10px 12px 10px 0;
    display: flex; flex-direction: column; justify-content: center; gap: 3px;
}
.lel-continue-cat {
    font-size: 10px; color: #64748b; text-transform: uppercase;
    letter-spacing: .4px; font-weight: 700;
}
.lel-continue-title { font-size: 13px; font-weight: 700; color: #0f172a; line-height: 1.3; }
.lel-continue-pct-text { font-size: 11px; color: #64748b; }
.lel-continue-info .lel-progress-bar { background: #e2e8f0; height: 4px; margin-top: 4px; }

/* ══════════════════════════════════════════════════════════════════════
   RIGHT COLUMN WIDGETS
   ══════════════════════════════════════════════════════════════════════ */
.lel-widget {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.lel-widget-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.lel-widget-header h3 { font-size: 14px; font-weight: 700; color: #0f172a; }

/* ── Mini Calendar ────────────────────────────────────────────────────── */
.lel-cal-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.lel-cal-month { font-size: 13px; font-weight: 700; color: #0f172a; }
.lel-cal-nav-btn {
    background: #f1f5f9; border: none; cursor: pointer;
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .12s;
}
.lel-cal-nav-btn:hover { background: #e2e8f0; }
.lel-cal-nav-btn svg { width: 13px; height: 13px; stroke: #475569; stroke-width: 2.5; fill: none; }
.lel-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px; text-align: center;
}
.lel-cal-dow {
    font-size: 10px; font-weight: 700; color: #94a3b8;
    padding: 4px 2px; text-transform: uppercase;
}
.lel-cal-day {
    font-size: 12px; color: #475569;
    padding: 5px 2px; border-radius: 50%;
    cursor: default; line-height: 1;
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
}
.lel-cal-day.lel-cal-today {
    background: #1d4ed8; color: #fff; font-weight: 700;
}
.lel-cal-empty { visibility: hidden; }

/* ── Task list ────────────────────────────────────────────────────────── */
.lel-task-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lel-task-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 8px;
    background: #f8fafc; border: 1px solid #e8edf2;
}
.lel-task-item.lel-task-urgent { background: #fff7ed; border-color: #fed7aa; }
.lel-task-icon {
    width: 36px; height: 36px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: #eff6ff;
}
.lel-task-icon svg { width: 17px; height: 17px; stroke: #1d4ed8; stroke-width: 2; fill: none; }
.lel-task-urgent .lel-task-icon { background: #fff7ed; }
.lel-task-urgent .lel-task-icon svg { stroke: #ea580c; }
.lel-task-body { flex: 1; min-width: 0; }
.lel-task-title { font-size: 12.5px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lel-task-course { font-size: 11px; color: #64748b; margin-top: 2px; }
.lel-task-due { display: flex; flex-direction: column; align-items: center; min-width: 28px; }
.lel-task-day { font-size: 16px; font-weight: 800; color: #0f172a; line-height: 1; }
.lel-task-mon { font-size: 9px; color: #64748b; font-weight: 700; text-transform: uppercase; }

/* ── Announcements ────────────────────────────────────────────────────── */
.lel-announce-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.lel-announce-item { display: flex; gap: 10px; align-items: flex-start; }
.lel-announce-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    border-radius: 10px;
    background: #eff6ff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.lel-announce-title { font-size: 12.5px; font-weight: 700; color: #0f172a; line-height: 1.4; }
.lel-announce-body-text { font-size: 11.5px; color: #475569; margin-top: 2px; line-height: 1.5; }
.lel-announce-course { font-size: 11px; color: #7c3aed; margin-top: 2px; font-weight: 600; }
.lel-announce-date { font-size: 10.5px; color: #94a3b8; margin-top: 3px; }

/* ══════════════════════════════════════════════════════════════════════
   COURSES VIEW
   ══════════════════════════════════════════════════════════════════════ */
.lel-page-header { margin-bottom: 24px; }
.lel-page-header h1 { font-size: 22px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.lel-page-header p { font-size: 13.5px; color: #64748b; }

.lel-courses-toolbar {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 20px; flex-wrap: wrap;
}
.lel-search-wrap { position: relative; flex: 1; min-width: 200px; }
.lel-search-wrap svg {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; stroke: #94a3b8; stroke-width: 2; fill: none;
}
.lel-search {
    width: 100%; padding: 8px 12px 8px 34px;
    border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 13px; color: #0f172a; outline: none; background: #fff;
    transition: border-color .15s;
}
.lel-search:focus { border-color: #1d4ed8; }
.lel-filter-select {
    padding: 8px 12px; border: 1px solid #e2e8f0;
    border-radius: 8px; font-size: 13px; background: #fff; outline: none; cursor: pointer;
}
.lel-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}
.lel-course-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    border: 1px solid #e8edf2; text-decoration: none; color: #1e293b;
    display: flex; flex-direction: column;
    transition: box-shadow .15s, transform .15s;
}
.lel-course-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); transform: translateY(-2px); color: #1e293b; }
.lel-course-thumb {
    height: 140px; display: flex; align-items: center;
    justify-content: center; position: relative; overflow: hidden;
}
.lel-course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lel-course-thumb-icon { font-size: 42px; }
.lel-course-badge {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,.5); color: #fff;
    font-size: 10px; padding: 3px 8px; border-radius: 20px; font-weight: 600;
}
.lel-course-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.lel-course-cat {
    font-size: 10.5px; text-transform: uppercase;
    letter-spacing: .5px; font-weight: 700; color: #7c3aed;
}
.lel-course-title { font-size: 14px; font-weight: 700; color: #0f172a; line-height: 1.35; }
.lel-course-meta { display: flex; gap: 12px; font-size: 11.5px; color: #64748b; margin-top: 4px; }
.lel-course-meta span { display: flex; align-items: center; gap: 4px; }
.lel-course-meta svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; fill: none; }
.lel-course-progress { margin-top: auto; padding-top: 10px; }
.lel-course-progress-label {
    display: flex; justify-content: space-between;
    font-size: 11px; color: #64748b; margin-bottom: 5px;
}
.lel-course-progress .lel-progress-bar { background: #e2e8f0; height: 6px; }

/* ══════════════════════════════════════════════════════════════════════
   SINGLE COURSE
   ══════════════════════════════════════════════════════════════════════ */
.lel-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: #1d4ed8; text-decoration: none;
    margin-bottom: 18px; font-weight: 600;
}
.lel-back-link svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.5; fill: none; }
.lel-back-link:hover { text-decoration: underline; }

.lel-course-hero {
    background: linear-gradient(120deg, #0d1b3e 0%, #1d4ed8 100%);
    border-radius: 14px; padding: 28px 32px;
    display: flex; gap: 24px; align-items: flex-start;
    margin-bottom: 24px; color: #fff;
}
.lel-course-hero-thumb {
    width: 90px; height: 90px; border-radius: 12px; overflow: hidden;
    flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 38px;
}
.lel-course-hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lel-course-hero-info { flex: 1; }
.lel-course-hero-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: rgba(255,255,255,.6); margin-bottom: 6px; font-weight: 700; }
.lel-course-hero-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
.lel-course-hero-desc { font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.6; margin-bottom: 14px; }
.lel-course-hero-stats { display: flex; gap: 20px; font-size: 12px; color: rgba(255,255,255,.7); }
.lel-course-hero-stats span { display: flex; align-items: center; gap: 5px; }
.lel-course-hero-stats svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }

.lel-course-layout { display: grid; grid-template-columns: 1fr 270px; gap: 20px; align-items: start; }

.lel-module {
    background: #fff; border-radius: 12px; margin-bottom: 12px;
    border: 1px solid #e8edf2; overflow: hidden;
}
.lel-module-header {
    padding: 13px 16px; display: flex; align-items: center; gap: 12px;
    cursor: pointer; user-select: none; background: #f8fafc;
    border-bottom: 1px solid #e8edf2;
}
.lel-module-header h3 { font-size: 13.5px; font-weight: 700; color: #0f172a; flex: 1; }
.lel-module-num {
    width: 26px; height: 26px; border-radius: 50%; background: #1d4ed8;
    color: #fff; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.lel-module-meta { font-size: 11px; color: #94a3b8; font-weight: 500; }
.lel-module-toggle { width: 20px; height: 20px; stroke: #94a3b8; stroke-width: 2; fill: none; transition: transform .2s; }
.lel-module.open .lel-module-toggle { transform: rotate(180deg); }

.lel-lesson-list { list-style: none; }
.lel-lesson-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 16px; border-bottom: 1px solid #f1f5f9;
    text-decoration: none; color: #1e293b; transition: background .12s;
}
.lel-lesson-item:last-child { border-bottom: none; }
.lel-lesson-item:hover { background: #f8fafc; color: #1e293b; }
.lel-lesson-item.completed { color: #64748b; }
.lel-lesson-check {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.lel-lesson-item.completed .lel-lesson-check { background: #22c55e; border-color: #22c55e; }
.lel-lesson-check svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; fill: none; display: none; }
.lel-lesson-item.completed .lel-lesson-check svg { display: block; }
.lel-lesson-title { flex: 1; font-size: 13px; font-weight: 500; }
.lel-lesson-dur { font-size: 11px; color: #94a3b8; }
.lel-lesson-type {
    width: 26px; height: 26px; display: flex; align-items: center;
    justify-content: center; border-radius: 6px; background: #f1f5f9;
}
.lel-lesson-type svg { width: 13px; height: 13px; stroke: #64748b; stroke-width: 2; fill: none; }

/* Course sidebar */
.lel-progress-circle-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 4px; }
.lel-progress-circle { position: relative; width: 90px; height: 90px; }
.lel-progress-circle svg { width: 90px; height: 90px; transform: rotate(-90deg); }
.lel-progress-circle circle { fill: none; stroke-width: 8; }
.lel-progress-circle .track { stroke: #e2e8f0; }
.lel-progress-circle .fill { stroke: #1d4ed8; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.lel-progress-pct-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 18px; font-weight: 700; color: #0f172a; }
.lel-course-stat-row { display: flex; justify-content: space-between; font-size: 12.5px; color: #475569; padding: 5px 0; border-bottom: 1px solid #f1f5f9; }
.lel-course-stat-row:last-child { border-bottom: none; }
.lel-course-stat-row strong { color: #0f172a; }

/* ══════════════════════════════════════════════════════════════════════
   LESSON VIEW
   ══════════════════════════════════════════════════════════════════════ */
.lel-lesson-layout { display: grid; grid-template-columns: 1fr 290px; gap: 20px; align-items: start; }
.lel-lesson-player { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.lel-lesson-video-wrap { background: #0f172a; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; position: relative; }
.lel-lesson-video-wrap iframe,
.lel-lesson-video-wrap video { width: 100%; height: 100%; border: none; display: block; }
.lel-audio-wrap { background: #f8fafc; aspect-ratio: unset; padding: 20px; }
.lel-lesson-no-video { color: rgba(255,255,255,.4); font-size: 13px; text-align: center; padding: 40px; }
.lel-lesson-no-video svg { width: 48px; height: 48px; stroke: rgba(255,255,255,.2); stroke-width: 1.5; fill: none; display: block; margin: 0 auto 12px; }
.lel-lesson-body { padding: 22px 24px; }
.lel-lesson-body h1 { font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.lel-lesson-breadcrumb { font-size: 12px; color: #94a3b8; margin-bottom: 14px; }
.lel-lesson-content { font-size: 14px; line-height: 1.75; color: #374151; }
.lel-lesson-content p { margin-bottom: 12px; }
.lel-lesson-content h2 { font-size: 16px; font-weight: 700; margin: 18px 0 8px; }
.lel-lesson-actions {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px; border-top: 1px solid #f1f5f9; gap: 12px; flex-wrap: wrap;
}
.lel-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer; text-decoration: none; border: none; transition: opacity .15s;
}
.lel-btn svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.5; fill: none; }
.lel-btn-primary { background: #1d4ed8; color: #fff; }
.lel-btn-primary:hover { opacity: .9; color: #fff; }
.lel-btn-success { background: #22c55e; color: #fff; }
.lel-btn-success:hover { opacity: .9; color: #fff; }
.lel-btn-outline { background: transparent; color: #475569; border: 1px solid #e2e8f0; }
.lel-btn-outline:hover { background: #f8fafc; color: #475569; }
.lel-btn:disabled { opacity: .4; pointer-events: none; }

/* ══════════════════════════════════════════════════════════════════════
   CALENDAR FULL
   ══════════════════════════════════════════════════════════════════════ */
.lel-full-calendar { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.lel-fc-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid #f1f5f9; }
.lel-fc-header h2 { font-size: 16px; font-weight: 700; color: #0f172a; }
.lel-fc-nav { display: flex; gap: 6px; }
.lel-fc-nav button { width: 30px; height: 30px; border-radius: 6px; border: 1px solid #e2e8f0; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .12s; }
.lel-fc-nav button:hover { background: #f1f5f9; }
.lel-fc-nav svg { width: 14px; height: 14px; stroke: #475569; stroke-width: 2; fill: none; }
.lel-fc-grid { padding: 0 16px 16px; }
.lel-fc-dow-row { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin-bottom: 4px; }
.lel-fc-dow { text-align: center; font-size: 11px; font-weight: 700; color: #94a3b8; padding: 10px 4px 6px; text-transform: uppercase; }
.lel-fc-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.lel-fc-day { min-height: 80px; border-radius: 8px; padding: 6px; border: 1px solid #f1f5f9; cursor: default; transition: background .12s; }
.lel-fc-day:hover { background: #f8fafc; }
.lel-fc-day-num { font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 4px; }
.lel-fc-day.today { background: #eff6ff; border-color: #bfdbfe; }
.lel-fc-day.today .lel-fc-day-num { color: #1d4ed8; font-weight: 700; }
.lel-fc-day.other-month { opacity: .35; }
.lel-fc-event { font-size: 10px; background: #1d4ed8; color: #fff; padding: 2px 5px; border-radius: 4px; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.lel-fc-event.task { background: #ea580c; }
.lel-fc-event.announcement { background: #7c3aed; }

/* ══════════════════════════════════════════════════════════════════════
   TASKS / PROGRESS / ANNOUNCEMENTS VIEWS  (reuse existing styles + extras)
   ══════════════════════════════════════════════════════════════════════ */
.lel-tasks-grid { display: flex; flex-direction: column; gap: 12px; }
.lel-task-card {
    background: #fff; border-radius: 12px; padding: 16px 20px;
    display: flex; gap: 16px; align-items: flex-start;
    border: 1px solid #e8edf2; transition: box-shadow .15s;
}
.lel-task-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.lel-task-card.urgent { border-left: 4px solid #ea580c; }
.lel-task-card-icon { width: 42px; height: 42px; border-radius: 11px; background: #eff6ff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lel-task-card-icon svg { width: 20px; height: 20px; stroke: #1d4ed8; stroke-width: 2; fill: none; }
.urgent .lel-task-card-icon { background: #fff7ed; }
.urgent .lel-task-card-icon svg { stroke: #ea580c; }
.lel-task-card-body { flex: 1; }
.lel-task-card-title { font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.lel-task-card-course { font-size: 12px; color: #7c3aed; font-weight: 600; margin-bottom: 6px; }
.lel-task-card-desc { font-size: 12.5px; color: #64748b; line-height: 1.5; }
.lel-task-card-due { display: flex; flex-direction: column; align-items: center; background: #f8fafc; border-radius: 8px; padding: 8px 12px; min-width: 54px; text-align: center; flex-shrink: 0; }
.lel-task-card-due .day { font-size: 20px; font-weight: 800; color: #0f172a; line-height: 1; }
.lel-task-card-due .month { font-size: 10px; color: #94a3b8; font-weight: 700; text-transform: uppercase; }
.urgent .lel-task-card-due { background: #fff7ed; }
.urgent .lel-task-card-due .day { color: #ea580c; }

.lel-stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 16px; margin-bottom: 24px; }
.lel-stat-card { background: #fff; border-radius: 12px; padding: 18px 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 6px; }
.lel-stat-card-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.lel-stat-card-icon svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.lel-stat-card-value { font-size: 24px; font-weight: 800; color: #0f172a; line-height: 1; }
.lel-stat-card-label { font-size: 12px; color: #64748b; }

.lel-progress-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lel-progress-table th { text-align: left; padding: 10px 14px; border-bottom: 2px solid #e2e8f0; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; color: #64748b; font-weight: 700; }
.lel-progress-table td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; color: #374151; vertical-align: middle; }
.lel-progress-table tr:hover td { background: #f8fafc; }
.lel-progress-table .pct-cell { min-width: 150px; }
.lel-progress-table .lel-progress-bar { background: #e2e8f0; height: 7px; width: 100%; }

.lel-ann-list { display: flex; flex-direction: column; gap: 14px; }
.lel-ann-card { background: #fff; border-radius: 12px; padding: 18px 20px; border: 1px solid #e8edf2; display: flex; gap: 14px; }
.lel-ann-icon { width: 42px; height: 42px; border-radius: 11px; background: #eff6ff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.lel-ann-body { flex: 1; }
.lel-ann-title { font-size: 14.5px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.lel-ann-course { font-size: 12px; color: #7c3aed; font-weight: 600; margin-bottom: 8px; }
.lel-ann-text { font-size: 13px; color: #475569; line-height: 1.6; margin-bottom: 8px; }
.lel-ann-date { font-size: 11.5px; color: #94a3b8; }

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .lel-dashboard-grid { grid-template-columns: 1fr; }
    .lel-dashboard-right { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .lel-course-layout { grid-template-columns: 1fr; }
    .lel-lesson-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .lel-app { grid-template-columns: 1fr; }
    .lel-sidebar { position: fixed; left: 0; top: 58px; bottom: 0; width: 200px; transform: translateX(-100%); z-index: 200; max-height: unset; }
    .lel-sidebar.open { transform: translateX(0); }
    .lel-content { padding: 14px; }
    .lel-hero { flex-direction: column; gap: 16px; padding: 22px; }
    .lel-hero-illustration { display: none; }
    .lel-dashboard-right { grid-template-columns: 1fr; }
    .lel-quick-grid { grid-template-columns: repeat(3,1fr); }
    .lel-stats-row { grid-template-columns: repeat(2,1fr); }
    .lel-topnav-search { display: none; }
    .lel-topnav-brand { font-size: 14px; }
}
@media (max-width: 480px) {
    .lel-quick-grid { grid-template-columns: repeat(2,1fr); }
    .lel-course-grid { grid-template-columns: 1fr; }
    .lel-hero h1 { font-size: 20px; }
    .lel-stats-row { grid-template-columns: 1fr; }
}

/* ── Scrollbar ─────────────────────────────────────────────────────────── */
.lel-sidebar::-webkit-scrollbar { width: 4px; }
.lel-sidebar::-webkit-scrollbar-track { background: transparent; }
.lel-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }
