/* ================================================================
   E-Learning Shared CSS — elearning.css
   NOTE: CSS custom properties (--el-primary, --el-primary-dark,
   --el-primary-light, --el-bg, --el-card, --el-border, --el-text,
   --el-muted) are defined *inline* in each layout's <style> block
   because --el-primary depends on $company->theme_color (PHP value).
   All rules below use those tokens via var(--el-*).
   ================================================================ */

/* ══════════════════════════════════════════════════════════════════
   From: layouts/app.blade.php
   ══════════════════════════════════════════════════════════════════ */

/* ── Reset ────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--el-bg);
    color: var(--el-text);
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.el-container {
    flex: 1;
    width: 100%;
}

/* ── Topnav shell ─────────────────────────────────────────────────── */
.el-topnav {
    background: #fff;
    border-bottom: 1px solid var(--el-border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.el-topnav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    height: 3.75rem;
    gap: 1rem;
}

/* ── Left cluster: brand + links ──────────────────────────────────── */
.el-topnav-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
    min-width: 0;
}

.el-nav-brand {
    font-weight: 700;
    font-size: 1rem;
    color: var(--el-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.el-nav-logo {
    height: 2.4rem;
    width: auto;
    max-width: 3rem;
    object-fit: contain;
    border-radius: .25rem;
    flex-shrink: 0;
}

.el-brand-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    white-space: nowrap;
}

.el-brand-addr {
    font-size: .68rem;
    font-weight: 400;
    color: var(--el-muted);
    margin-top: .05rem;
}

.el-nav-links {
    display: flex;
    gap: .125rem;
    align-items: center;
}

.el-navlink {
    padding: .375rem .75rem;
    border-radius: .4rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--el-muted);
    text-decoration: none;
    transition: color .15s, background .15s;
    white-space: nowrap;
}

.el-navlink:hover {
    color: var(--el-primary);
    background: var(--el-primary-light);
}

.el-navlink.active {
    color: var(--el-primary);
    background: var(--el-primary-light);
    font-weight: 600;
}

/* ── Right cluster: lang + auth ───────────────────────────────────── */
.el-topnav-right {
    display: flex;
    align-items: center;
    gap: .625rem;
    flex-shrink: 0;
}

/* ── Language toggle (main layout style) ──────────────────────────── */
.el-lang-btn {
    background: transparent;
    border: 1px solid var(--el-border);
    color: var(--el-muted);
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1.5;
    letter-spacing: .04em;
    transition: border-color .15s, color .15s;
}

.el-lang-btn:hover {
    border-color: var(--el-primary);
    color: var(--el-primary);
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.el-btn {
    display: inline-block;
    padding: .45rem 1.1rem;
    border-radius: .45rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: .875rem;
    text-decoration: none;
    line-height: 1.5;
    transition: background .15s, color .15s, border-color .15s;
    font-family: inherit;
}

.el-btn-primary {
    background: var(--el-primary);
    color: #fff;
}

.el-btn-primary:hover {
    background: var(--el-primary-dark);
    color: #fff;
}

.el-btn-outline {
    background: transparent;
    color: var(--el-primary);
    border: 1.5px solid var(--el-primary);
}

.el-btn-outline:hover {
    background: var(--el-primary-light);
}

.el-btn-sm {
    padding: .3rem .85rem;
    font-size: .8rem;
}

/* ── User dropdown ────────────────────────────────────────────────── */
.el-user-menu {
    position: relative;
}

.el-user-btn {
    display: flex;
    align-items: center;
    gap: .45rem;
    background: none;
    border: 1px solid var(--el-border);
    border-radius: .5rem;
    padding: .3rem .65rem .3rem .4rem;
    cursor: pointer;
    font-size: .875rem;
    color: var(--el-text);
    transition: background .15s, border-color .15s;
    font-family: inherit;
}

.el-user-btn:hover {
    background: var(--el-bg);
    border-color: var(--el-primary);
}

.el-user-avatar {
    width: 1.85rem;
    height: 1.85rem;
    background: var(--el-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: .02em;
}

.el-user-name {
    font-weight: 600;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .85rem;
}

.el-user-chevron {
    font-size: .65rem;
    color: var(--el-muted);
    transition: transform .2s;
}

.el-user-btn[aria-expanded="true"] .el-user-chevron {
    transform: rotate(180deg);
}

.el-user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + .5rem);
    background: #fff;
    border: 1px solid var(--el-border);
    border-radius: .625rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
    min-width: 230px;
    z-index: 200;
    overflow: hidden;
}

.el-user-dropdown.open {
    display: block;
}

.el-dropdown-header {
    padding: .875rem 1rem;
    background: var(--el-bg);
    border-bottom: 1px solid var(--el-border);
}

.el-dropdown-name {
    font-weight: 700;
    font-size: .9rem;
    color: var(--el-text);
}

.el-dropdown-email {
    font-size: .75rem;
    color: var(--el-muted);
    margin-top: .15rem;
    word-break: break-all;
}

.el-dropdown-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: .65rem 1rem;
    font-size: .875rem;
    color: var(--el-text);
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background .15s, color .15s;
    font-family: inherit;
    line-height: 1.4;
}

.el-dropdown-item:hover {
    background: var(--el-bg);
    color: var(--el-primary);
}

.el-dropdown-divider {
    border: none;
    border-top: 1px solid var(--el-border);
    margin: .25rem 0;
}

/* ── Mobile hamburger ─────────────────────────────────────────────── */
.el-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid var(--el-border);
    padding: .45rem;
    cursor: pointer;
    border-radius: .375rem;
    transition: background .15s;
}

.el-hamburger:hover {
    background: var(--el-bg);
}

.el-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--el-text);
    border-radius: 2px;
}

/* ── Mobile nav panel ─────────────────────────────────────────────── */
.el-mobile-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid var(--el-border);
    padding: .75rem 1rem 1.25rem;
    gap: .2rem;
}

.el-mobile-nav.open {
    display: flex;
}

.el-mobile-nav .el-navlink {
    padding: .625rem .875rem;
    display: block;
    border-radius: .5rem;
}

.el-mobile-nav-divider {
    border: none;
    border-top: 1px solid var(--el-border);
    margin: .5rem 0;
}

/* ── Page container ───────────────────────────────────────────────── */
.el-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

/* ── Card base ────────────────────────────────────────────────────── */
.el-card {
    background: var(--el-card);
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .09);
    padding: 1.5rem;
}

/* ── Badges ───────────────────────────────────────────────────────── */
.el-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2em .65em;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.el-badge-public {
    background: #dcfce7;
    color: #166534;
}

.el-badge-registered {
    background: #dbeafe;
    color: #1e40af;
}

.el-badge-member {
    background: #fef9c3;
    color: #854d0e;
}

.el-badge-board {
    background: #ede9fe;
    color: #5b21b6;
}

.el-badge-employee {
    background: #fff7ed;
    color: #9a3412;
}

.el-badge-success {
    background: #dcfce7;
    color: #166534;
}

/* ── Progress bar (thin 6px base; course sidebar redefines to 8px) ── */
.el-progress {
    height: 6px;
    border-radius: 3px;
    background: var(--el-border);
    overflow: hidden;
    flex: 1;
}

.el-progress-bar {
    height: 100%;
    background: var(--el-primary);
    border-radius: 3px;
    transition: width .4s ease;
}

.el-progress-wrap {
    display: flex;
    align-items: center;
    gap: .625rem;
}

.el-progress-pct {
    font-size: .72rem;
    font-weight: 700;
    color: var(--el-primary);
    white-space: nowrap;
    min-width: 2.5rem;
    text-align: right;
}

/* ── Alerts ───────────────────────────────────────────────────────── */
.el-alert {
    padding: .75rem 1rem;
    border-radius: .5rem;
    margin-bottom: 1rem;
    font-size: .875rem;
}

.el-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.el-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.el-alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ── Footer ───────────────────────────────────────────────────────── */
.el-footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: .8rem;
    color: var(--el-muted);
    border-top: 1px solid var(--el-border);
    margin-top: 3rem;
}

.el-footer a {
    color: inherit;
    text-decoration: none;
    opacity: .75;
}

.el-footer a:hover {
    opacity: 1;
}

/* ── Responsive breakpoints ───────────────────────────────────────── */
@media (max-width: 768px) {
    .el-nav-links {
        display: none !important;
    }

    .el-hamburger {
        display: flex;
    }

    .el-user-name {
        display: none;
    }

    /* hide desktop-only topnav items on mobile — they live in the drawer */
    .el-topnav-right .el-lang-btn,
    .el-topsite-link {
        display: none !important;
    }
}

.el-mob-lang-btn {
    width: 100%;
    text-align: left;
    border-radius: .5rem;
    padding: .6rem 1rem;
    font-size: .88rem;
    background: var(--el-primary-light);
    color: var(--el-primary);
    font-weight: 600;
    border: none;
    cursor: pointer;
}


/* ══════════════════════════════════════════════════════════════════
   From: index.blade.php @section('styles')
   ══════════════════════════════════════════════════════════════════ */

/* ── Hero / Welcome strip ─────────────────────────────────────────── */
.el-hero {
    background: linear-gradient(135deg, var(--el-primary) 0%, var(--el-primary-dark) 100%);
    color: #fff;
    border-radius: .875rem;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.el-hero-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: .3rem;
    line-height: 1.25;
}

.el-hero-sub {
    font-size: .9rem;
    opacity: .85;
}

.el-hero-stats {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
}

.el-hero-stat {
    text-align: center;
}

.el-hero-stat-val {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.el-hero-stat-label {
    font-size: .72rem;
    opacity: .8;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: .2rem;
}

/* ── Page header (guest) ──────────────────────────────────────────── */
.el-page-header {
    margin-bottom: 2rem;
}

.el-page-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: .35rem;
}

.el-page-sub {
    font-size: .9rem;
    color: var(--el-muted);
}

/* ── Section label ────────────────────────────────────────────────── */
.el-section-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--el-muted);
    margin-bottom: .875rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.el-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--el-border);
}

/* ── Course grid ──────────────────────────────────────────────────── */
.el-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* ── Course card ──────────────────────────────────────────────────── */
.el-course-card {
    background: var(--el-card);
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .09);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .15s, box-shadow .15s;
}

.el-course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0, 0, 0, .12);
}

/* Card cover wrapper (positions the category chip) */
.el-course-cover-wrap {
  position: relative;
  flex-shrink: 0;
}
.el-course-cat-chip {
  position: absolute;
  top: .5rem;
  right: .5rem;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: .18rem .55rem;
  border-radius: 2rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* Card cover (thumbnail or gradient placeholder) */
.el-course-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.el-course-cover {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--el-primary) 0%, var(--el-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .65);
    flex-shrink: 0;
}

.el-course-cover svg {
    width: 3rem;
    height: 3rem;
    fill: currentColor;
}

/* Card body */
.el-course-body {
    padding: 1.1rem 1.25rem .75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.el-course-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--el-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.el-course-title:hover { color: var(--el-primary); text-decoration: none; }

.el-course-summary {
    font-size: .8rem;
    color: var(--el-muted);
    line-height: 1.45;
    margin-top: .35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.el-course-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}

.el-course-lessons {
    font-size: .75rem;
    color: var(--el-muted);
    display: flex;
    align-items: center;
    gap: .25rem;
}

.el-course-lessons svg {
    width: .85rem;
    height: .85rem;
    fill: currentColor;
    opacity: .7;
}

/* Star rating on card */
.el-card-stars {
    font-size: .8rem;
    display: flex;
    align-items: center;
    gap: .2rem;
}

.el-card-stars-filled {
    color: #f59e0b;
    letter-spacing: 1px;
}

.el-card-stars-empty {
    color: #d1d5db;
    letter-spacing: 1px;
}

.el-card-stars-count {
    font-size: .72rem;
    color: var(--el-muted);
}

/* Progress (shown only when enrolled) */
.el-card-progress {
    margin-top: .25rem;
}

.el-card-progress-label {
    font-size: .72rem;
    color: var(--el-muted);
    margin-bottom: .3rem;
    display: flex;
    justify-content: space-between;
}

.el-card-progress-label span:last-child {
    color: var(--el-primary);
    font-weight: 700;
}

.el-card-progress-label .pct {
    color: var(--el-primary);
    font-weight: 700;
}

/* Card footer (CTA) */
.el-course-footer {
    padding: .875rem 1.25rem 1rem;
    border-top: 1px solid var(--el-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.el-enroll-count {
    font-size: .72rem;
    color: var(--el-muted);
}

/* ── Empty state ──────────────────────────────────────────────────── */
.el-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--el-muted);
    background: var(--el-card);
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .09);
}

.el-empty svg {
    width: 4rem;
    height: 4rem;
    fill: currentColor;
    opacity: .25;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.el-empty-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--el-text);
    opacity: .6;
    margin-bottom: .5rem;
}

.el-empty-msg {
    font-size: .875rem;
    margin-bottom: 0;
}

.el-empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: .75rem;
}

@media (max-width: 640px) {
    .el-hero {
        padding: 1.25rem 1.25rem;
    }

    .el-hero-stats {
        gap: 1rem;
    }

    .el-hero-stat-val {
        font-size: 1.5rem;
    }
}


/* ══════════════════════════════════════════════════════════════════
   From: course.blade.php @section('styles')
   ══════════════════════════════════════════════════════════════════ */

/* ── Breadcrumb ───────────────────────────────────────────────────── */
.el-breadcrumb {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    color: var(--el-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.el-breadcrumb a {
    color: var(--el-primary);
    text-decoration: none;
}

.el-breadcrumb a:hover {
    text-decoration: underline;
}

.el-breadcrumb-sep {
    opacity: .5;
}

/* ── Two-column layout ────────────────────────────────────────────── */
.el-course-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 768px) {
    .el-course-layout {
        grid-template-columns: 1fr;
    }

    .el-course-sidebar {
        order: -1;
    }
}

/* ── Course header ────────────────────────────────────────────────── */
.el-course-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: .75rem;
}

.el-course-desc {
    font-size: .9rem;
    line-height: 1.7;
    color: var(--el-muted);
    margin-bottom: 1.25rem;
}

/* ── Lessons timeline ─────────────────────────────────────────────── */
.el-lessons-section {
    margin-top: 1.5rem;
}

.el-lessons-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--el-border);
}

.el-lesson-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.el-lesson-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .75rem 1rem;
    border: 1.5px solid var(--el-border);
    border-radius: .6rem;
    background: var(--el-card);
    transition: border-color .15s;
}

.el-lesson-item:hover {
    border-color: var(--el-primary);
}

.el-lesson-item.is-completed {
    border-color: #86efac;
    background: #f0fdf4;
}

.el-lesson-item.is-locked {
    opacity: .55;
    cursor: not-allowed;
}

.el-lesson-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 1.5rem;
    text-align: center;
}

.el-lesson-info {
    flex: 1;
    min-width: 0;
}

.el-lesson-name {
    font-size: .875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.el-lesson-badges {
    display: flex;
    gap: .35rem;
    margin-top: .2rem;
    flex-wrap: wrap;
}

.el-lesson-num {
    font-size: .7rem;
    background: var(--el-border);
    color: var(--el-muted);
    border-radius: 999px;
    padding: .1em .5em;
    font-weight: 600;
}

.el-lesson-status {
    font-size: 1rem;
    flex-shrink: 0;
}

/* ── Sidebar card ─────────────────────────────────────────────────── */
.el-course-sidebar {
    position: sticky;
    top: 1.5rem;
}

.el-sidebar-card {
    background: var(--el-card);
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    overflow: hidden;
}

.el-sidebar-header {
    background: var(--el-primary);
    color: #fff;
    padding: 1.25rem 1.25rem .75rem;
}

.el-sidebar-header .el-badge {
    margin-bottom: .5rem;
}

.el-sidebar-price {
    font-size: 1rem;
    font-weight: 700;
}

.el-sidebar-body {
    padding: 1.25rem;
}

.el-sidebar-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .83rem;
    padding: .4rem 0;
    border-bottom: 1px solid var(--el-border);
    color: var(--el-muted);
}

.el-sidebar-stat:last-of-type {
    border-bottom: none;
}

.el-sidebar-stat strong {
    color: var(--el-text);
}

.el-sidebar-actions {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

/* Progress in sidebar (8px) */
.el-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    margin-bottom: .35rem;
    color: var(--el-muted);
}

/* Alert box */
.el-info-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: .5rem;
    padding: .7rem 1rem;
    font-size: .8rem;
    line-height: 1.5;
}


/* ══════════════════════════════════════════════════════════════════
   From: dashboard.blade.php @section('styles')
   ══════════════════════════════════════════════════════════════════ */

/* ── Dashboard header ─────────────────────────────────────────────── */
.el-dash-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.el-dash-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--el-text);
    margin-bottom: .25rem;
}

.el-dash-sub {
    font-size: .875rem;
    color: var(--el-muted);
}

/* ── Stats row ────────────────────────────────────────────────────── */
.el-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.el-stat-card {
    background: var(--el-card);
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .09);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.el-stat-val {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--el-primary);
    line-height: 1;
}

.el-stat-label {
    font-size: .73rem;
    color: var(--el-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ── Section heading ──────────────────────────────────────────────── */
.el-section-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--el-border);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.el-section-count {
    background: var(--el-primary-light);
    color: var(--el-primary);
    font-size: .72rem;
    font-weight: 700;
    padding: .1em .55em;
    border-radius: 999px;
}

.el-courses-grid {
    margin-bottom: 2rem;
}

.el-course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0, 0, 0, .12);
}

.el-enrolled-date {
    font-size: .72rem;
    color: var(--el-muted);
}

@media (max-width: 640px) {
    .el-stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .el-stats-row .el-stat-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 400px) {
    .el-stats-row {
        grid-template-columns: 1fr;
    }

    .el-stats-row .el-stat-card:last-child {
        grid-column: span 1;
    }
}


/* ══════════════════════════════════════════════════════════════════
   From: my-courses.blade.php @section('styles')
   ══════════════════════════════════════════════════════════════════ */

/* ── Filter tabs ──────────────────────────────────────────────────── */
.el-filter-tabs {
    display: flex;
    gap: .375rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--el-border);
    padding-bottom: 0;
}

.el-filter-tab {
    padding: .55rem 1.1rem;
    border: none;
    background: none;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 500;
    color: var(--el-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
    border-radius: .35rem .35rem 0 0;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.el-filter-tab:hover {
    color: var(--el-primary);
}

.el-filter-tab.active {
    color: var(--el-primary);
    border-bottom-color: var(--el-primary);
    font-weight: 700;
}

.el-tab-count {
    background: var(--el-border);
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    padding: .1em .5em;
    color: var(--el-muted);
    transition: background .15s, color .15s;
}

.el-filter-tab.active .el-tab-count {
    background: var(--el-primary-light);
    color: var(--el-primary);
}

/* hidden card (filtered out) */
.el-course-card[aria-hidden="true"] {
    display: none;
}


/* ══════════════════════════════════════════════════════════════════
   From: lesson.blade.php @section('styles')
   ══════════════════════════════════════════════════════════════════ */

/* ── Lesson layout ────────────────────────────────────────────────── */
.el-lesson-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 768px) {
    .el-lesson-layout {
        grid-template-columns: 1fr;
    }

    .el-lesson-sidebar {
        order: -1;
    }
}

/* ── Content panel ────────────────────────────────────────────────── */
.el-lesson-heading {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.35;
}

/* Video embed */
.el-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: .6rem;
    background: #000;
    margin-bottom: 1.25rem;
}

.el-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* PDF embed */
.el-pdf-wrap {
    width: 100%;
    border-radius: .6rem;
    overflow: hidden;
    border: 1.5px solid var(--el-border);
    margin-bottom: 1.25rem;
}

.el-pdf-wrap iframe,
.el-pdf-wrap embed {
    width: 100%;
    height: 600px;
    border: 0;
    display: block;
}

/* Text content */
.el-text-content {
    background: var(--el-card);
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    line-height: 1.8;
    font-size: .92rem;
}

.el-text-content h1,
.el-text-content h2,
.el-text-content h3 {
    margin: 1em 0 .5em;
    font-weight: 700;
}

.el-text-content p {
    margin-bottom: .85em;
}

.el-text-content ul,
.el-text-content ol {
    padding-left: 1.5rem;
    margin-bottom: .85em;
}

.el-text-content img {
    max-width: 100%;
    border-radius: .4rem;
}

/* ── Quiz ─────────────────────────────────────────────────────────── */
.el-quiz-form {
    background: var(--el-card);
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.el-quiz-q {
    margin-bottom: 1.5rem;
}

.el-quiz-q-text {
    font-weight: 600;
    font-size: .92rem;
    margin-bottom: .75rem;
    line-height: 1.5;
}

.el-quiz-q-num {
    font-size: .72rem;
    background: var(--el-primary);
    color: #fff;
    border-radius: 999px;
    padding: .15em .55em;
    margin-right: .4rem;
    font-weight: 700;
}

.el-option-label {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .6rem .85rem;
    border: 1.5px solid var(--el-border);
    border-radius: .5rem;
    cursor: pointer;
    margin-bottom: .4rem;
    font-size: .875rem;
    transition: border-color .15s, background .15s;
}

.el-option-label:hover {
    border-color: var(--el-primary);
    background: var(--el-primary-light, #eff6ff);
}

.el-option-label input[type="radio"] {
    margin-top: .15rem;
    accent-color: var(--el-primary);
    flex-shrink: 0;
}

.el-quiz-textarea {
    width: 100%;
    min-height: 100px;
    padding: .6rem .85rem;
    border: 1.5px solid var(--el-border);
    border-radius: .5rem;
    font-size: .875rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color .15s;
}

.el-quiz-textarea:focus {
    outline: none;
    border-color: var(--el-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--el-primary) 15%, #fff);
}

.el-quiz-submit {
    background: var(--el-primary);
    color: #fff;
    border: none;
    padding: .6rem 1.5rem;
    border-radius: .5rem;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.el-quiz-submit:hover {
    background: var(--el-primary-dark);
}

.el-quiz-already-done {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: .6rem;
    padding: .85rem 1rem;
    font-size: .875rem;
    color: #166534;
    margin-bottom: 1rem;
}

/* Read-only state — completed quiz with saved answers */
.el-option-readonly { cursor: default; pointer-events: none; }
.el-option-readonly input[type="radio"]:checked + span { font-weight: 700; color: var(--el-primary); }
.el-quiz-your-ans {
    display: inline-block;
    margin-left: .5rem;
    font-size: .75rem;
    font-weight: 600;
    color: #166534;
    background: #dcfce7;
    border-radius: 999px;
    padding: .1rem .55rem;
    vertical-align: middle;
}
.el-quiz-textarea-readonly {
    background: #f8fafc;
    color: var(--el-text);
    cursor: default;
    resize: none;
    border-color: var(--el-border);
}

/* ── Action bar ───────────────────────────────────────────────────── */
.el-lesson-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    border-top: 1px solid var(--el-border);
    margin-top: .5rem;
}

.el-mark-btn {
    background: var(--el-primary);
    color: #fff;
    border: none;
    padding: .55rem 1.25rem;
    border-radius: .5rem;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.el-mark-btn:hover {
    background: var(--el-primary-dark, #1d4ed8);
}

.el-mark-btn:disabled {
    background: var(--el-primary);
    opacity: .5;
    cursor: not-allowed;
}

.el-mark-done {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: #16a34a;
    font-size: .9rem;
    font-weight: 600;
}

.el-next-btn {
    display: inline-block;
    background: var(--el-primary);
    color: #fff;
    padding: .55rem 1.25rem;
    border-radius: .5rem;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}

.el-next-btn:hover {
    background: var(--el-primary-dark);
    color: #fff;
}
.el-next-btn--locked {
    opacity: .45;
    pointer-events: none;
    cursor: not-allowed;
}

/* ── Sidebar ──────────────────────────────────────────────────────── */
.el-lesson-sidebar {
    position: sticky;
    top: 1.5rem;
}

.el-lesson-sidebar-card {
    background: var(--el-card);
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    overflow: hidden;
}

.el-sidebar-head {
    padding: .85rem 1rem;
    font-size: .82rem;
    font-weight: 700;
    border-bottom: 1px solid var(--el-border);
    color: var(--el-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.el-sidebarlist {
    list-style: none;
    max-height: 70vh;
    overflow-y: auto;
}

.el-sidebarlist-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1rem;
    border-bottom: 1px solid var(--el-border);
    font-size: .8rem;
    transition: background .12s;
}

.el-sidebarlist-item:last-child {
    border-bottom: none;
}

.el-sidebarlist-item.is-current {
    background: color-mix(in srgb, var(--el-primary) 10%, #fff);
    border-left: 3px solid var(--el-primary);
}

.el-sidebarlist-item.is-done {
    color: #16a34a;
}

.el-sidebarlist-item.is-locked {
    opacity: .45;
    cursor: not-allowed;
}

.el-sidebarlist-item a {
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.el-sidebarlist-item a:hover {
    color: var(--el-primary);
}

.el-sl-icon {
    font-size: .9rem;
    flex-shrink: 0;
}

.el-sl-name {
    flex: 1;
    line-height: 1.35;
}

.el-sl-check {
    flex-shrink: 0;
    font-size: .85rem;
    color: #16a34a;
}

/* ── Completion banner ────────────────────────────────────────────── */
#el-complete-banner {
    display: none;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: .6rem;
    padding: .85rem 1rem;
    margin-bottom: 1rem;
    font-size: .875rem;
    color: #166534;
}


/* ══════════════════════════════════════════════════════════════════
   From: certificate.blade.php @section('styles')
   ══════════════════════════════════════════════════════════════════ */

.el-cert-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.el-cert-actions-left {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.el-cert-no {
    font-size: .8rem;
    color: var(--el-muted);
    background: var(--el-border);
    padding: .25em .7em;
    border-radius: .4rem;
    font-family: monospace;
    font-weight: 600;
}

.el-cert-card {
    background: var(--el-card);
    border-radius: .875rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    padding: 2rem;
    overflow-x: auto;
}

/* Default certificate when no template HTML provided */
.el-cert-default {
    border: 4px solid var(--el-primary);
    border-radius: .75rem;
    padding: 3rem 2rem;
    text-align: center;
    font-family: Georgia, 'Times New Roman', serif;
    max-width: 720px;
    margin: 0 auto;
}

.el-cert-default-issuer {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--el-muted);
    margin-bottom: 1.5rem;
}

.el-cert-default-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--el-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.el-cert-default-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1.5rem;
}

.el-cert-default-name {
    display: inline-block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--el-text);
    border-bottom: 2px solid var(--el-primary);
    padding-bottom: .2rem;
    margin: .5rem 0;
}

.el-cert-default-course {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--el-text);
}

.el-cert-default-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.el-cert-default-date {
    font-size: .85rem;
    color: var(--el-muted);
}

.el-cert-default-certno {
    font-size: .8rem;
    color: var(--el-muted);
    font-family: monospace;
}

.el-cert-seal {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--el-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #fff;
    font-size: 2rem;
}

/* ── Review section ──────────────────────────────────────────────── */
.el-cert-review-section {
    margin-top: 1.5rem;
    background: var(--el-card);
    border: 1.5px solid var(--el-border);
    border-radius: .875rem;
    padding: 1.5rem;
}

.el-cert-review-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--el-text);
}

.el-cert-star-picker {
    display: flex;
    gap: .4rem;
    margin-bottom: .85rem;
    font-size: 2rem;
    cursor: pointer;
}

.el-cert-star-picker label {
    cursor: pointer;
    color: #d1d5db;
    transition: color .1s;
    line-height: 1;
}

@media print {

    .el-nav,
    .el-cert-actions,
    .el-cert-review-section,
    .el-footer {
        display: none !important;
    }

    .el-container {
        padding: 0;
        max-width: none;
    }

    .el-cert-card {
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }

    body {
        background: #fff;
    }
}

/* ================================================================
   Auth layout — login / register pages
   ================================================================ */
.el-nav {
  background: var(--el-primary);
  color: #fff;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.el-nav .el-nav-brand {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
}
.el-nav .el-nav-links { margin-left: auto; display: flex; gap: .75rem; align-items: center; }
.el-nav .el-nav-links a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .85rem; }
.el-nav .el-nav-links a:hover { color: #fff; }
.el-nav .el-lang-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 999px;
  cursor: pointer;
}
.el-auth-wrap {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.el-auth-card {
  background: var(--el-card);
  border-radius: .875rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  padding: 2rem 2rem 2.5rem;
  width: 100%;
  max-width: 440px;
}
.el-auth-logo { text-align: center; margin-bottom: 1.5rem; }
.el-auth-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--el-primary-light);
  margin-bottom: .5rem;
}
.el-auth-logo-icon svg { width: 1.5rem; height: 1.5rem; fill: var(--el-primary); }
.el-auth-heading { font-size: 1.3rem; font-weight: 700; text-align: center; margin-bottom: .25rem; }
.el-auth-sub { font-size: .82rem; color: var(--el-muted); text-align: center; margin-bottom: 1.5rem; }
.el-form-group { margin-bottom: 1rem; }
.el-label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; color: var(--el-text); }
.el-input {
  width: 100%;
  padding: .55rem .85rem;
  border: 1.5px solid var(--el-border);
  border-radius: .5rem;
  font-size: .9rem;
  background: #fff;
  color: var(--el-text);
  transition: border-color .15s;
}
.el-input:focus { outline: none; border-color: var(--el-primary); box-shadow: 0 0 0 3px var(--el-primary-light); }
.el-input.is-invalid { border-color: #f87171; }
.el-invalid-msg { font-size: .78rem; color: #b91c1c; margin-top: .3rem; }
.el-auth-footer { text-align: center; margin-top: 1.25rem; font-size: .82rem; color: var(--el-muted); }
.el-auth-footer a { color: var(--el-primary); text-decoration: none; font-weight: 600; }
.el-auth-footer a:hover { text-decoration: underline; }

/* ── Certificate share buttons ───────────────────────────────────────── */
.el-cert-share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.el-btn-share {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .38rem .85rem;
  border-radius: .45rem;
  font-size: .8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s, transform .1s;
  color: #fff;
  white-space: nowrap;
}
.el-btn-share:hover { opacity: .88; transform: translateY(-1px); color: #fff; text-decoration: none; }
.el-share-fb   { background: #1877f2; }
.el-share-wa   { background: #25d366; }
.el-share-x    { background: #000; }
.el-share-copy { background: #64748b; }

/* ── Course sort bar ─────────────────────────────────────────────────── */
.el-sort-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.el-cat-select {
  margin-left: auto;
  padding: .35rem .75rem;
  border: 1.5px solid var(--el-border);
  border-radius: 2rem;
  background: var(--el-card);
  color: var(--el-text);
  font-size: .82rem;
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
  max-width: 200px;
}
.el-cat-select:focus {
  border-color: var(--el-primary);
}
.el-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .4rem 1rem;
  border-radius: 2rem;
  border: 1.5px solid var(--el-border);
  background: var(--el-card);
  color: var(--el-muted);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}
.el-sort-btn:hover {
  border-color: var(--el-primary);
  color: var(--el-primary);
}
.el-sort-btn.active {
  border-color: var(--el-primary);
  background: var(--el-primary);
  color: #fff;
}
.el-share-icon-only {
  padding: .38rem .5rem;
  min-width: 2.1rem;
  justify-content: center;
}
