/* =========================================================================
   GBB LMS — Apple design system (docs/DESIGN.md)
   Single accent Action Blue #0066cc. Photography-first: UI chrome recedes.
   Light tiles (#ffffff / #f5f5f7) alternate with near-black only where the
   content itself is a "hero moment". No decorative gradients, no card
   shadows. Pill = action. Radius sm (8) = utility, lg (18) = cards.
   ========================================================================= */

:root {
    /* ── Tabler variable remap ─────────────────────────────────────── */
    --tblr-primary: #0066cc;
    --tblr-primary-rgb: 0, 102, 204;
    --tblr-primary-fg: #ffffff;
    --tblr-primary-darken: #0066cc;
    --tblr-primary-lighten: #0071e3;
    --tblr-primary-text: #0066cc;
    --tblr-primary-bg-subtle: #eaf3fc;

    --tblr-blue: #0066cc;
    --tblr-blue-rgb: 0, 102, 204;
    --tblr-blue-text: #0066cc;
    --tblr-blue-bg-subtle: #eaf3fc;

    /* status kept semantic but quiet */
    --tblr-green: #1a7f37;
    --tblr-green-rgb: 26, 127, 55;
    --tblr-green-bg-subtle: #e6f4ea;
    --tblr-success: #1a7f37;
    --tblr-success-rgb: 26, 127, 55;
    --tblr-success-bg-subtle: #e6f4ea;
    --tblr-danger: #c62828;
    --tblr-danger-rgb: 198, 40, 40;
    --tblr-danger-bg-subtle: #fdecec;
    --tblr-warning: #b45309;
    --tblr-warning-rgb: 180, 83, 9;
    --tblr-warning-bg-subtle: #fdf0e2;
    --tblr-orange: #b45309;
    --tblr-orange-rgb: 180, 83, 9;
    --tblr-orange-bg-subtle: #fdf0e2;
    --tblr-secondary: #6e6e73;
    --tblr-secondary-rgb: 110, 110, 115;
    --tblr-secondary-text: #48484a;
    --tblr-secondary-bg-subtle: #ececee;
    --tblr-purple: #6e6e73;
    --tblr-purple-rgb: 110, 110, 115;
    --tblr-purple-bg-subtle: #f0f0f2;
    --tblr-purple-text: #48484a;
    --tblr-teal: #6e6e73;
    --tblr-teal-rgb: 110, 110, 115;
    --tblr-teal-bg-subtle: #f0f0f2;
    --tblr-teal-text: #48484a;
    --tblr-azure: #0066cc;
    --tblr-azure-rgb: 0, 102, 204;
    --tblr-azure-bg-subtle: #eaf3fc;
    --tblr-azure-text: #0066cc;
    --tblr-indigo: #6e6e73;
    --tblr-indigo-rgb: 110, 110, 115;
    --tblr-indigo-bg-subtle: #f0f0f2;
    --tblr-indigo-text: #48484a;
    --tblr-info: #0066cc;
    --tblr-info-rgb: 0, 102, 204;
    --tblr-info-bg-subtle: #eaf3fc;
    --tblr-info-text: #0066cc;
    --tblr-success-text: #1a7f37;
    --tblr-danger-text: #c62828;
    --tblr-warning-text: #b45309;
    --tblr-gray-100: #f5f5f7;
    --tblr-gray-200: #ececee;
    --tblr-gray-300: #d2d2d7;
    --tblr-gray-400: #b0b0b5;
    --tblr-gray-500: #86868b;
    --tblr-gray-600: #6e6e73;
    --tblr-gray-700: #48484a;
    --tblr-gray-800: #1d1d1f;

    /* surfaces — Apple parchment */
    --tblr-body-bg: #f5f5f7;
    --tblr-body-color: #1d1d1f;
    --tblr-body-color-rgb: 29, 29, 31;
    --tblr-bg-surface: #ffffff;
    --tblr-bg-surface-secondary: #f5f5f7;
    --tblr-bg-surface-tertiary: #fafafc;
    --tblr-border-color: rgba(0, 0, 0, 0.08);
    --tblr-border-color-translucent: rgba(0, 0, 0, 0.08);
    --tblr-border-color-light: #f0f0f0;
    --tblr-muted-color: #6e6e73;
    --tblr-muted-border-color: rgba(0, 0, 0, 0.06);
    --tblr-link-color: #0066cc;
    --tblr-link-hover-color: #0071e3;

    --tblr-border-radius: 11px;
    --tblr-card-border-radius: 18px;
    --tblr-badge-border-radius: 9999px;
    --tblr-font-sans-serif: -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "SF Pro Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
    --tblr-font-weight-light: 300;
    --tblr-font-weight-normal: 400;
    --tblr-font-weight-medium: 500;
    --tblr-font-weight-semibold: 600;
    --tblr-font-weight-bold: 700;
    --tblr-soft-shadow: none;
}

/* =========================================================================
   1. Base
   ========================================================================= */
html { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
        system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.47;
    letter-spacing: -0.01em;
    color: #1d1d1f;
    background: #f5f5f7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4,
.page-title, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
        system-ui, sans-serif;
    color: #1d1d1f;
    letter-spacing: -0.02em;
}

a { color: #0066cc; }
a:hover { color: #0071e3; text-decoration: none; }

.text-muted { color: #6e6e73 !important; }
code, .code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* =========================================================================
   2. Layout chassis — top nav (black 44) + frosted sub-nav (52)
   ========================================================================= */
body.lms-body {
    background: #f5f5f7;
    min-height: 100vh;
}

.lms-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 max(16px, env(safe-area-inset-left));
    background: #000;
    color: #fff;
    -webkit-backdrop-filter: none;
}
.lms-nav__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
}
.lms-nav__brand:hover { color: #fff; opacity: .85; }
.lms-nav__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #0066cc;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.lms-nav__links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.lms-nav__links::-webkit-scrollbar { display: none; }
.lms-nav__link {
    padding: 4px 12px;
    border-radius: 9999px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease;
}
.lms-nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.lms-nav__link.active { color: #fff; background: rgba(255, 255, 255, 0.2); font-weight: 600; }

.lms-nav__end {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.lms-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 10px 3px 4px;
    border-radius: 9999px;
    color: #fff;
    text-decoration: none;
    font-size: 12.5px;
}
.lms-user:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.lms-user__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #0066cc;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}
.lms-user__role {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.1;
}
.lms-user__name {
    display: block;
    font-weight: 600;
    line-height: 1.1;
}
.lms-nav .dropdown-menu {
    margin-top: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 6px;
    font-size: 14px;
}
.lms-nav .dropdown-menu .dropdown-item {
    border-radius: 9px;
    padding: 8px 12px;
}
.lms-nav .dropdown-menu .dropdown-header {
    font-size: 11px;
    color: #6e6e73;
    padding: 6px 12px;
    letter-spacing: 0.02em;
}

/* Sub-nav — frosted sticky strip holding page title + primary action */
.lms-subnav {
    position: sticky;
    top: 48px;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
    padding: 10px max(20px, env(safe-area-inset-left));
    background: rgba(245, 245, 247, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.lms-subnav__title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.1;
    color: #1d1d1f;
    margin: 0;
}
.lms-subnav__crumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-size: 12.5px;
    color: #6e6e73;
}
.lms-subnav__crumbs a { color: #6e6e73; text-decoration: none; }
.lms-subnav__crumbs a:hover { color: #0066cc; }
.lms-subnav__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.lms-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px max(20px, env(safe-area-inset-left)) 72px;
}

/* footer — quiet parchment */
.lms-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #f5f5f7;
    padding: 28px max(20px, env(safe-area-inset-left));
    text-align: center;
    color: #6e6e73;
    font-size: 12px;
}

/* =========================================================================
   3. Buttons — pill actions only; no second brand color
   ========================================================================= */
.btn {
    border-radius: 9999px;
    font-weight: 400;
    letter-spacing: -0.01em;
    padding: 8px 18px;
    transition: transform .12s ease, background-color .15s ease, color .15s ease,
        border-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(0.96); }

.btn-primary,
.btn-blue,
.btn-azure {
    --tblr-btn-bg: #0066cc;
    --tblr-btn-border-color: #0066cc;
    background-color: #0066cc;
    border-color: #0066cc;
    color: #fff;
    box-shadow: none;
}
.btn-primary:hover, .btn-blue:hover, .btn-azure:hover {
    background-color: #0071e3;
    border-color: #0071e3;
    color: #fff;
}
.btn-primary:focus, .btn-blue:focus, .btn-azure:focus,
.btn-primary:focus-visible, .btn-blue:focus-visible, .btn-azure:focus-visible {
    outline: 2px solid #0071e3;
    outline-offset: 2px;
    box-shadow: none;
}

/* ghost pills */
.btn-outline-primary, .btn-outline-blue, .btn-outline-azure {
    border: 1px solid #0066cc;
    color: #0066cc;
    background: transparent;
}
.btn-outline-primary:hover, .btn-outline-blue:hover, .btn-outline-azure:hover {
    background: #eaf3fc;
    color: #0066cc;
    border-color: #0066cc;
}

/* every colored outline collapses to neutral ink outline (chrome recedes) */
.btn-outline-secondary, .btn-outline-teal, .btn-outline-purple,
.btn-outline-green, .btn-outline-indigo, .btn-outline-dark {
    border: 1px solid rgba(0, 0, 0, 0.16);
    color: #1d1d1f;
    background: transparent;
}
.btn-outline-secondary:hover, .btn-outline-teal:hover, .btn-outline-purple:hover,
.btn-outline-green:hover, .btn-outline-indigo:hover, .btn-outline-dark:hover {
    background: #f0f0f2;
    border-color: rgba(0, 0, 0, 0.2);
    color: #1d1d1f;
}

/* ghost quiet (row actions, "Lihat Semua") */
.btn-ghost-secondary, .btn-ghost-blue, .btn-ghost-teal, .btn-ghost-purple {
    background: transparent;
    color: #6e6e73;
}
.btn-ghost-secondary:hover, .btn-ghost-blue:hover, .btn-ghost-teal:hover,
.btn-ghost-purple:hover { background: #ececee; color: #1d1d1f; }

.btn-secondary {
    background: #ececee;
    border-color: transparent;
    color: #1d1d1f;
}
.btn-secondary:hover { background: #e2e2e5; color: #1d1d1f; }

/* dark utility (compact rect grammar only for nav-scale actions) */
.btn-dark {
    background: #1d1d1f;
    border-color: #1d1d1f;
    color: #fff;
    border-radius: 8px;
}
.btn-dark:hover { background: #000; border-color: #000; color: #fff; }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 11px 24px; font-size: 17px; }

/* =========================================================================
   4. Cards — white tiles, hairline border, radius 18. No shadows.
   ========================================================================= */
.card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    box-shadow: none;
}
.card .card { border-radius: 14px; }

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 18px 22px;
}
.card-title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #1d1d1f;
    margin: 0;
}
.card-title i { color: #6e6e73; }
.card-subtitle { color: #6e6e73; font-size: 13.5px; margin-top: 2px; }
.card-body { padding: 22px; }
.card-footer {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 16px 22px;
}

/* =========================================================================
   5. Stat tiles (dashboard)
   ========================================================================= */
.stat-tile { position: relative; overflow: hidden; }
.stat-tile__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: #f0f0f2;
    color: #1d1d1f;
    font-size: 22px;
}
.stat-tile__label {
    font-size: 13px;
    color: #6e6e73;
    font-weight: 400;
    letter-spacing: 0;
}
.stat-tile__value {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #1d1d1f;
}
.stat-tile__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13.5px;
    color: #0066cc;
    text-decoration: none;
    font-weight: 400;
}
.stat-tile__link:hover { color: #0071e3; }

/* =========================================================================
   6. Tables — quiet, hairline rows, no zebra, spacious
   ========================================================================= */
.table { --tblr-table-bg: transparent; color: #1d1d1f; font-size: 14px; }
.table thead th {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #86868b;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 16px;
    white-space: nowrap;
}
.table tbody td { border-bottom: 1px solid rgba(0, 0, 0, 0.05); padding: 13px 16px; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #f7f7f9; }
.table tbody tr { transition: background-color .12s ease; }
.table-vcenter tbody td { vertical-align: middle; }
.card-table thead th:first-child, .card-table tbody td:first-child { padding-left: 22px; }
.card-table thead th:last-child, .card-table tbody td:last-child { padding-right: 22px; }

.table-responsive { border-radius: 18px; }
.card > .table-responsive > .table thead th { border-top: 0; }

/* =========================================================================
   7. Badges — quiet pills; status semantics kept subtle
   ========================================================================= */
.badge {
    border-radius: 9999px;
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: 0.01em;
    padding: 4px 10px;
}
.badge.bg-success { background: #e6f4ea !important; color: #1a7f37; }
.badge.bg-danger  { background: #fdecec !important; color: #c62828; }
.badge.bg-warning, .badge.bg-orange { background: #fdf0e2 !important; color: #b45309; }
.badge.bg-secondary, .badge.bg-dark, .badge.bg-muted { background: #ececee !important; color: #48484a; }
.badge.bg-blue, .badge.bg-blue-lt, .badge.bg-azure-lt, .badge.bg-primary-lt,
.badge.bg-teal, .badge.bg-teal-lt, .badge.bg-purple-lt, .badge.bg-purple,
.badge.bg-green-lt, .badge.bg-indigo-lt {
    background: #eaf3fc !important;
    color: #0066cc;
}
.badge.bg-orange-lt { background: #fdf0e2 !important; color: #b45309; }
.badge i { vertical-align: -1px; }

/* =========================================================================
   8. Alerts — quiet callouts
   ========================================================================= */
.alert {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    background: #fff;
    color: #1d1d1f;
    box-shadow: none;
    font-size: 14px;
}
.alert-success { background: #e6f4ea; border-color: rgba(26, 127, 55, 0.15); color: #14532d; }
.alert-danger  { background: #fdecec; border-color: rgba(198, 40, 40, 0.15); color: #7f1d1d; }
.alert-warning { background: #fdf0e2; border-color: rgba(180, 83, 9, 0.15); color: #7c3a04; }
.alert-info    { background: #eaf3fc; border-color: rgba(0, 102, 204, 0.15); color: #003c75; }
.alert i { color: currentColor; }

/* =========================================================================
   9. Forms — clean utility fields, hairline border
   ========================================================================= */
.form-label { font-size: 13px; font-weight: 600; color: #1d1d1f; letter-spacing: 0; margin-bottom: 6px; }
.form-control, .form-select, .input-group-text {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: #fff;
    color: #1d1d1f;
    font-size: 15px;
    padding: 9px 14px;
    box-shadow: none !important;
}
.form-control:focus, .form-select:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3.5px rgba(0, 102, 204, 0.15);
}
.form-control::placeholder { color: #b0b0b5; }
.form-select { border-radius: 10px; }
textarea.form-control { border-radius: 12px; }
.input-group .form-control { border-radius: 10px 0 0 10px; }
.input-group .input-group-text { border-radius: 0 10px 10px 0; }
.form-check-input:checked { background-color: #0066cc; border-color: #0066cc; }
.form-check-input:focus { box-shadow: 0 0 0 3.5px rgba(0, 102, 204, 0.15); border-color: #0066cc; }

/* search fields — signature pill */
.dataTables_filter input, .input-search {
    border-radius: 9999px !important;
    padding: 8px 18px !important;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.invalid-feedback { font-size: 12.5px; }
.form-control.is-invalid { border-color: #c62828; }

/* =========================================================================
   10. List group — quiet rows
   ========================================================================= */
.list-group-item {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.05);
    padding: 16px 22px;
    border-left: 0;
    border-right: 0;
}
.card .list-group .list-group-item:first-child { border-top: 0; }
.card .list-group .list-group-item:last-child { border-bottom: 0; border-radius: 0 0 18px 18px; }
.list-group-item strong { font-weight: 600; }
.list-group { border-radius: 0; }

/* =========================================================================
   11. DataTables chrome
   ========================================================================= */
.dt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.dt-toolbar .dataTables_length label,
.dt-toolbar .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    color: #6e6e73;
    white-space: nowrap;
}
.dt-toolbar .dataTables_length select {
    width: auto;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 8px;
}
.dt-toolbar .dataTables_filter input { width: 220px; }
.dt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.dt-footer .dataTables_info { font-size: 12.5px; color: #6e6e73; padding: 0; }
.dt-footer .dataTables_paginate { margin: 0; }
.pagination .page-link {
    border: 0;
    border-radius: 9999px !important;
    color: #1d1d1f;
    margin: 0 2px;
    font-size: 13px;
    min-width: 30px;
    text-align: center;
    background: transparent;
}
.pagination .page-item.active .page-link {
    background: #0066cc;
    color: #fff;
}
.pagination .page-link:hover { background: #ececee; color: #1d1d1f; }
.dataTables_paginate .paginate_button,
.pagination a { border-radius: 9999px !important; }
div.dataTables_processing {
    background: rgba(245, 245, 247, 0.7);
    border-radius: 9999px;
    font-size: 12.5px;
    color: #6e6e73;
}

/* =========================================================================
   12. Quiz cards (employee) — store-utility-card grammar
   ========================================================================= */
.quiz-card { display: flex; flex-direction: column; transition: border-color .15s ease; }
.quiz-card:hover { border-color: rgba(0, 0, 0, 0.18); }
.quiz-card .card-body { flex: 1; padding: 24px; }
.quiz-card .card-footer { border-top: 1px solid rgba(0, 0, 0, 0.06); padding: 16px 24px; }
.quiz-card__title {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.018em;
    line-height: 1.2;
    color: #1d1d1f;
    margin-bottom: 6px;
}
.quiz-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* progress */
.progress {
    background: #ececee;
    border-radius: 9999px;
    height: 6px !important;
}
.progress-bar { background: #0066cc; border-radius: 9999px; }
.progress-bar.bg-success { background: #1a7f37 !important; }
.progress-bar.bg-warning { background: #b45309 !important; }
.progress-bar.bg-danger { background: #c62828 !important; }

/* avatars */
.avatar {
    border-radius: 12px;
    background: #ececee;
    color: #1d1d1f;
    font-weight: 600;
}
.avatar.bg-*-lt { background: #f0f0f2; }
.avatar-lg { border-radius: 16px; font-size: 18px; }

/* =========================================================================
   13. Login — dark/light hero tile
   ========================================================================= */
.lms-login {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: #fff;
}
.lms-login__hero {
    flex: 1.1;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px clamp(32px, 6vw, 96px);
    position: relative;
    overflow: hidden;
}
.lms-login__hero::after {
    content: "";
    position: absolute;
    width: 640px;
    height: 640px;
    right: -180px;
    bottom: -220px;
    background: radial-gradient(circle at 30% 30%, rgba(0, 102, 204, 0.5), transparent 62%);
}
.lms-login__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}
.lms-login__hero h1 {
    font-size: clamp(40px, 4.4vw, 64px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #fff;
    margin: 0 0 18px;
}
.lms-login__hero p.lead {
    font-size: clamp(17px, 1.6vw, 22px);
    font-weight: 300;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
    max-width: 480px;
    margin: 0;
}
.lms-login__hero .glow-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #2997ff;
    margin-top: 28px;
}
.lms-login__panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px clamp(24px, 4vw, 64px);
    background: #fff;
}
.lms-login__card { width: min(400px, 100%); }
.lms-login__card h2 {
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.15;
    margin: 0 0 6px;
    color: #1d1d1f;
}
.lms-login__card .sub {
    color: #6e6e73;
    font-size: 15px;
    margin-bottom: 30px;
}
.lms-login__card .form-control {
    border-radius: 9999px;
    padding: 12px 20px;
    font-size: 15px;
}
.lms-login__card .btn { border-radius: 9999px; padding: 12px 20px; font-size: 16px; }
.lms-login__foot { font-size: 12.5px; color: #86868b; margin-top: 26px; text-align: center; }

/* =========================================================================
   14. Misc component polish
   ========================================================================= */
.page-empty { text-align: center; padding: 56px 24px; color: #6e6e73; }
.page-empty i { opacity: 0.25; }
.page-empty .title { font-size: 19px; font-weight: 600; color: #1d1d1f; margin: 12px 0 4px; letter-spacing: -0.01em; }
.page-empty .subtitle { font-size: 14px; color: #6e6e73; }

.nav-tabs .nav-link {
    border: 0;
    color: #6e6e73;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 9999px;
    margin-right: 4px;
}
.nav-tabs .nav-link:hover { color: #1d1d1f; background: #ececee; }
.nav-tabs .nav-link.active {
    color: #fff;
    background: #1d1d1f;
    font-weight: 500;
}

/* content hero band used on simple/landing-style pages */
.hero-band { padding: 34px 0 6px; }
.hero-band h1 {
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin: 0;
}

.dropdown-menu { border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,.1); border: 1px solid rgba(0,0,0,.08); }
.dropdown-item { font-size: 14px; padding: 8px 14px; }
.dropdown-item.text-danger { color: #c62828 !important; }
.dropdown-divider { border-color: rgba(0,0,0,.06); }

/* breadcrumb override when rendered inside subnav */
.breadcrumb { --tblr-breadcrumb-divider: ""; margin: 0; font-size: 12.5px; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; color: #c4c4c8; padding: 0 6px; }
.breadcrumb-item a { color: #6e6e73; text-decoration: none; }
.breadcrumb-item a:hover { color: #0066cc; }

/* =========================================================================
   15. Quiz engine — selectable option pills
   ========================================================================= */
.quiz-opt { position: relative; margin-bottom: 10px !important; }
.quiz-opt .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.quiz-opt .form-check-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.4;
    color: #1d1d1f;
    transition: border-color .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.quiz-opt .form-check-label:hover { border-color: rgba(0, 0, 0, 0.28); background: #fafafc; }
.quiz-opt .form-check-input:focus-visible + .form-check-label {
    outline: 2px solid #0071e3;
    outline-offset: 2px;
}
.quiz-opt .form-check-input:checked + .form-check-label {
    border-color: #0066cc;
    background: #eaf3fc;
}
.quiz-opt__key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ececee;
    color: #48484a;
    font-size: 12.5px;
    font-weight: 600;
    transition: background-color .12s ease, color .12s ease;
}
.quiz-opt .form-check-input:checked + .form-check-label .quiz-opt__key {
    background: #0066cc;
    color: #fff;
}

/* crumbs inside frosted sub-nav keep working when pages emit <li> markup */
.lms-subnav__crumbs .breadcrumb { display: contents; }
.lms-subnav__crumbs .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #86868b;
}
.lms-subnav__crumbs .breadcrumb-item a { color: #86868b; }
.lms-subnav__crumbs .breadcrumb-item a:hover { color: #0066cc; }

/* legacy tabler empty-state images (external) never load */
.empty-img img { display: none; }
.empty { padding: 40px 16px; }
.empty-title { font-size: 19px; font-weight: 600; color: #1d1d1f; letter-spacing: -0.01em; }
.empty-subtitle { color: #6e6e73; font-size: 14px; }

/* Select2 alignment */
.select2-container--bootstrap5 .select2-selection {
    border-radius: 10px !important;
    border-color: rgba(0,0,0,.14) !important;
    min-height: 42px;
}
.select2-container--bootstrap5 .select2-selection--single .select2-selection__rendered { line-height: 40px; }

@media (max-width: 991.98px) {
    .lms-login { flex-direction: column; }
    .lms-login__hero { display: none; }
    .lms-subnav__title { font-size: 22px; }
}
@media (max-width: 575.98px) {
    .lms-subnav { flex-wrap: wrap; }
    .lms-nav__brand span.brand-text { display: none; }
    .stat-tile__value { font-size: 28px; }
}

/* =========================================================================
   16. Sidebar layout (menggantikan global top-nav)
   ========================================================================= */
.lms-shell {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

/* ── Sidebar: black fixed column ─────────────────────────────────────── */
.lms-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    width: 252px;
    display: flex;
    flex-direction: column;
    background: #000;
    color: #fff;
    transition: transform .22s ease;
}
.lms-sidebar__brand {
    padding: 18px 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.lms-sidebar__nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.2) transparent;
}
.lms-sidebar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 13px;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: background-color .14s ease, color .14s ease;
}
.lms-sidebar__link i { font-size: 19px; flex-shrink: 0; opacity: .85; }
.lms-sidebar__link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; }
.lms-sidebar__link.active {
    background: rgba(0, 102, 204, 0.28);
    color: #fff;
    font-weight: 600;
}
.lms-sidebar__link.active i { color: #2997ff; opacity: 1; }

.lms-sidebar__foot {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 12px 14px;
}
.lms-sidebar__user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lms-sidebar__userinfo {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.lms-sidebar__userinfo .lms-user__name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}
.lms-sidebar__userinfo .lms-user__role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lms-sidebar__logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: background-color .14s ease, color .14s ease;
}
.lms-sidebar__logout:hover { background: rgba(198, 40, 40, 0.9); color: #fff; }

.lms-sidebar__overlay {
    display: none;
}

/* ── Main column ─────────────────────────────────────────────────────── */
.lms-main {
    flex: 1;
    min-width: 0;
    margin-left: 252px;
    display: flex;
    flex-direction: column;
}

/* sub-nav kini menempel di atas kolom konten, bukan bawah top-nav */
.lms-subnav {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 62px;
    padding: 10px 26px;
    background: rgba(245, 245, 247, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.lms-subnav__head { min-width: 0; }
.lms-subnav__title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #1d1d1f;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lms-subnav__crumbs { margin-top: 2px; }
.lms-subnav__actions { margin-left: auto; flex-shrink: 0; }

/* burger — hanya tampil mobile */
.lms-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 9999px;
    background: #fff;
    color: #1d1d1f;
    font-size: 18px;
    flex-shrink: 0;
}
.lms-burger:hover { background: #ececee; }

.lms-content {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 26px 26px 72px;
    flex: 1;
}
.lms-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #f5f5f7;
    padding: 22px 26px;
    text-align: center;
    color: #6e6e73;
    font-size: 12px;
}

/* ── Tablet / mobile: sidebar jadi off-canvas ────────────────────────── */
@media (max-width: 991.98px) {
    .lms-sidebar {
        transform: translateX(-100%);
        box-shadow: none;
        width: 280px;
    }
    .lms-sidebar.open { transform: translateX(0); box-shadow: 0 0 60px rgba(0,0,0,.35); }
    .lms-sidebar__overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1035;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .22s ease, visibility .22s ease;
    }
    .lms-sidebar__overlay.open { opacity: 1; visibility: visible; }
    .lms-main { margin-left: 0; }
    .lms-burger { display: inline-flex; }
    .lms-subnav { padding: 10px 16px; }
    .lms-content { padding: 22px 16px 56px; }
}
@media (max-width: 575.98px) {
    .lms-subnav__title { font-size: 20px; }
    .lms-subnav__actions .btn { padding: 6px 12px; font-size: 13px; }
}
