:root {
    --bg: #f4f7f7;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-tint: #f0fdfa;
    --text: #102a2a;
    --muted: #64748b;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --primary: #0f766e;
    --primary-dark: #115e59;
    --primary-soft: #ccfbf1;
    --accent: #f59e0b;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --warning: #d97706;
    --warning-soft: #fef3c7;
    --success: #15803d;
    --success-soft: #dcfce7;
    --info: #2563eb;
    --info-soft: #dbeafe;
    --sidebar: #0b2f2e;
    --sidebar-soft: #123d3b;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow: 0 10px 30px rgba(15, 23, 42, .07);
    --radius: 14px;
    --radius-sm: 9px;
    --sidebar-width: 270px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
svg { flex: 0 0 auto; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    color: #d9eeec;
    background: var(--sidebar);
    z-index: 50;
}
.brand {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-link { min-width: 0; display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.brand-mark img { width: 100%; height: 100%; display: block; }
.brand-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { color: #fff; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-copy small { color: #91c5c0; margin-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.sidebar-close { display: none !important; color: #fff !important; font-size: 24px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 20px 14px; scrollbar-width: thin; }
.nav-label { padding: 0 12px 8px; color: #6fa8a3; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.nav-label-spaced { margin-top: 22px; }
.nav-item {
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    margin: 2px 0;
    color: #b8d6d3;
    border-radius: 10px;
    font-weight: 600;
    transition: .18s ease;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.active { color: #fff; background: var(--sidebar-soft); box-shadow: inset 3px 0 0 #5eead4; }
.sidebar-footer { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px; background: rgba(255,255,255,.055); border-radius: 12px; }
.sidebar-user-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.sidebar-user-copy strong { color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-copy small { color: #91c5c0; margin-top: 3px; font-size: 11px; }
.sidebar-user .icon-btn { color: #9bc8c3; }
.sidebar-overlay { display: none; }

.main-area { min-height: 100vh; margin-left: var(--sidebar-width); display: flex; flex-direction: column; }
.topbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 30px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(12px);
}
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar h1 { margin: 0; color: #0f2928; font-size: 21px; line-height: 1.2; letter-spacing: -.025em; }
.eyebrow { margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.mobile-menu { display: none !important; }
.notification-button { position: relative; }
.notification-dot { position: absolute; top: -4px; right: -3px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; color: #fff; background: var(--danger); border: 2px solid #fff; border-radius: 99px; font-size: 9px; font-weight: 800; }
.content-wrap { flex: 1; width: 100%; max-width: 1580px; margin: 0 auto; padding: 28px 30px 40px; }
.footer { display: flex; justify-content: space-between; gap: 16px; padding: 20px 30px; color: var(--muted); border-top: 1px solid var(--border); font-size: 12px; }

.icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: .18s ease;
}
.icon-btn:hover { color: var(--primary); background: var(--surface-tint); }

.btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 15px;
    color: #fff;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: .18s ease;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 35px; padding: 7px 11px; font-size: 12px; border-radius: 9px; }
.btn-lg { min-height: 48px; padding: 12px 20px; }
.btn-block { width: 100%; }
.btn-secondary { color: var(--primary); background: var(--primary-soft); border-color: transparent; }
.btn-secondary:hover { color: #fff; background: var(--primary); }
.btn-ghost { color: #334155; background: #fff; border-color: var(--border); }
.btn-ghost:hover { color: var(--primary); background: var(--surface-tint); border-color: #99f6e4; }
.btn-danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.btn-link { min-height: auto; padding: 0; color: var(--primary); background: transparent; border: 0; }
.btn-link:hover { color: var(--primary-dark); background: transparent; transform: none; }

.alert { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; padding: 13px 15px; border: 1px solid; border-radius: 11px; transition: .25s ease; }
.alert-hide { opacity: 0; transform: translateY(-5px); }
.alert-success { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.alert-warning { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.alert-danger, .alert-error { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
.alert-info { color: #1e40af; background: #eff6ff; border-color: #bfdbfe; }
.alert-close { color: inherit; background: none; border: 0; font-size: 20px; cursor: pointer; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 19px; border-bottom: 1px solid var(--border); }
.card-header h2, .card-header h3 { margin: 0; color: #163534; font-size: 15px; letter-spacing: -.015em; }
.card-header p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; background: var(--surface-soft); border-top: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
.card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout-main-aside { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .7fr); gap: 22px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }

.page-actions { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; }
.page-actions-copy h2 { margin: 0; font-size: 17px; }
.page-actions-copy p { margin: 4px 0 0; color: var(--muted); }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 22px; }
.stat-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 15px; min-height: 118px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -35px; bottom: -40px; background: var(--primary-soft); border-radius: 50%; opacity: .65; }
.stat-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--primary); background: var(--surface-tint); border: 1px solid #ccfbf1; border-radius: 13px; }
.stat-copy { min-width: 0; position: relative; z-index: 1; }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 650; }
.stat-value { margin-top: 3px; color: #0f2928; font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -.04em; }
.stat-meta { margin-top: 6px; color: var(--muted); font-size: 11px; }

.welcome-card { overflow: hidden; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 190px; margin-bottom: 22px; padding: 30px; color: #eafffc; background: linear-gradient(110deg, #0b4f4b, #0f766e); border-radius: 18px; box-shadow: 0 18px 45px rgba(15,118,110,.2); }
.welcome-card::before { content: ""; position: absolute; width: 320px; height: 320px; right: -100px; top: -160px; border: 55px solid rgba(255,255,255,.07); border-radius: 50%; }
.welcome-copy { position: relative; z-index: 1; max-width: 720px; }
.welcome-label { margin-bottom: 8px; color: #99f6e4; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.welcome-card h2 { margin: 0; color: #fff; font-size: 27px; letter-spacing: -.035em; }
.welcome-card p { margin: 10px 0 0; max-width: 620px; color: #c9efeb; }
.welcome-actions { position: relative; z-index: 1; display: flex; gap: 9px; flex-wrap: wrap; }
.welcome-card .btn-ghost { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.welcome-card .btn-ghost:hover { background: rgba(255,255,255,.18); }

.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 3px 9px; border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: .015em; white-space: nowrap; }
.badge-success { color: var(--success); background: var(--success-soft); }
.badge-warning { color: var(--warning); background: var(--warning-soft); }
.badge-danger { color: var(--danger); background: var(--danger-soft); }
.badge-info { color: var(--info); background: var(--info-soft); }
.badge-muted { color: #475569; background: #e2e8f0; }
.badge-primary { color: var(--primary-dark); background: var(--primary-soft); }

.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 680px; }
.table th { padding: 11px 14px; color: #64748b; background: var(--surface-soft); border-bottom: 1px solid var(--border); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfefd; }
.table-actions { display: flex; align-items: center; gap: 5px; justify-content: flex-end; }
.table-user { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.table-user-copy { display: flex; flex-direction: column; min-width: 0; }
.table-user-copy strong { color: #163534; }
.table-user-copy small { color: var(--muted); }

.avatar { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; }
.avatar-sm { width: 31px; height: 31px; }
.avatar-lg { width: 74px; height: 74px; }
.avatar-text { display: inline-grid; place-items: center; color: #eafffc; background: #197d75; font-size: 12px; font-weight: 800; }
.avatar-lg.avatar-text { font-size: 22px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-group { min-width: 0; }
.form-group-full { grid-column: 1 / -1; }
.form-label { display: block; margin-bottom: 6px; color: #334155; font-size: 12px; font-weight: 700; }
.form-control, .form-select, .form-textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    outline: none;
    transition: .18s ease;
}
.form-textarea { min-height: 115px; resize: vertical; }
.form-control:focus, .form-select:focus, .form-textarea:focus { border-color: #2dd4bf; box-shadow: 0 0 0 3px rgba(45,212,191,.13); }
.form-control::placeholder, .form-textarea::placeholder { color: #94a3b8; }
.form-hint { margin-top: 5px; color: var(--muted); font-size: 11px; }
.form-check { display: flex; align-items: flex-start; gap: 8px; }
.form-check input { margin-top: 4px; accent-color: var(--primary); }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.input-group { display: flex; }
.input-group .form-control { border-radius: 9px 0 0 9px; }
.input-group .btn { border-radius: 0 9px 9px 0; }
.search-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search-box { position: relative; min-width: 250px; }
.search-box svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.search-box .form-control { padding-left: 38px; }

.empty-state { display: grid; place-items: center; min-height: 250px; padding: 30px; text-align: center; }
.empty-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 14px; color: var(--primary); background: var(--surface-tint); border-radius: 18px; }
.empty-state h3 { margin: 0; font-size: 16px; }
.empty-state p { max-width: 430px; margin: 7px auto 15px; color: var(--muted); }

.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.course-card { overflow: hidden; position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 15px; transition: .2s ease; }
.course-card:hover { border-color: #99f6e4; box-shadow: var(--shadow); transform: translateY(-2px); }
.course-cover { position: relative; min-height: 112px; display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; padding: 18px; color: #d8fffb; background: linear-gradient(125deg, #0e4d49, #11877d); }
.course-cover::after { content: ""; position: absolute; width: 130px; height: 130px; right: -45px; top: -60px; border: 25px solid rgba(255,255,255,.08); border-radius: 50%; }
.course-code { position: relative; z-index: 1; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.course-sks { position: relative; z-index: 1; color: #0b4f4b; background: #ccfbf1; }
.course-body { flex: 1; padding: 18px; }
.course-body h3 { margin: 0; color: #163534; font-size: 16px; line-height: 1.35; }
.course-body p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.course-meta { display: grid; gap: 7px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--border); }
.course-meta-row { display: flex; align-items: center; gap: 8px; color: #64748b; font-size: 11px; }
.course-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; background: var(--surface-soft); border-top: 1px solid var(--border); }
.course-tabs { display: flex; gap: 5px; margin-bottom: 20px; padding: 5px; overflow-x: auto; background: #e8efef; border-radius: 11px; scrollbar-width: none; }
.course-tab { padding: 8px 13px; color: #64748b; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.course-tab:hover { color: var(--primary); }
.course-tab.active { color: #fff; background: var(--primary); box-shadow: 0 4px 12px rgba(15,118,110,.2); }
.course-hero { overflow: hidden; position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; min-height: 185px; margin-bottom: 18px; padding: 28px; color: #eafffc; background: linear-gradient(110deg, #0b3e3b, #0f766e); border-radius: 17px; }
.course-hero::after { content: ""; position: absolute; width: 300px; height: 300px; right: -80px; top: -160px; border: 48px solid rgba(255,255,255,.07); border-radius: 50%; }
.course-hero-copy { position: relative; z-index: 1; max-width: 780px; }
.course-hero h2 { margin: 5px 0 0; color: #fff; font-size: 25px; letter-spacing: -.03em; }
.course-hero p { margin: 9px 0 0; color: #c9efeb; }
.course-hero-meta { position: relative; z-index: 1; min-width: 200px; padding: 13px 16px; background: rgba(0,0,0,.12); border: 1px solid rgba(255,255,255,.13); border-radius: 12px; }
.course-hero-meta div + div { margin-top: 6px; }
.course-hero-meta strong { color: #fff; }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: flex-start; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.list-item:first-child { padding-top: 0; }
.list-item:last-child { padding-bottom: 0; border-bottom: 0; }
.list-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; color: var(--primary); background: var(--surface-tint); border-radius: 10px; }
.list-copy { min-width: 0; flex: 1; }
.list-copy h4 { margin: 0; color: #163534; font-size: 13px; }
.list-copy p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.list-meta { color: var(--muted); font-size: 10px; white-space: nowrap; }

.timeline { position: relative; display: flex; flex-direction: column; gap: 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 13px; padding-bottom: 20px; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 25px; top: 46px; bottom: 0; width: 1px; background: var(--border); }
.timeline-date { width: 52px; height: 52px; display: grid; place-items: center; align-content: center; color: var(--primary); background: var(--surface-tint); border-radius: 12px; line-height: 1.05; font-weight: 800; }
.timeline-date span { font-size: 18px; }
.timeline-date small { margin-top: 3px; font-size: 9px; text-transform: uppercase; }
.timeline-copy { padding-top: 3px; }
.timeline-copy h4 { margin: 0; font-size: 13px; }
.timeline-copy p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }

.announcement { position: relative; padding: 16px 16px 16px 19px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.announcement::before { content: ""; position: absolute; left: 0; top: 15px; bottom: 15px; width: 3px; background: var(--primary); border-radius: 99px; }
.announcement + .announcement { margin-top: 10px; }
.announcement-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.announcement h3 { margin: 0; font-size: 14px; }
.announcement p { margin: 7px 0 0; color: #475569; }
.announcement-meta { margin-top: 10px; color: var(--muted); font-size: 10px; }

.progress { width: 100%; height: 7px; overflow: hidden; background: #e2e8f0; border-radius: 99px; }
.progress-bar { height: 100%; background: var(--primary); border-radius: inherit; }
.score-ring { width: 86px; height: 86px; display: grid; place-items: center; border: 8px solid var(--primary-soft); border-top-color: var(--primary); border-radius: 50%; color: var(--primary-dark); font-size: 21px; font-weight: 800; }

.material-item, .assignment-item, .topic-item { display: flex; align-items: flex-start; gap: 14px; padding: 17px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.material-item + .material-item, .assignment-item + .assignment-item, .topic-item + .topic-item { margin-top: 10px; }
.material-icon, .assignment-icon { width: 45px; height: 45px; display: grid; place-items: center; flex: 0 0 auto; color: var(--primary); background: var(--surface-tint); border-radius: 12px; }
.item-copy { min-width: 0; flex: 1; }
.item-copy h3 { margin: 0; color: #163534; font-size: 14px; }
.item-copy p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.item-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 9px; color: var(--muted); font-size: 10px; }
.item-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }

.quiz-question { padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 13px; }
.quiz-question + .quiz-question { margin-top: 14px; }
.question-number { margin-bottom: 6px; color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.quiz-question h3 { margin: 0 0 14px; font-size: 15px; line-height: 1.55; }
.option-list { display: grid; gap: 8px; }
.option { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 12px; color: #334155; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 9px; cursor: pointer; }
.option:hover { border-color: #99f6e4; background: var(--surface-tint); }
.option input { accent-color: var(--primary); }
.quiz-sticky { position: sticky; top: 104px; }
.quiz-timer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px; color: #fff; background: #0f3d3a; border-radius: 12px; }
.quiz-timer strong { font-size: 23px; letter-spacing: .04em; }

.discussion-post { padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: 13px; }
.post-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.post-author { display: flex; flex-direction: column; }
.post-author strong { font-size: 13px; }
.post-author small { color: var(--muted); font-size: 10px; }
.post-body { color: #334155; line-height: 1.7; }
.reply-list { margin-left: 28px; padding-left: 18px; border-left: 2px solid var(--border); }

.kpi-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.kpi { padding: 14px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 10px; }
.kpi small { display: block; color: var(--muted); }
.kpi strong { display: block; margin-top: 4px; font-size: 18px; }

.profile-header { display: flex; align-items: center; gap: 18px; }
.profile-copy h2 { margin: 0; font-size: 20px; }
.profile-copy p { margin: 4px 0 0; color: var(--muted); }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .9fr) minmax(0, 1.1fr); background: #fff; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-box { width: 100%; max-width: 420px; }
.login-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 38px; }
.login-brand img { width: 48px; height: 48px; }
.login-brand strong { display: block; color: #153534; font-size: 18px; }
.login-brand small { display: block; margin-top: 3px; color: var(--muted); }
.login-box h1 { margin: 0; color: #102a2a; font-size: 30px; line-height: 1.2; letter-spacing: -.04em; }
.login-box > p { margin: 10px 0 28px; color: var(--muted); }
.password-wrap { position: relative; }
.password-wrap .form-control { padding-right: 45px; }
.password-toggle { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); }
.login-visual { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 52px; color: #fff; background: #0b3e3b; }
.login-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(94,234,212,.22), transparent 38%), linear-gradient(135deg, transparent, rgba(15,118,110,.55)); }
.login-visual::after { content: ""; position: absolute; width: 520px; height: 520px; top: -220px; right: -160px; border: 90px solid rgba(255,255,255,.05); border-radius: 50%; }
.login-visual-content { position: relative; z-index: 1; max-width: 650px; }
.login-visual-label { color: #99f6e4; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.login-visual h2 { margin: 10px 0 0; font-size: 38px; line-height: 1.15; letter-spacing: -.045em; }
.login-visual p { max-width: 580px; margin: 14px 0 0; color: #ccece9; font-size: 15px; }
.login-features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 32px; }
.login-feature { padding: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; backdrop-filter: blur(8px); }
.login-feature strong { display: block; margin-top: 10px; }
.login-feature small { display: block; margin-top: 4px; color: #b9deda; }
.login-footer { margin-top: 30px; color: #94a3b8; font-size: 11px; }

.install-page { min-height: 100vh; padding: 35px 20px; background: var(--bg); }
.install-wrap { max-width: 900px; margin: 0 auto; }
.install-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.install-head img { width: 54px; }
.install-head h1 { margin: 0; font-size: 24px; }
.install-head p { margin: 4px 0 0; color: var(--muted); }

.pagination { display: flex; align-items: center; gap: 5px; justify-content: flex-end; padding: 14px 0 0; }
.pagination a, .pagination span { min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 8px; color: #475569; background: #fff; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; }
.pagination .active { color: #fff; background: var(--primary); border-color: var(--primary); }

@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .course-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 980px) {
    .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 25px 0 60px rgba(0,0,0,.22); }
    .sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-overlay { position: fixed; inset: 0; display: block; background: rgba(15,23,42,.5); z-index: 40; opacity: 0; visibility: hidden; transition: .2s ease; }
    .sidebar-open .sidebar-overlay { opacity: 1; visibility: visible; }
    .sidebar-close, .mobile-menu { display: inline-flex !important; }
    .main-area { margin-left: 0; }
    .layout-main-aside { grid-template-columns: 1fr; }
    .quiz-sticky { position: static; }
    .login-page { grid-template-columns: 1fr; }
    .login-visual { display: none; }
    .login-panel { min-height: 100vh; }
}

@media (max-width: 720px) {
    .topbar { min-height: 70px; padding: 12px 16px; }
    .topbar h1 { font-size: 18px; }
    .eyebrow { max-width: 210px; }
    .topbar-actions .btn span { display: none; }
    .content-wrap { padding: 20px 16px 32px; }
    .footer { flex-direction: column; padding: 18px 16px; }
    .stats-grid, .course-grid, .grid-2, .grid-3, .grid-4, .form-grid, .form-grid-3, .kpi-row { grid-template-columns: 1fr; }
    .stats-grid { gap: 12px; }
    .stat-card { min-height: 100px; }
    .welcome-card { align-items: flex-start; flex-direction: column; padding: 24px; }
    .welcome-card h2 { font-size: 23px; }
    .course-hero { align-items: flex-start; flex-direction: column; padding: 23px; }
    .course-hero-meta { width: 100%; }
    .page-actions { align-items: stretch; }
    .page-actions > * { width: 100%; }
    .page-actions .card-actions { width: auto; }
    .search-form, .search-box { width: 100%; min-width: 0; }
    .search-form .form-select { flex: 1; }
    .material-item, .assignment-item, .topic-item { flex-wrap: wrap; }
    .item-actions { width: 100%; justify-content: flex-end; }
    .reply-list { margin-left: 10px; padding-left: 12px; }
    .login-panel { padding: 28px 20px; }
    .login-box h1 { font-size: 26px; }
}

/* Registrasi publik dan pengaturan performa */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-switch { margin-top: 14px; color: var(--muted); font-size: 12px; text-align: center; }
.auth-switch a { color: var(--primary); font-weight: 700; }
.register-page { grid-template-columns: minmax(620px, 1.08fr) minmax(360px, .92fr); }
.register-panel { align-items: flex-start; overflow-y: auto; padding-top: 32px; padding-bottom: 32px; }
.register-box { max-width: 720px; }
.register-box .login-brand { margin-bottom: 24px; }
.public-auth-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.public-auth-heading h1 { margin: 0; }
.public-auth-heading p { margin: 8px 0 0; color: var(--muted); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.registration-note { margin-top: 4px; }
.registration-terms { padding: 12px 14px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 10px; line-height: 1.5; }
.registration-closed-card { box-shadow: none; }
.register-visual { min-height: 100vh; }
.settings-section { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--border); }
.settings-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.settings-section-head h3 { margin: 0; font-size: 16px; }
.settings-section-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.settings-check { padding: 14px; margin-top: 10px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 11px; }
.settings-check span { display: flex; flex-direction: column; gap: 3px; }
.settings-check strong { color: var(--text); }
.settings-check small { color: var(--muted); line-height: 1.45; }
.stat-card-link { color: inherit; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.stat-card-link:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); box-shadow: var(--shadow); }
.pagination-wrap { padding-top: 0; }
.pagination-wrap:empty { display: none; }
code { padding: 2px 5px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 5px; font-size: .9em; }

@media (max-width: 1180px) {
    .register-page { grid-template-columns: minmax(560px, 1fr) minmax(320px, .75fr); }
    .register-visual { padding: 36px; }
    .register-visual .login-features { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
    .register-page { grid-template-columns: 1fr; }
    .register-panel { min-height: 100vh; }
}

@media (max-width: 620px) {
    .public-auth-heading, .settings-section-head { flex-direction: column; }
    .public-auth-heading .btn, .settings-section-head .btn { width: 100%; }
    .register-panel { padding: 24px 16px; }
}

/* Import data massal */
.import-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    color: #e6fffb;
    background: linear-gradient(135deg, #0b3e3b, #0f766e);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.import-hero-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
}
.import-hero-copy { min-width: 0; flex: 1; }
.import-hero .eyebrow { color: #99f6e4; }
.import-hero h2 { margin: 2px 0 6px; color: #fff; font-size: 22px; letter-spacing: -.025em; }
.import-hero p { max-width: 850px; margin: 0; color: #ccece9; }
.import-hero-actions .btn { color: #fff; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22); }
.import-hero-actions .btn:hover { background: rgba(255,255,255,.16); }

.import-prerequisite-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.import-prerequisite {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
}
.import-prerequisite > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; }
.import-prerequisite.ready > span { color: var(--success); background: var(--success-soft); }
.import-prerequisite.warning > span { color: var(--warning); background: var(--warning-soft); }
.import-prerequisite strong, .import-prerequisite small { display: block; }
.import-prerequisite strong { color: #163534; font-size: 13px; }
.import-prerequisite small { margin-top: 2px; color: var(--muted); font-size: 11px; }

.import-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.import-card { overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.import-card.is-active { border-color: #5eead4; box-shadow: 0 14px 36px rgba(15,118,110,.11); }
.import-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.import-card-top { min-height: 150px; display: flex; align-items: flex-start; gap: 14px; padding: 20px; background: linear-gradient(180deg, var(--surface-tint), #fff); border-bottom: 1px solid var(--border); }
.import-card-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; color: var(--primary); background: #fff; border: 1px solid #99f6e4; border-radius: 13px; box-shadow: var(--shadow-sm); }
.import-card-top h2 { margin: 1px 0 5px; color: #153534; font-size: 19px; }
.import-card-top p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.import-card-steps { display: grid; gap: 8px; padding: 16px 20px; }
.import-card-steps > div { display: flex; align-items: center; gap: 9px; }
.import-card-steps span { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; color: var(--primary-dark); background: var(--primary-soft); border-radius: 7px; font-size: 11px; font-weight: 800; }
.import-card-steps p { margin: 0; color: #475569; font-size: 12px; }
.import-card > .btn { width: calc(100% - 40px); margin: 0 20px; }
.import-form { display: grid; gap: 15px; margin-top: 18px; padding: 20px; background: var(--surface-soft); border-top: 1px solid var(--border); }
.import-file-field { display: flex; align-items: center; gap: 11px; min-height: 74px; padding: 12px; color: var(--primary); background: #fff; border: 1px dashed #5eead4; border-radius: 11px; cursor: pointer; transition: .18s ease; }
.import-file-field:hover { background: var(--surface-tint); border-color: var(--primary); }
.import-file-field > span { min-width: 0; flex: 1; color: #163534; }
.import-file-field strong, .import-file-field small { display: block; }
.import-file-field small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.import-file-field input { max-width: 150px; color: #475569; font-size: 10px; }
.import-file-field input::file-selector-button { margin-right: 7px; padding: 7px 9px; color: var(--primary-dark); background: var(--primary-soft); border: 0; border-radius: 7px; font-weight: 700; cursor: pointer; }

.import-result-card { overflow: hidden; }
.import-result-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.import-result-item { padding: 15px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 11px; }
.import-result-item small { display: block; color: var(--muted); }
.import-result-item strong { display: block; margin-top: 4px; color: #163534; font-size: 23px; }
.import-result-item.has-error { background: #fff7ed; border-color: #fed7aa; }
.import-result-item.has-error strong { color: #c2410c; }
.import-error-box { overflow: hidden; border: 1px solid #fed7aa; border-radius: 12px; }
.import-error-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; background: #fff7ed; border-bottom: 1px solid #fed7aa; }
.import-error-head strong, .import-error-head small { display: block; }
.import-error-head small { margin-top: 2px; color: #9a3412; font-size: 11px; }
.import-error-table td:first-child { width: 110px; color: #9a3412; }

.import-guide-stack { display: grid; gap: 12px; }
.import-guide { overflow: hidden; border: 1px solid var(--border); border-radius: 11px; }
.import-guide summary { display: flex; align-items: center; gap: 10px; padding: 14px 15px; background: var(--surface-soft); cursor: pointer; list-style: none; }
.import-guide summary::-webkit-details-marker { display: none; }
.import-guide summary > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 9px; }
.import-guide summary strong { flex: 1; }
.import-guide summary small { color: var(--muted); }
.import-guide[open] summary { color: var(--primary-dark); background: var(--surface-tint); border-bottom: 1px solid var(--border); }
.import-security-note { display: flex; align-items: flex-start; gap: 13px; }
.import-security-note > span { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; color: var(--success); background: var(--success-soft); border-radius: 11px; }
.import-security-note strong { color: #166534; }
.import-security-note p { margin: 3px 0 0; color: var(--muted); }

@media (max-width: 1200px) {
    .import-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .import-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
    .import-hero { align-items: flex-start; flex-wrap: wrap; }
    .import-hero-actions { width: 100%; }
    .import-prerequisite-grid, .import-grid { grid-template-columns: 1fr; }
    .import-card:last-child { grid-column: auto; }
    .import-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .import-hero { padding: 19px; }
    .import-hero-icon { width: 48px; height: 48px; }
    .import-hero h2 { font-size: 19px; }
    .import-file-field { align-items: flex-start; flex-wrap: wrap; }
    .import-file-field input { width: 100%; max-width: none; }
    .import-result-grid { grid-template-columns: 1fr; }
    .import-error-head { align-items: flex-start; flex-direction: column; }
}

/* =========================================================
   Top Navigation Modern — v2.8.1
   Sidebar dipindahkan ke navbar atas dengan dropdown & indikator.
   ========================================================= */
body.layout-topnav { --header-dark: #0a312f; --header-dark-2: #0f4a46; }
body.layout-topnav .sidebar,
body.layout-topnav .sidebar-overlay,
body.layout-topnav .topbar { display: none !important; }
body.layout-topnav .topnav-shell { min-height: 100vh; }
body.layout-topnav .topnav-main { min-height: calc(100vh - 138px); margin-left: 0 !important; }
body.layout-topnav .content-wrap { max-width: 1580px; padding-top: 28px; }

.global-header {
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100%;
    box-shadow: 0 9px 30px rgba(15, 23, 42, .08);
}
.global-header-main {
    color: #d8eeec;
    background:
        radial-gradient(circle at 12% -140%, rgba(45,212,191,.20), transparent 40%),
        linear-gradient(112deg, var(--header-dark), var(--header-dark-2));
    border-bottom: 1px solid rgba(255,255,255,.09);
}
.global-header-inner {
    width: 100%;
    max-width: 1660px;
    min-height: 72px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.top-brand {
    min-width: 220px;
    max-width: 270px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
}
.top-brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 7px 20px rgba(0,0,0,.22);
}
.top-brand-mark img { width: 100%; height: 100%; display: block; }
.top-brand-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.top-brand-copy strong { color: #fff; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-brand-copy small { margin-top: 4px; color: #8ed1cb; font-size: 9px; font-weight: 800; letter-spacing: .13em; }

.topnav {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}
.topnav-link,
.topnav-trigger {
    position: relative;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    color: #bcd9d6;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.topnav-trigger { font-family: inherit; }
.topnav-link:hover,
.topnav-trigger:hover,
.topnav-dropdown.is-open .topnav-trigger {
    color: #fff;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.08);
}
.topnav-link.active,
.topnav-dropdown.is-active > .topnav-trigger {
    color: #fff;
    background: rgba(94,234,212,.10);
    border-color: rgba(94,234,212,.18);
}
.topnav-link.active::after,
.topnav-dropdown.is-active > .topnav-trigger::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -15px;
    height: 3px;
    background: #5eead4;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -2px 14px rgba(94,234,212,.35);
}
.topnav-trigger-icon { display: inline-grid; place-items: center; }
.topnav-active-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    background: #5eead4;
    border: 2px solid rgba(255,255,255,.35);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(94,234,212,.11);
}
.topnav-mini-badge {
    min-height: 18px;
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    color: #042f2e;
    background: #5eead4;
    border-radius: 99px;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .04em;
}
.topnav-chevron { margin-left: 1px; color: #7fb8b3; font-size: 15px; line-height: 1; transition: transform .18s ease; }
.topnav-dropdown.is-open .topnav-chevron,
.profile-dropdown.is-open .topnav-chevron { transform: rotate(180deg); }

.topnav-dropdown { position: relative; }
.topnav-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 300px;
    padding: 9px;
    color: var(--text);
    background: rgba(255,255,255,.985);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 22px 55px rgba(15,23,42,.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px) scale(.985);
    transform-origin: top left;
    transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}
.topnav-menu::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 25px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: rotate(45deg);
}
.topnav-dropdown.is-open > .topnav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.topnav-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 9px 10px;
    border-bottom: 1px solid #edf2f7;
}
.topnav-menu-head strong { color: #143331; font-size: 12px; }
.topnav-menu-head small { color: #94a3b8; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.topnav-menu-list { display: grid; gap: 3px; padding-top: 7px; }
.topnav-menu-item {
    position: relative;
    min-height: 49px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 9px;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: .16s ease;
}
.topnav-menu-item:hover { background: #f0fdfa; border-color: #ccfbf1; transform: translateX(2px); }
.topnav-menu-item.active { background: linear-gradient(90deg, #e6fffa, #f8fffe); border-color: #99f6e4; }
.topnav-menu-item.active::before {
    content: "";
    position: absolute;
    inset: 8px auto 8px -3px;
    width: 4px;
    background: var(--primary);
    border-radius: 0 5px 5px 0;
}
.topnav-menu-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--primary);
    background: var(--surface-tint);
    border-radius: 9px;
}
.topnav-menu-item.active .topnav-menu-icon { color: #fff; background: var(--primary); }
.topnav-menu-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.topnav-menu-copy strong { color: #173735; font-size: 12px; }
.topnav-menu-copy small { margin-top: 4px; color: #94a3b8; font-size: 9px; }
.menu-current-indicator { width: 8px; height: 8px; flex: 0 0 auto; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 3px #dcfce7; }

.top-account-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.top-action-button {
    width: 39px;
    height: 39px;
    display: inline-grid;
    place-items: center;
    color: #c9e5e2;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    transition: .17s ease;
}
.top-action-button:hover { color: #fff; background: rgba(255,255,255,.12); }
.global-header .notification-dot { border-color: #0d3d3a; }

.profile-dropdown { position: relative; }
.profile-trigger {
    min-height: 44px;
    max-width: 218px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 8px 5px 6px;
    color: #fff;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 11px;
    cursor: pointer;
}
.profile-trigger:hover,
.profile-dropdown.is-open .profile-trigger { background: rgba(255,255,255,.11); }
.profile-trigger-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.profile-trigger-copy strong { max-width: 120px; color: #fff; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-trigger-copy small { margin-top: 3px; color: #8ec8c3; font-size: 9px; }
.profile-menu {
    position: absolute;
    top: calc(100% + 13px);
    right: 0;
    width: 230px;
    padding: 8px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: 0 20px 50px rgba(15,23,42,.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: .16s ease;
}
.profile-dropdown.is-open .profile-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.profile-menu-head { padding: 9px 10px 11px; border-bottom: 1px solid var(--border); }
.profile-menu-head strong, .profile-menu-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-head strong { color: #173735; font-size: 12px; }
.profile-menu-head small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.profile-menu > a { display: flex; align-items: center; gap: 9px; padding: 10px; margin-top: 3px; color: #475569; border-radius: 9px; font-size: 12px; font-weight: 700; }
.profile-menu > a:hover { color: var(--primary); background: var(--surface-tint); }
.profile-menu > .danger-link:hover { color: var(--danger); background: var(--danger-soft); }
.profile-menu-separator { height: 1px; margin: 6px 4px; background: var(--border); }

.pagebar { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.pagebar-inner {
    width: 100%;
    max-width: 1660px;
    min-height: 66px;
    margin: 0 auto;
    padding: 10px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.pagebar-title { min-width: 0; }
.pagebar h1 { margin: 0; color: #0f2928; font-size: 20px; line-height: 1.2; letter-spacing: -.025em; }
.pagebar .page-subtitle { margin-top: 3px; }
.pagebar-status { flex: 0 0 auto; }
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 800;
}
.status-indicator i { width: 7px; height: 7px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 3px #dcfce7; }
.topnav-mobile-toggle { display: none; }

@media (max-width: 1280px) {
    .global-header-inner { gap: 12px; padding-inline: 20px; }
    .top-brand { min-width: 185px; }
    .top-brand-copy strong { max-width: 150px; }
    .topnav-link, .topnav-trigger { padding-inline: 8px; gap: 6px; }
    .topnav-mini-badge { display: none; }
    .profile-trigger-copy { display: none; }
    .profile-trigger { max-width: none; }
}

@media (max-width: 1040px) {
    .global-header { position: sticky; }
    .global-header-inner { min-height: 66px; flex-wrap: wrap; padding: 10px 16px; }
    .top-brand { min-width: 0; flex: 1; }
    .top-account-actions { order: 2; margin-left: 0; }
    .topnav-mobile-toggle {
        order: 3;
        min-height: 39px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 7px 10px;
        color: #fff;
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 9px;
        font-weight: 800;
        cursor: pointer;
    }
    .topnav {
        order: 4;
        width: 100%;
        flex-basis: 100%;
        display: none;
        align-items: stretch;
        padding: 9px;
        background: rgba(3,31,30,.45);
        border: 1px solid rgba(255,255,255,.07);
        border-radius: 12px;
    }
    body.topnav-mobile-open .topnav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
    .topnav-link, .topnav-trigger { width: 100%; justify-content: flex-start; }
    .topnav-link.active::after, .topnav-dropdown.is-active > .topnav-trigger::after { left: 0; right: auto; top: 8px; bottom: 8px; width: 3px; height: auto; border-radius: 0 4px 4px 0; }
    .topnav-dropdown { position: static; }
    .topnav-menu {
        position: static;
        width: auto;
        display: none;
        margin-top: 5px;
        padding: 7px;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-color: rgba(255,255,255,.08);
    }
    .topnav-menu::before { display: none; }
    .topnav-dropdown.is-open > .topnav-menu { display: block; }
    .topnav-menu-head { display: none; }
    .topnav-menu-item { min-height: 45px; }
    .pagebar-inner { padding-inline: 16px; }
}

@media (max-width: 680px) {
    body.layout-topnav .content-wrap { padding: 18px 13px 30px; }
    .global-header-inner { gap: 8px; }
    .top-brand-mark { width: 36px; height: 36px; }
    .top-brand-copy strong { max-width: 170px; font-size: 13px; }
    .top-brand-copy small { font-size: 8px; }
    body.topnav-mobile-open .topnav { grid-template-columns: 1fr; }
    .topnav-menu { margin-left: 0; }
    .top-account-actions .profile-trigger { min-height: 39px; padding: 4px 6px; }
    .profile-trigger .topnav-chevron { display: none; }
    .pagebar-inner { min-height: 60px; padding: 9px 13px; }
    .pagebar h1 { font-size: 17px; }
    .pagebar .eyebrow { max-width: 235px; }
    .pagebar-status { display: none; }
    .footer { padding-inline: 13px; }
}

@media (max-width: 430px) {
    .top-brand-copy strong { max-width: 125px; }
    .topnav-mobile-toggle span { display: none; }
    .topnav-mobile-toggle { width: 39px; padding: 0; }
}


/* =========================================================
   Compact Top Navigation — v2.8.2
   Header diperkecil agar identitas kampus, judul halaman, dan tanggal
   tetap terlihat tanpa tertutup navigasi/dropdown.
   ========================================================= */
body.layout-topnav .topnav-main { min-height: calc(100vh - 96px); }
body.layout-topnav .content-wrap { padding-top: 18px; }

.global-header { box-shadow: 0 5px 18px rgba(15,23,42,.07); }
.global-header-inner {
    min-height: 52px;
    padding: 0 20px;
    gap: 10px;
}
.top-brand {
    min-width: 160px;
    max-width: 205px;
    gap: 8px;
}
.top-brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.top-brand-copy strong { max-width: 158px; font-size: 12px; }
.top-brand-copy small { margin-top: 2px; font-size: 7px; letter-spacing: .09em; }

.topnav { gap: 2px; }
.topnav-link,
.topnav-trigger {
    min-height: 34px;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 10.5px;
}
.topnav-link svg,
.topnav-trigger svg { width: 15px; height: 15px; }
.topnav-link.active::after,
.topnav-dropdown.is-active > .topnav-trigger::after {
    left: 8px;
    right: 8px;
    bottom: -9px;
    height: 2px;
}
.topnav-active-dot {
    width: 6px;
    height: 6px;
    border-width: 1px;
    box-shadow: 0 0 0 2px rgba(94,234,212,.10);
}
.topnav-mini-badge {
    min-height: 15px;
    padding: 0 5px;
    font-size: 7px;
}
.topnav-chevron { font-size: 12px; }

.topnav-menu {
    top: calc(100% + 9px);
    width: 258px;
    padding: 6px;
    border-radius: 11px;
    box-shadow: 0 16px 38px rgba(15,23,42,.16);
    max-height: min(440px, calc(100vh - 112px));
    overflow-y: auto;
    overscroll-behavior: contain;
}
.topnav-menu::before { top: -6px; left: 20px; width: 10px; height: 10px; }
.topnav-menu-head { padding: 5px 7px 7px; }
.topnav-menu-head strong { font-size: 10.5px; }
.topnav-menu-head small { font-size: 8px; }
.topnav-menu-list { gap: 2px; padding-top: 5px; }
.topnav-menu-item {
    min-height: 38px;
    gap: 7px;
    padding: 5px 7px;
    border-radius: 8px;
}
.topnav-menu-item:hover { transform: translateX(1px); }
.topnav-menu-item.active::before { inset: 6px auto 6px -2px; width: 3px; }
.topnav-menu-icon {
    width: 27px;
    height: 27px;
    border-radius: 7px;
}
.topnav-menu-icon svg { width: 15px; height: 15px; }
.topnav-menu-copy strong { font-size: 10.5px; }
.topnav-menu-copy small { margin-top: 2px; font-size: 8px; }
.menu-current-indicator { width: 6px; height: 6px; box-shadow: 0 0 0 2px #dcfce7; }

/* Dropdown Pembelajaran menjadi 2 kolom agar tidak menutupi area dashboard. */
.dropdown-learning .topnav-menu { width: 430px; }
.dropdown-learning .topnav-menu-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.top-account-actions { gap: 5px; }
.top-action-button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}
.top-action-button svg { width: 17px; height: 17px; }
.profile-trigger {
    min-height: 34px;
    max-width: 180px;
    gap: 6px;
    padding: 3px 6px 3px 4px;
    border-radius: 8px;
}
.profile-trigger .avatar-sm { width: 26px; height: 26px; font-size: 9px; }
.profile-trigger-copy strong { max-width: 95px; font-size: 9.5px; }
.profile-trigger-copy small { margin-top: 1px; font-size: 8px; }
.profile-menu { top: calc(100% + 8px); width: 210px; }

/* Pagebar dibuat satu baris ringkas: Kampus · Dashboard · Tanggal. */
.pagebar-inner {
    min-height: 44px;
    padding: 5px 20px;
    gap: 12px;
}
.pagebar-title {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.pagebar-title .eyebrow {
    max-width: 250px;
    margin: 0;
    color: #64748b;
    font-size: 8.5px;
    letter-spacing: .05em;
}
.pagebar-title .eyebrow::after {
    content: "·";
    margin-left: 8px;
    color: #cbd5e1;
}
.pagebar h1 {
    flex: 0 0 auto;
    font-size: 15px;
    line-height: 1.1;
}
.pagebar .page-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 10px;
}
.pagebar .page-subtitle::before {
    content: "·";
    margin-right: 8px;
    color: #cbd5e1;
}
.status-indicator {
    gap: 5px;
    padding: 4px 8px;
    font-size: 8.5px;
}
.status-indicator i { width: 6px; height: 6px; box-shadow: 0 0 0 2px #dcfce7; }

@media (max-width: 1280px) {
    .global-header-inner { padding-inline: 14px; gap: 6px; }
    .top-brand { min-width: 138px; max-width: 168px; }
    .top-brand-copy strong { max-width: 128px; font-size: 11px; }
    .topnav-link, .topnav-trigger { padding-inline: 6px; gap: 4px; font-size: 10px; }
    .pagebar-inner { padding-inline: 14px; }
}

@media (max-width: 1040px) {
    .global-header-inner { min-height: 52px; padding: 7px 12px; }
    .topnav-mobile-toggle {
        min-height: 32px;
        gap: 5px;
        padding: 5px 8px;
        border-radius: 8px;
        font-size: 10px;
    }
    .topnav-mobile-toggle svg { width: 17px; height: 17px; }
    .topnav { padding: 6px; border-radius: 9px; }
    .topnav-menu { max-height: none; overflow-y: visible; }
    .dropdown-learning .topnav-menu { width: auto; }
    .dropdown-learning .topnav-menu-list { grid-template-columns: 1fr; }
    .pagebar-inner { min-height: 42px; padding: 5px 12px; }
}

@media (max-width: 680px) {
    body.layout-topnav .content-wrap { padding-top: 12px; }
    .top-brand-mark { width: 28px; height: 28px; }
    .top-brand-copy strong { max-width: 130px; font-size: 10.5px; }
    .top-brand-copy small { font-size: 6.5px; }
    .top-account-actions .profile-trigger { min-height: 32px; }
    .pagebar-title { gap: 5px; overflow: hidden; }
    .pagebar-title .eyebrow { max-width: 110px; font-size: 7.5px; }
    .pagebar-title .eyebrow::after { margin-left: 5px; }
    .pagebar h1 { font-size: 13px; }
    .pagebar .page-subtitle { font-size: 8.5px; }
    .pagebar .page-subtitle::before { margin-right: 5px; }
}


/* =========================================================
   Glass / Transparent Top Navigation — v2.8.3
   Navbar, pagebar, dan dropdown dibuat transparan agar identitas kampus,
   judul halaman, dan tanggal tetap terlihat di belakang navigasi.
   ========================================================= */
body.layout-topnav {
    --glass-dark: rgba(8, 49, 47, .72);
    --glass-dark-2: rgba(15, 74, 70, .68);
    --glass-light: rgba(255, 255, 255, .82);
    --glass-pagebar: rgba(255, 255, 255, .78);
}
.global-header {
    background: transparent;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}
.global-header-main {
    background:
        radial-gradient(circle at 12% -140%, rgba(45,212,191,.16), transparent 40%),
        linear-gradient(112deg, var(--glass-dark), var(--glass-dark-2));
    border-bottom-color: rgba(255,255,255,.12);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
    backdrop-filter: blur(14px) saturate(135%);
}
.pagebar {
    background: var(--glass-pagebar);
    border-bottom-color: rgba(203,213,225,.72);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    backdrop-filter: blur(14px) saturate(130%);
}
.topnav-menu,
.profile-menu {
    background: var(--glass-light);
    border-color: rgba(203,213,225,.75);
    box-shadow: 0 14px 32px rgba(15,23,42,.12);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
}
.topnav-menu::before {
    background: rgba(255,255,255,.82);
    border-left-color: rgba(203,213,225,.72);
    border-top-color: rgba(203,213,225,.72);
}
.topnav-menu-head,
.profile-menu-head {
    border-bottom-color: rgba(226,232,240,.78);
}
.topnav-menu-item:hover {
    background: rgba(240,253,250,.76);
    border-color: rgba(153,246,228,.70);
}
.topnav-menu-item.active {
    background: linear-gradient(90deg, rgba(230,255,250,.82), rgba(248,255,254,.72));
    border-color: rgba(153,246,228,.78);
}
.profile-menu > a:hover { background: rgba(240,253,250,.76); }
.profile-menu > .danger-link:hover { background: rgba(254,242,242,.80); }

/* Browser tanpa backdrop-filter tetap mendapat transparansi yang aman dibaca. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .global-header-main { background: rgba(10,49,47,.92); }
    .pagebar { background: rgba(255,255,255,.94); }
    .topnav-menu, .profile-menu { background: rgba(255,255,255,.96); }
    .topnav-menu::before { background: rgba(255,255,255,.96); }
}

@media (max-width: 1040px) {
    /* Pada menu hamburger, sedikit lebih pekat agar daftar menu tetap nyaman dibaca. */
    .topnav {
        background: rgba(8,49,47,.88);
        -webkit-backdrop-filter: blur(16px) saturate(130%);
        backdrop-filter: blur(16px) saturate(130%);
    }
    .topnav-menu {
        background: rgba(255,255,255,.86);
    }
}

/* =========================================================
   Dropdown Reserved Space — v2.8.4
   Dropdown desktop tidak lagi menutupi pagebar / konten utama.
   JS mengisi --dropdown-reserve sesuai tinggi menu yang dibuka.
   ========================================================= */
.global-header-main {
    position: relative;
    padding-bottom: var(--dropdown-reserve, 0px);
    transition: padding-bottom .18s ease;
}
.global-header.has-open-dropdown .global-header-main {
    border-bottom-color: rgba(255,255,255,.16);
}
.global-header.has-open-dropdown .pagebar {
    position: relative;
    z-index: 2;
}
.topnav-dropdown.is-open,
.profile-dropdown.is-open {
    z-index: 120;
}
.topnav-dropdown.is-open > .topnav-menu,
.profile-dropdown.is-open > .profile-menu {
    z-index: 121;
}
.global-header.has-open-dropdown .global-header-main::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--dropdown-reserve, 0px);
    pointer-events: none;
    background: linear-gradient(180deg, rgba(8,49,47,.03), rgba(8,49,47,.10));
}
@media (max-width: 1040px) {
    .global-header-main { padding-bottom: 0 !important; }
    .global-header.has-open-dropdown .global-header-main::after { display: none; }
}

/* =========================================================
   Modern Dropdown + Active Indicators — v2.8.5
   Indikator aktif lebih jelas, badge status, chevron modern,
   fokus keyboard, dan micro-interaction desktop/mobile.
   ========================================================= */
.topnav-trigger-label { display: inline-block; }

.topnav-chevron {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    margin: -3px 1px 0 3px;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    color: #83bdb8;
    font-size: 0;
    transform: rotate(45deg);
    transform-origin: 55% 55%;
    transition: transform .2s ease, color .2s ease;
}
.topnav-dropdown.is-open .topnav-chevron,
.profile-dropdown.is-open .topnav-chevron {
    color: #ccfbf1;
    transform: rotate(225deg) translate(-1px, -1px);
}

.topnav-current-indicator {
    max-width: 112px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 7px 3px 6px;
    color: #d5fff9;
    background: rgba(45,212,191,.14);
    border: 1px solid rgba(94,234,212,.22);
    border-radius: 999px;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .01em;
}
.topnav-current-indicator > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.topnav-current-indicator i,
.topnav-head-status i {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    background: #5eead4;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(94,234,212,.12);
    animation: nav-indicator-pulse 2s ease-in-out infinite;
}
@keyframes nav-indicator-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(94,234,212,.10); }
    50% { box-shadow: 0 0 0 5px rgba(94,234,212,.04); }
}

.topnav-dropdown.is-active > .topnav-trigger {
    box-shadow: inset 0 0 0 1px rgba(94,234,212,.06), 0 5px 14px rgba(4,47,46,.08);
}
.topnav-dropdown.is-open > .topnav-trigger {
    transform: translateY(-1px);
}

.topnav-menu {
    overflow: hidden;
    padding: 8px;
    border-radius: 13px;
}
.topnav-menu-head {
    padding: 7px 8px 9px;
    background: linear-gradient(180deg, rgba(240,253,250,.55), rgba(255,255,255,0));
}
.topnav-menu-head-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.topnav-menu-head-copy strong { line-height: 1.2; }
.topnav-menu-head-copy small {
    color: #94a3b8;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: none;
}
.topnav-head-status,
.topnav-head-hint {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.topnav-head-status {
    color: #047857;
    background: rgba(209,250,229,.78);
    border: 1px solid rgba(110,231,183,.72);
}
.topnav-head-status i { width: 5px; height: 5px; background: #10b981; box-shadow: none; }
.topnav-head-hint { color: #64748b; background: rgba(241,245,249,.82); border: 1px solid rgba(226,232,240,.85); }

.topnav-menu-item {
    isolation: isolate;
    overflow: hidden;
}
.topnav-menu-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent, rgba(45,212,191,.08), transparent);
    opacity: 0;
    transform: translateX(-55%);
    transition: opacity .2s ease, transform .3s ease;
}
.topnav-menu-item:hover::after { opacity: 1; transform: translateX(55%); }
.topnav-menu-item.active {
    box-shadow: inset 0 0 0 1px rgba(13,148,136,.04), 0 4px 12px rgba(13,148,136,.06);
}
.topnav-menu-item.active .topnav-menu-copy strong { color: #0f766e; }
.topnav-menu-item.active .topnav-menu-copy small { color: #3f7f79; }

.menu-current-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    font-size: 7.5px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.menu-current-badge svg { width: 10px; height: 10px; stroke-width: 2.4; }
.menu-item-arrow {
    flex: 0 0 auto;
    color: #cbd5e1;
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    transform: translateX(-2px);
    transition: color .16s ease, transform .16s ease;
}
.topnav-menu-item:hover .menu-item-arrow { color: var(--primary); transform: translateX(1px); }

.topnav-link:focus-visible,
.topnav-trigger:focus-visible,
.topnav-menu-item:focus-visible,
.profile-trigger:focus-visible,
.profile-menu > a:focus-visible,
.top-action-button:focus-visible,
.topnav-mobile-toggle:focus-visible {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .topnav-current-indicator i,
    .topnav-head-status i { animation: none; }
    .topnav-menu-item::after { display: none; }
}

@media (max-width: 1360px) {
    .topnav-current-indicator { max-width: 88px; padding-inline: 5px; }
    .topnav-current-indicator > span { display: none; }
}

@media (max-width: 1040px) {
    .topnav-current-indicator {
        max-width: none;
        margin-left: auto;
        padding: 3px 7px;
    }
    .topnav-current-indicator > span { display: inline; }
    .topnav-chevron { margin-left: 5px; }
    .topnav-menu { overflow: visible; }
    .topnav-menu-head {
        display: flex;
        margin: 3px 3px 5px;
        border-radius: 8px;
    }
}

@media (max-width: 560px) {
    .topnav-current-indicator > span { max-width: 90px; display: block; }
    .menu-current-badge span { display: none; }
    .menu-current-badge { padding: 4px; }
}


/* =========================================================
   Single Top Navbar — v2.8.6
   Pagebar kampus/judul/tanggal/status dihapus agar area navigasi
   lebih lega dan dropdown lebih mudah diakses.
   ========================================================= */
.pagebar { display: none !important; }
body.layout-topnav .topnav-main { min-height: calc(100vh - 52px); }

@media (max-width: 1040px) {
    body.layout-topnav .topnav-main { min-height: calc(100vh - 58px); }
}
