/* =========================================================================
   Akademi Korporat – design system
   ========================================================================= */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("../vendor/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url("../vendor/fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("../vendor/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("../vendor/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("../vendor/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

:root,
[data-bs-theme="light"] {
	--brand: #0f766e;
	--brand-strong: #115e59;
	--brand-soft: #ccfbf1;
	--brand-tint: #f0fdfa;
	--accent: #f59e0b;
	--ink: #0f172a;
	--ink-2: #334155;
	--muted: #64748b;
	--line: #e5e7eb;
	--line-strong: #d1d5db;
	--canvas: #f5f6f8;
	--surface: #ffffff;
	--surface-2: #f8fafc;
	--sidebar-bg: #0c1c1b;
	--sidebar-ink: #b8c4c3;
	--sidebar-ink-strong: #ffffff;
	--sidebar-active: rgba(45, 212, 191, .14);
	--sidebar-active-ink: #5eead4;
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .03);
	--shadow-md: 0 8px 24px -12px rgba(15, 23, 42, .18);
	--radius: 14px;
	--radius-sm: 10px;

	--bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--bs-body-bg: var(--canvas);
	--bs-body-color: var(--ink);
	--bs-primary: var(--brand);
	--bs-primary-rgb: 15, 118, 110;
	--bs-link-color: var(--brand);
	--bs-link-color-rgb: 15, 118, 110;
	--bs-link-hover-color: var(--brand-strong);
	--bs-border-color: var(--line);
	--bs-secondary-color: var(--muted);
	--bs-tertiary-bg: var(--surface-2);
	--bs-emphasis-color: var(--ink);
	--bs-focus-ring-color: rgba(15, 118, 110, .25);
}

[data-bs-theme="dark"] {
	--brand: #2dd4bf;
	--brand-strong: #5eead4;
	--brand-soft: rgba(45, 212, 191, .16);
	--brand-tint: rgba(45, 212, 191, .08);
	--ink: #e5e9f0;
	--ink-2: #c3cad5;
	--muted: #8b96a8;
	--line: #263241;
	--line-strong: #334155;
	--canvas: #0b1118;
	--surface: #111a24;
	--surface-2: #0f1720;
	--sidebar-bg: #070d12;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
	--shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .6);

	--bs-body-bg: var(--canvas);
	--bs-body-color: var(--ink);
	--bs-primary: var(--brand);
	--bs-primary-rgb: 45, 212, 191;
	--bs-link-color: var(--brand);
	--bs-link-color-rgb: 45, 212, 191;
	--bs-link-hover-color: var(--brand-strong);
	--bs-border-color: var(--line);
	--bs-secondary-color: var(--muted);
	--bs-tertiary-bg: var(--surface-2);
	--bs-emphasis-color: var(--ink);
	--bs-secondary-bg: var(--surface-2);
}

html { -webkit-text-size-adjust: 100%; }
body { font-size: .925rem; letter-spacing: -.005em; background: var(--canvas); color: var(--ink); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
a { text-decoration: none; }
.text-muted { color: var(--muted) !important; }
.fw-semibold { font-weight: 600 !important; }
.small, small { font-size: .82rem; }
.text-brand { color: var(--brand) !important; }
.bg-brand-tint { background: var(--brand-tint) !important; }
::selection { background: var(--brand-soft); }

/* Buttons ---------------------------------------------------------------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-padding-x: .95rem; --bs-btn-padding-y: .5rem; --bs-btn-font-size: .875rem; border-radius: 10px; }
.btn-sm { --bs-btn-padding-x: .65rem; --bs-btn-padding-y: .3rem; --bs-btn-font-size: .8rem; border-radius: 8px; }
.btn-lg { --bs-btn-padding-y: .7rem; --bs-btn-font-size: 1rem; }
.btn-primary {
	--bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
	--bs-btn-hover-bg: var(--brand-strong); --bs-btn-hover-border-color: var(--brand-strong);
	--bs-btn-active-bg: var(--brand-strong); --bs-btn-active-border-color: var(--brand-strong);
	--bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
}
[data-bs-theme="dark"] .btn-primary { --bs-btn-color: #04201d; --bs-btn-hover-color: #04201d; --bs-btn-active-color: #04201d; --bs-btn-disabled-color: #04201d; }
.btn-outline-primary {
	--bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand);
	--bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand);
	--bs-btn-active-bg: var(--brand); --bs-btn-active-border-color: var(--brand);
}
.btn-soft { background: var(--brand-tint); color: var(--brand); border: 1px solid transparent; }
.btn-soft:hover { background: var(--brand-soft); color: var(--brand-strong); }
.btn-light { --bs-btn-bg: var(--surface); --bs-btn-border-color: var(--line); --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-border-color: var(--line-strong); --bs-btn-color: var(--ink-2); --bs-btn-hover-color: var(--ink); }
.btn-icon { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; border-radius: 10px; }
.btn-icon.btn-sm { width: 30px; height: 30px; }

/* Forms ------------------------------------------------------------------ */
.form-control, .form-select { border-radius: 10px; border-color: var(--line-strong); font-size: .9rem; padding: .55rem .8rem; background-color: var(--surface); }
.form-control-sm, .form-select-sm { padding: .35rem .65rem; font-size: .82rem; border-radius: 8px; }
.form-select { padding-right: 2.25rem; }
.form-select-sm { padding-right: 2rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }
.form-label { font-weight: 600; font-size: .83rem; color: var(--ink-2); margin-bottom: .35rem; }
.form-text { color: var(--muted); font-size: .78rem; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); border-color: var(--brand); }
.input-icon { position: relative; }
.input-icon > .bi { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > .form-control { padding-left: 2.3rem; }
.invalid-feedback { font-size: .78rem; }

/* Badges ----------------------------------------------------------------- */
.badge { font-weight: 600; font-size: .72rem; padding: .35em .6em; border-radius: 6px; letter-spacing: 0; }
.badge-soft-primary { background: var(--brand-soft); color: var(--brand-strong); }
.badge-soft-success { background: #dcfce7; color: #166534; }
.badge-soft-warning { background: #fef3c7; color: #92400e; }
.badge-soft-danger { background: #fee2e2; color: #991b1b; }
.badge-soft-secondary { background: #eef0f3; color: #475569; }
.badge-soft-info { background: #e0f2fe; color: #075985; }
[data-bs-theme="dark"] .badge-soft-success { background: rgba(34, 197, 94, .15); color: #86efac; }
[data-bs-theme="dark"] .badge-soft-warning { background: rgba(245, 158, 11, .15); color: #fcd34d; }
[data-bs-theme="dark"] .badge-soft-danger { background: rgba(239, 68, 68, .15); color: #fca5a5; }
[data-bs-theme="dark"] .badge-soft-secondary { background: rgba(148, 163, 184, .14); color: #cbd5e1; }
[data-bs-theme="dark"] .badge-soft-info { background: rgba(56, 189, 248, .14); color: #7dd3fc; }
[data-bs-theme="dark"] .badge-soft-primary { color: var(--brand-strong); }

/* App shell -------------------------------------------------------------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
	width: 260px; flex: 0 0 260px; background: var(--sidebar-bg); color: var(--sidebar-ink);
	position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; z-index: 1040;
}
.sidebar-brand { display: flex; align-items: center; gap: .7rem; padding: 1.15rem 1.25rem; color: var(--sidebar-ink-strong); }
.sidebar-brand:hover { color: var(--sidebar-ink-strong); }
.brand-mark {
	width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 36px;
	background: linear-gradient(135deg, #14b8a6, #0f766e 60%, #134e4a); color: #fff; font-size: 1.1rem;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; background: #fff; }
.brand-text { line-height: 1.15; min-width: 0; }
.brand-text strong { display: block; font-size: .98rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { font-size: .72rem; color: var(--sidebar-ink); opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: .25rem .75rem 1rem; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
.nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: rgba(184, 196, 195, .55); padding: .9rem .75rem .35rem; }
.sidebar .nav-link {
	display: flex; align-items: center; gap: .75rem; color: var(--sidebar-ink); padding: .48rem .75rem; border-radius: 9px;
	font-weight: 500; font-size: .875rem; transition: background .15s, color .15s;
}
.sidebar .nav-link .bi { font-size: 1.05rem; opacity: .85; }
.sidebar .nav-link:hover { color: var(--sidebar-ink-strong); background: rgba(255, 255, 255, .05); }
.sidebar .nav-link.active { color: var(--sidebar-active-ink); background: var(--sidebar-active); font-weight: 600; }
.sidebar .nav-link .nav-count { margin-left: auto; font-size: .7rem; background: rgba(255,255,255,.08); color: var(--sidebar-ink-strong); padding: .1rem .45rem; border-radius: 999px; }
.sidebar-footer { padding: .9rem 1.25rem; border-top: 1px solid rgba(255, 255, 255, .06); font-size: .75rem; color: rgba(184, 196, 195, .6); }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
	position: sticky; top: 0; z-index: 1030; height: 64px; display: flex; align-items: center; gap: .75rem;
	padding: 0 1.5rem; background: color-mix(in srgb, var(--canvas) 85%, transparent);
	backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--line);
}
.topbar-search { max-width: 380px; flex: 1; }
.topbar-search .form-control { background: var(--surface); border-color: var(--line); height: 38px; }
.topbar .btn-icon { color: var(--ink-2); background: transparent; border: 1px solid transparent; position: relative; }
.topbar .btn-icon:hover { background: var(--surface); border-color: var(--line); }
.notif-dot { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #ef4444; color: #fff; font-size: .62rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--canvas); }
.user-chip { display: flex; align-items: center; gap: .6rem; padding: .25rem .5rem .25rem .25rem; border-radius: 999px; border: 1px solid transparent; color: var(--ink); }
.user-chip:hover, .user-chip[aria-expanded="true"] { background: var(--surface); border-color: var(--line); color: var(--ink); }
.user-chip .meta { line-height: 1.15; text-align: left; }
.user-chip .meta strong { font-size: .84rem; display: block; font-weight: 600; }
.user-chip .meta span { font-size: .72rem; color: var(--muted); }

.content { padding: 1.75rem 1.5rem 3rem; width: 100%; max-width: 1400px; margin: 0 auto; }
.page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.5rem; margin: 0; }
.page-header .subtitle { color: var(--muted); margin: .25rem 0 0; font-size: .9rem; }
.breadcrumb { font-size: .8rem; margin-bottom: .35rem; --bs-breadcrumb-divider-color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

.sidebar-backdrop { display: none; }
@media (max-width: 991.98px) {
	.sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-md); }
	.sidebar-open .sidebar { transform: none; }
	.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(2, 6, 23, .45); z-index: 1035; }
	.topbar { padding: 0 1rem; }
	.content { padding: 1.25rem 1rem 2.5rem; }
	.page-header h1 { font-size: 1.3rem; }
}

/* Cards ------------------------------------------------------------------ */
.card { --bs-card-bg: var(--surface); --bs-card-border-color: var(--line); --bs-card-border-radius: var(--radius); --bs-card-inner-border-radius: calc(var(--radius) - 1px); box-shadow: var(--shadow-sm); }
.card-header { background: transparent; border-bottom-color: var(--line); padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.card-header h2, .card-header .card-title { font-size: .98rem; margin: 0; font-weight: 700; }
.card-body { padding: 1.25rem; }
.card-footer { background: transparent; border-top-color: var(--line); padding: .85rem 1.25rem; }

.stat-card { padding: 1.1rem 1.2rem; display: flex; gap: 1rem; align-items: flex-start; height: 100%; }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; flex: 0 0 44px; }
.stat-icon.tone-brand { background: var(--brand-soft); color: var(--brand-strong); }
.stat-icon.tone-amber { background: #fef3c7; color: #b45309; }
.stat-icon.tone-blue { background: #dbeafe; color: #1d4ed8; }
.stat-icon.tone-rose { background: #ffe4e6; color: #be123c; }
.stat-icon.tone-violet { background: #ede9fe; color: #6d28d9; }
.stat-icon.tone-green { background: #dcfce7; color: #15803d; }
[data-bs-theme="dark"] .stat-icon.tone-amber { background: rgba(245,158,11,.15); color: #fcd34d; }
[data-bs-theme="dark"] .stat-icon.tone-blue { background: rgba(59,130,246,.15); color: #93c5fd; }
[data-bs-theme="dark"] .stat-icon.tone-rose { background: rgba(244,63,94,.15); color: #fda4af; }
[data-bs-theme="dark"] .stat-icon.tone-violet { background: rgba(139,92,246,.15); color: #c4b5fd; }
[data-bs-theme="dark"] .stat-icon.tone-green { background: rgba(34,197,94,.15); color: #86efac; }
.stat-label { font-size: .78rem; color: var(--muted); font-weight: 500; margin-bottom: .15rem; }
.stat-value { font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-meta { font-size: .75rem; color: var(--muted); margin-top: .2rem; }

.hero-card {
	position: relative; overflow: hidden; border: 0; color: #fff;
	background: radial-gradient(1200px 300px at 100% 0%, rgba(45, 212, 191, .35), transparent 60%),
		linear-gradient(120deg, #0c2a28 0%, #0f4f4a 55%, #0f766e 100%);
}
.hero-card h1, .hero-card h2 { color: #fff; }
.hero-card .text-white-50 { color: rgba(255,255,255,.72) !important; }
.hero-card::after {
	content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%;
	border: 38px solid rgba(255, 255, 255, .06);
}
.hero-card .btn-light { --bs-btn-bg: #fff; --bs-btn-color: #0f4f4a; --bs-btn-border-color: #fff; --bs-btn-hover-bg: #f0fdfa; --bs-btn-hover-color: #0f4f4a; }

/* Tables ----------------------------------------------------------------- */
.table { --bs-table-bg: transparent; --bs-table-color: var(--ink); --bs-table-border-color: var(--line); margin-bottom: 0; font-size: .875rem; }
.table > thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--surface-2); border-bottom-width: 1px; padding: .7rem 1rem; white-space: nowrap; }
.table > tbody td { padding: .8rem 1rem; vertical-align: middle; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: var(--surface-2); }
.table-card { border-radius: var(--radius); overflow: hidden; }
.table .cell-user { display: flex; align-items: center; gap: .7rem; min-width: 200px; }
.table .cell-user .name { font-weight: 600; line-height: 1.2; }
.table .cell-user .sub { font-size: .76rem; color: var(--muted); }
.table-actions { white-space: nowrap; text-align: right; }

/* Avatars ---------------------------------------------------------------- */
.avatar { border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.avatar-initials {
	width: var(--avatar-size, 36px); height: var(--avatar-size, 36px); border-radius: 50%; display: inline-grid; place-items: center;
	font-size: calc(var(--avatar-size, 36px) * .38); font-weight: 700; letter-spacing: .02em; flex: 0 0 auto;
	color: hsl(var(--avatar-hue, 170) 60% 28%); background: hsl(var(--avatar-hue, 170) 70% 90%);
}
[data-bs-theme="dark"] .avatar-initials { color: hsl(var(--avatar-hue, 170) 70% 80%); background: hsl(var(--avatar-hue, 170) 35% 22%); }

/* Progress --------------------------------------------------------------- */
.progress { --bs-progress-bg: color-mix(in srgb, var(--line) 70%, transparent); --bs-progress-bar-bg: var(--brand); border-radius: 999px; }
.progress-thin { height: 6px; }
.progress .bg-success { background-color: #16a34a !important; }
.ring { --size: 56px; --value: 0; --ring-color: var(--brand); width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
	background: conic-gradient(var(--ring-color) calc(var(--value) * 1%), color-mix(in srgb, var(--line) 80%, transparent) 0); }
.ring::before { content: attr(data-label); width: calc(var(--size) - 10px); height: calc(var(--size) - 10px); border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.ring-lg::before { width: calc(var(--size) - 18px); height: calc(var(--size) - 18px); font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; }

/* Course cards ----------------------------------------------------------- */
.course-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; color: var(--ink); }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--ink); }
.course-card .card-body { display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.course-card .title { font-size: 1rem; font-weight: 700; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-card .summary { font-size: .82rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.course-card .meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .76rem; color: var(--muted); margin-top: auto; padding-top: .35rem; }
.course-card .meta .bi { margin-right: .25rem; }
.course-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-thumb-fallback {
	display: grid; place-items: center;
	background:
		radial-gradient(circle at 85% 15%, hsl(var(--thumb-hue) 80% 70% / .55), transparent 45%),
		radial-gradient(circle at 10% 90%, hsl(calc(var(--thumb-hue) + 40) 80% 60% / .45), transparent 50%),
		linear-gradient(135deg, hsl(var(--thumb-hue) 55% 32%), hsl(calc(var(--thumb-hue) + 30) 60% 22%));
}
.course-thumb-fallback span { font-size: 2rem; font-weight: 800; color: rgba(255, 255, 255, .92); letter-spacing: .02em; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.course-thumb .thumb-badges { position: absolute; top: .65rem; left: .65rem; display: flex; gap: .35rem; z-index: 1; }
.thumb-badges .badge { background: rgba(255,255,255,.94); color: #0f172a; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.thumb-badges .badge.mandatory { background: #fbbf24; color: #422006; }
.course-thumb-sm { width: 88px; aspect-ratio: 16/10; border-radius: 10px; flex: 0 0 88px; }
.course-thumb-sm.course-thumb-fallback span { font-size: 1rem; }
.category-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: .35rem; background: var(--brand); }

/* Lists ------------------------------------------------------------------ */
.list-row { display: flex; gap: .9rem; align-items: center; padding: .85rem 1.25rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.list-row:last-child { border-bottom: 0; }
a.list-row:hover { background: var(--surface-2); color: var(--ink); }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .title { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .sub { font-size: .78rem; color: var(--muted); }

.empty-state { text-align: center; padding: 2.5rem 1rem; }
.empty-state-icon { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto .9rem; display: grid; place-items: center; font-size: 1.5rem; background: var(--brand-tint); color: var(--brand); }

.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.filter-bar .form-control, .filter-bar .form-select { width: auto; min-width: 160px; }
.filter-bar .input-icon { flex: 1; min-width: 220px; max-width: 360px; }
.filter-bar .input-icon .form-control { width: 100%; }
@media (max-width: 575.98px) {
	.filter-bar > .form-select, .filter-bar > .input-icon { flex: 1 1 100%; max-width: none !important; min-width: 0; }
	.filter-bar > .form-select { width: 100%; }
}
.chip-group { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: .8rem; font-weight: 600; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
[data-bs-theme="dark"] .chip.active { color: #04201d; }

/* Tabs */
.nav-underline { --bs-nav-underline-gap: 1.5rem; --bs-nav-link-color: var(--muted); --bs-nav-link-hover-color: var(--ink); --bs-nav-underline-link-active-color: var(--brand); border-bottom: 1px solid var(--line); }
.nav-underline .nav-link { font-weight: 600; font-size: .88rem; padding: .7rem 0; }

/* Dropdowns / modals */
.dropdown-menu { --bs-dropdown-bg: var(--surface); --bs-dropdown-border-color: var(--line); --bs-dropdown-link-active-bg: var(--brand); border-radius: 12px; box-shadow: var(--shadow-md); font-size: .875rem; padding: .4rem; }
.dropdown-item { border-radius: 8px; padding: .45rem .7rem; }
.dropdown-item .bi { width: 1.25rem; color: var(--muted); }
.notif-menu { width: 360px; max-width: calc(100vw - 2rem); padding: 0; overflow: hidden; }
.notif-item { display: flex; gap: .7rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink); white-space: normal; }
.notif-item:hover { background: var(--surface-2); color: var(--ink); }
.notif-item.unread { background: var(--brand-tint); }
.notif-item .icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 32px; background: var(--surface-2); color: var(--brand); }
.notif-item .icon.success { background: #dcfce7; color: #15803d; }
.notif-item .icon.warning { background: #fef3c7; color: #b45309; }
.notif-item .icon.danger { background: #fee2e2; color: #b91c1c; }
.modal-content { background: var(--surface); border-color: var(--line); border-radius: 16px; }
.modal-header, .modal-footer { border-color: var(--line); }

.alert { border-radius: 12px; font-size: .875rem; border-width: 1px; }
.flash-stack .alert { display: flex; gap: .65rem; align-items: flex-start; }

/* Announcements */
.announcement { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.announcement:last-child { border-bottom: 0; }
.announcement .title { font-weight: 700; font-size: .92rem; margin-bottom: .2rem; }
.announcement .body { font-size: .84rem; color: var(--ink-2); white-space: pre-line; margin: 0; }
.announcement.pinned { background: linear-gradient(90deg, rgba(245, 158, 11, .08), transparent 70%); }

/* Course detail ---------------------------------------------------------- */
.course-hero { background: linear-gradient(120deg, #0c2a28, #0f4f4a 60%, #115e59); color: #fff; border-radius: var(--radius); padding: 2rem; position: relative; overflow: hidden; }
.course-hero h1 { color: #fff; font-size: 1.75rem; }
.course-hero .lead { color: rgba(255,255,255,.8); font-size: 1rem; }
.course-hero .meta-item { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; color: rgba(255,255,255,.85); }
.course-hero .badge-soft-warning { background: #fbbf24; color: #422006; }
.course-hero .badge-soft-secondary { background: rgba(255,255,255,.14); color: #fff; }
.objectives { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .6rem 1.5rem; }
.objectives li { display: flex; gap: .6rem; font-size: .88rem; }
.objectives li .bi { color: var(--brand); margin-top: .1rem; }
.curriculum-section { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: .75rem; background: var(--surface); }
.curriculum-section > .head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; background: var(--surface-2); font-weight: 700; font-size: .9rem; }
.curriculum-lesson { display: flex; align-items: center; gap: .75rem; padding: .65rem 1rem; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink); }
.curriculum-lesson .bi-type { color: var(--muted); font-size: 1rem; }
.curriculum-lesson .dur { margin-left: auto; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.sticky-side { position: sticky; top: 84px; }

/* Rich content ----------------------------------------------------------- */
.rich-content { font-size: .98rem; line-height: 1.75; color: var(--ink-2); }
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 { margin: 1.6rem 0 .7rem; line-height: 1.3; }
.rich-content h2 { font-size: 1.3rem; } .rich-content h3 { font-size: 1.1rem; }
.rich-content > :first-child { margin-top: 0; }
.rich-content p { margin-bottom: 1rem; }
.rich-content ul, .rich-content ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.rich-content li { margin-bottom: .35rem; }
.rich-content li[data-list="bullet"] { list-style-type: disc; }
.rich-content blockquote { border-left: 4px solid var(--brand); background: var(--brand-tint); padding: .8rem 1.1rem; border-radius: 0 10px 10px 0; margin: 1.25rem 0; color: var(--ink); font-style: italic; }
.rich-content code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .1rem .35rem; font-size: .85em; color: #be185d; }
[data-bs-theme="dark"] .rich-content code { color: #f9a8d4; }
.rich-content pre { background: #0f172a; color: #e2e8f0; padding: 1rem; border-radius: 10px; overflow-x: auto; }
.rich-content table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.25rem; font-size: .9rem; }
.rich-content th, .rich-content td { border: 1px solid var(--line); padding: .55rem .75rem; text-align: left; }
.rich-content th { background: var(--surface-2); font-weight: 700; color: var(--ink); }
.rich-content img { max-width: 100%; height: auto; border-radius: 10px; }
.rich-content iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; }
.rich-content kbd { background: var(--ink); color: var(--surface); border-radius: 5px; padding: .1rem .35rem; font-size: .8em; }
.rich-content .ql-align-center { text-align: center; } .rich-content .ql-align-right { text-align: right; } .rich-content .ql-align-justify { text-align: justify; }
.rich-content .ql-size-small { font-size: .8em; } .rich-content .ql-size-large { font-size: 1.4em; } .rich-content .ql-size-huge { font-size: 2em; }

/* Course player ---------------------------------------------------------- */
.player { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.player-main { min-width: 0; }
.player-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; overflow: hidden; }
.player-side .card-body { overflow-y: auto; padding: 0; }
.player-outline-section { padding: .7rem 1.1rem .35rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--muted); background: var(--surface-2); border-top: 1px solid var(--line); }
.player-outline-section:first-child { border-top: 0; }
.outline-item { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem 1.1rem; color: var(--ink-2); font-size: .85rem; border-left: 3px solid transparent; }
.outline-item:hover { background: var(--surface-2); color: var(--ink); }
.outline-item.current { background: var(--brand-tint); border-left-color: var(--brand); color: var(--ink); font-weight: 600; }
.outline-item .state { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: 0 0 20px; display: grid; place-items: center; font-size: .7rem; margin-top: .05rem; }
.outline-item.done .state { background: #16a34a; border-color: #16a34a; color: #fff; }
.outline-item .info { min-width: 0; flex: 1; }
.outline-item .info .meta { font-size: .73rem; color: var(--muted); font-weight: 500; }
.lesson-stage { border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.lesson-stage iframe, .lesson-stage video { width: 100%; height: 100%; border: 0; display: block; }
.lesson-nav { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.doc-tile { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--surface-2); }
.doc-tile .icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: #fee2e2; color: #b91c1c; flex: 0 0 48px; }
.pdf-frame { width: 100%; height: 75vh; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
@media (max-width: 1199.98px) {
	.player { grid-template-columns: 1fr; }
	.player-side { position: static; max-height: none; }
}

/* Quiz ------------------------------------------------------------------- */
.quiz-question { padding: 1.35rem 1.4rem; }
.quiz-question + .quiz-question { border-top: 1px solid var(--line); }
.quiz-question .q-no { font-size: .75rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.quiz-question .q-text { font-size: 1rem; font-weight: 600; margin: .35rem 0 1rem; white-space: pre-line; }
.quiz-option { display: flex; gap: .75rem; align-items: center; padding: .75rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: .5rem; cursor: pointer; transition: border-color .12s, background .12s; background: var(--surface); }
.quiz-option:hover { border-color: var(--brand); }
.quiz-option input { margin: 0; flex: 0 0 auto; }
.quiz-option:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.quiz-option.correct { border-color: #16a34a; background: #f0fdf4; }
.quiz-option.wrong { border-color: #dc2626; background: #fef2f2; }
[data-bs-theme="dark"] .quiz-option.correct { background: rgba(22, 163, 74, .12); }
[data-bs-theme="dark"] .quiz-option.wrong { background: rgba(220, 38, 38, .12); }
.quiz-option .tag { margin-left: auto; font-size: .72rem; font-weight: 700; }
.quiz-timer { position: sticky; top: 76px; z-index: 5; }
.timer-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; background: var(--ink); color: var(--surface); font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: var(--shadow-md); }
.timer-pill.warn { background: #dc2626; color: #fff; }
.result-score { font-size: 3.25rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.question-nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.question-nav a { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--ink-2); background: var(--surface); }
.question-nav a.answered { background: var(--brand); color: #fff; border-color: var(--brand); }
[data-bs-theme="dark"] .question-nav a.answered { color: #04201d; }

/* Curriculum builder ----------------------------------------------------- */
.builder-section { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.builder-section > .head { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-2); border-radius: 14px 14px 0 0; }
.builder-section > .head .title { font-weight: 700; flex: 1; min-width: 0; }
.builder-lessons { min-height: 44px; padding: .4rem; }
.builder-lesson { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 10px; border: 1px solid transparent; background: var(--surface); }
.builder-lesson:hover { border-color: var(--line); background: var(--surface-2); }
.builder-lesson .type-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); flex: 0 0 32px; }
.builder-lesson .type-icon.quiz { background: #ede9fe; color: #6d28d9; }
.builder-lesson .type-icon.video { background: #ffe4e6; color: #be123c; }
.builder-lesson .type-icon.document { background: #fef3c7; color: #b45309; }
[data-bs-theme="dark"] .builder-lesson .type-icon.quiz { background: rgba(139,92,246,.15); color: #c4b5fd; }
[data-bs-theme="dark"] .builder-lesson .type-icon.video { background: rgba(244,63,94,.15); color: #fda4af; }
[data-bs-theme="dark"] .builder-lesson .type-icon.document { background: rgba(245,158,11,.15); color: #fcd34d; }
.drag-handle { cursor: grab; color: var(--muted); padding: .2rem; }
.drag-handle:active { cursor: grabbing; }
.sortable-ghost { opacity: .4; background: var(--brand-tint) !important; }
.builder-empty { font-size: .8rem; color: var(--muted); text-align: center; padding: .9rem; border: 1px dashed var(--line-strong); border-radius: 10px; }

.option-row { display: flex; gap: .6rem; align-items: center; margin-bottom: .5rem; }
.option-row .form-check-input { margin: 0; width: 1.2em; height: 1.2em; flex: 0 0 auto; }

/* Quill editor */
.editor-wrap { border-radius: 10px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); }
.editor-wrap .ql-toolbar.ql-snow { border: 0; border-bottom: 1px solid var(--line); background: var(--surface-2); font-family: inherit; }
.editor-wrap .ql-container.ql-snow { border: 0; font-family: inherit; font-size: .95rem; }
.editor-wrap .ql-editor { min-height: 260px; color: var(--ink); line-height: 1.7; }
.editor-wrap.editor-sm .ql-editor { min-height: 140px; }
[data-bs-theme="dark"] .ql-snow .ql-stroke { stroke: #c3cad5; }
[data-bs-theme="dark"] .ql-snow .ql-fill { fill: #c3cad5; }
[data-bs-theme="dark"] .ql-snow .ql-picker { color: #c3cad5; }
[data-bs-theme="dark"] .ql-snow .ql-picker-options { background: var(--surface); }
[data-bs-theme="dark"] .ql-editor.ql-blank::before { color: var(--muted); }

/* Discussion */
.thread { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.thread:last-child { border-bottom: 0; }
.post { display: flex; gap: .75rem; }
.post .bubble { flex: 1; min-width: 0; }
.post .who { font-size: .84rem; font-weight: 700; }
.post .who .badge { font-size: .65rem; vertical-align: 1px; }
.post .when { font-size: .74rem; color: var(--muted); font-weight: 500; margin-left: .35rem; }
.post .text { font-size: .88rem; color: var(--ink-2); white-space: pre-line; margin: .2rem 0 .35rem; overflow-wrap: anywhere; }
.replies { margin: .75rem 0 0 2.9rem; padding-left: 1rem; border-left: 2px solid var(--line); display: grid; gap: .8rem; }

/* Auth ------------------------------------------------------------------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--surface); }
.auth-visual {
	position: relative; overflow: hidden; color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between;
	background:
		radial-gradient(800px 400px at 110% -10%, rgba(45, 212, 191, .45), transparent 60%),
		radial-gradient(600px 400px at -20% 110%, rgba(245, 158, 11, .25), transparent 60%),
		linear-gradient(150deg, #071615 0%, #0c2a28 45%, #0f4f4a 100%);
}
.auth-visual h1 { color: #fff; font-size: 2.4rem; line-height: 1.15; letter-spacing: -.035em; max-width: 520px; }
.auth-visual p { color: rgba(255,255,255,.75); max-width: 460px; font-size: 1rem; }
.auth-visual .grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 70%); pointer-events: none; }
.auth-feature { display: flex; gap: .85rem; align-items: flex-start; }
.auth-feature .bi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #5eead4; flex: 0 0 38px; font-size: 1.05rem; }
.auth-feature strong { display: block; font-size: .92rem; }
.auth-feature span { font-size: .82rem; color: rgba(255,255,255,.65); }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; }
.auth-form { width: 100%; max-width: 400px; }
.auth-form .form-control { padding: .7rem .9rem; }
.auth-form .input-icon > .form-control { padding-left: 2.4rem; }
.demo-accounts { border: 1px dashed var(--line-strong); border-radius: 12px; padding: .8rem 1rem; font-size: .8rem; background: var(--surface-2); }
.demo-accounts button { font-size: .78rem; }
@media (max-width: 991.98px) {
	.auth-shell { grid-template-columns: 1fr; }
	.auth-visual { display: none; }
}

/* Certificate ------------------------------------------------------------ */
.certificate-page { background: #e7ebef; min-height: 100vh; padding: 2rem 1rem; }
.certificate-toolbar { max-width: 1123px; margin: 0 auto 1rem; display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.certificate {
	width: 100%; max-width: 1123px; aspect-ratio: 297 / 210; margin: 0 auto; background: #fffdf8; color: #1f2937; position: relative; overflow: hidden;
	box-shadow: 0 20px 50px -20px rgba(15, 23, 42, .35); font-family: "Plus Jakarta Sans", system-ui, sans-serif; container-type: inline-size;
}
.certificate .frame { position: absolute; inset: 2.2cqw; border: .25cqw solid #0f4f4a; }
.certificate .frame::before { content: ""; position: absolute; inset: .7cqw; border: .1cqw solid #c9a227; }
.certificate .corner { position: absolute; width: 18cqw; height: 18cqw; border-radius: 50%; }
.certificate .corner.tl { left: -7cqw; top: -7cqw; background: radial-gradient(circle, rgba(15,118,110,.18), rgba(15,118,110,0) 70%); }
.certificate .corner.br { right: -7cqw; bottom: -7cqw; background: radial-gradient(circle, rgba(201,162,39,.22), rgba(201,162,39,0) 70%); }
.certificate .inner { position: absolute; inset: 5cqw 7cqw; display: flex; flex-direction: column; align-items: center; text-align: center; }
.certificate .org { display: flex; align-items: center; gap: 1cqw; font-weight: 700; font-size: 1.6cqw; color: #0f4f4a; letter-spacing: .02em; }
.certificate .org .mark { width: 3.6cqw; height: 3.6cqw; border-radius: .8cqw; background: linear-gradient(135deg, #14b8a6, #0f766e 60%, #134e4a); color: #fff; display: grid; place-items: center; font-size: 1.8cqw; }
.certificate .org .mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: .8cqw; }
.certificate .heading { margin-top: 3.2cqw; font-size: 4.4cqw; font-weight: 800; letter-spacing: .5cqw; color: #0f172a; text-transform: uppercase; line-height: 1; }
.certificate .subheading { margin-top: .8cqw; font-size: 1.35cqw; letter-spacing: .5cqw; text-transform: uppercase; color: #c9a227; font-weight: 700; }
.certificate .given { margin-top: 2.6cqw; font-size: 1.35cqw; color: #475569; }
.certificate .recipient { margin-top: .6cqw; font-size: 4cqw; font-weight: 800; color: #0f4f4a; letter-spacing: -.05cqw; border-bottom: .12cqw solid #c9a227; padding: 0 3cqw .6cqw; line-height: 1.15; }
.certificate .recipient-meta { margin-top: .7cqw; font-size: 1.2cqw; color: #64748b; }
.certificate .reason { margin-top: 2cqw; font-size: 1.35cqw; color: #475569; max-width: 70cqw; line-height: 1.5; }
.certificate .course { display: block; margin-top: .4cqw; font-size: 2.3cqw; font-weight: 700; color: #0f172a; line-height: 1.25; }
.certificate .footer { margin-top: auto; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 2cqw; }
.certificate .sign { text-align: center; font-size: 1.15cqw; color: #475569; }
.certificate .sign .line { border-top: .12cqw solid #334155; margin: 4.5cqw auto .6cqw; width: 22cqw; }
.certificate .sign strong { display: block; color: #0f172a; font-size: 1.35cqw; }
.certificate .seal { width: 10cqw; height: 10cqw; border-radius: 50%; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 35% 30%, #f6d365, #c9a227 60%, #9a7b16); color: #3b2f07; font-weight: 800; font-size: 1cqw; line-height: 1.2; letter-spacing: .05cqw; box-shadow: inset 0 0 0 .4cqw rgba(255,255,255,.35), 0 .4cqw 1cqw rgba(0,0,0,.15); text-transform: uppercase; }
.certificate .verify { display: flex; align-items: center; gap: 1cqw; justify-content: center; font-size: 1cqw; color: #64748b; text-align: left; }
.certificate .verify .qr { width: 7.5cqw; height: 7.5cqw; background: #fff; padding: .35cqw; }
.certificate .verify .qr img, .certificate .verify .qr canvas { width: 100% !important; height: 100% !important; }
.certificate .verify code { color: #0f172a; font-size: 1.1cqw; font-weight: 700; }
@media print {
	@page { size: A4 landscape; margin: 0; }
	html, body { background: #fff !important; }
	.certificate-page { padding: 0; background: #fff; }
	.certificate-toolbar { display: none !important; }
	.certificate { box-shadow: none; width: 297mm; height: 210mm; max-width: none; aspect-ratio: auto; }
	.certificate * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Utilities -------------------------------------------------------------- */
.min-w-0 { min-width: 0; }
.cursor-pointer { cursor: pointer; }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.divider { height: 1px; background: var(--line); margin: 1rem 0; }
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; background: var(--surface-2); border: 1px solid var(--line); padding: .1rem .4rem; border-radius: 6px; }
.chart-box { position: relative; height: 280px; }
.chart-box.sm { height: 220px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: .35rem; vertical-align: -1px; }
.rank { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .78rem; background: var(--surface-2); color: var(--muted); flex: 0 0 26px; }
.rank.r1 { background: #fef3c7; color: #b45309; } .rank.r2 { background: #e5e7eb; color: #374151; } .rank.r3 { background: #fde2cf; color: #9a3412; }
.print-only { display: none; }
@media print {
	.sidebar, .topbar, .no-print, .page-header .btn, .filter-bar { display: none !important; }
	.content { padding: 0; max-width: none; }
	.card { box-shadow: none; break-inside: avoid; }
	.print-only { display: block; }
	body { background: #fff; }
}
