/* =========================================================
   JavaSmart - Tema tampilan (di atas Bootstrap 4)
   ========================================================= */
:root
{
    --brand: #0891b2;
    --brand-dark: #0e7490;
    --brand-2: #4f46e5;
    --gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 45%, #4f46e5 100%);
    --ink: #0f172a;
    --muted: #64748b;
    --surface: #ffffff;
    --soft: #f1f5f9;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --shadow-lg: 0 20px 45px rgba(15, 23, 42, .16);
    --nav-h: 68px;
}

/* ---------- DASAR ---------- */
html
{
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}
body
{
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--soft);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body:has(.navbar_beranda)
{
    padding-top: var(--nav-h);
}
img
{
    max-width: 100%;
    height: auto;
}

.font1
{
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -.02em;
}
.warna1
{
    color: #e0f2fe;
}

/* ---------- WARNA UTAMA ---------- */
.bg-info
{
    background: var(--gradient) !important;
}
.text-info
{
    color: var(--brand) !important;
}
a.text-info:hover,
a.text-info:focus
{
    color: var(--brand-dark) !important;
}
hr.bg-white
{
    opacity: .5;
}
hr.bg-info
{
    height: 3px;
    width: 48px;
    border: 0;
    border-radius: 3px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- NAVBAR ---------- */
.navbar_beranda .navbar
{
    min-height: var(--nav-h);
    background: rgba(255, 255, 255, .9) !important;
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06) !important;
}
.navbar-brand
{
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.navbar_beranda .nav-link
{
    font-weight: 500;
    font-size: .95rem;
    padding: .5rem .9rem !important;
    border-radius: 999px;
    transition: background .2s, color .2s;
}
.navbar_beranda .navbar-nav .nav-link:hover,
.navbar_beranda .navbar-nav .nav-link.active
{
    color: var(--brand) !important;
    background: rgba(8, 145, 178, .1);
}
.navbar_beranda .btn
{
    padding: .45rem 1.4rem;
}
.navbar-toggler
{
    border: 0;
    padding: .4rem .6rem;
    border-radius: 12px;
    background: rgba(8, 145, 178, .1);
}
.navbar-toggler:focus
{
    outline: none;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, .25);
}
@media (max-width: 991.98px)
{
    .navbar_beranda .navbar-collapse
    {
        padding: .75rem 0 1rem;
    }
    .navbar_beranda .navbar-nav .nav-link
    {
        padding: .7rem 1rem !important;
    }
    .navbar_beranda .navbar-collapse > .btn
    {
        display: block;
        margin-top: .5rem;
        text-align: center;
    }
}

/* ---------- JUMBOTRON / SECTION ---------- */
.jumbotron
{
    margin-bottom: 0;
    border-radius: 0;
    padding: 3.5rem 0;
}
.jumbotron.bg-white
{
    background: var(--soft) !important;
}
section > .jumbotron
{
    margin-bottom: 0;
}

/* Hero beranda / halaman masuk */
.hero
{
    position: relative;
    overflow: hidden;
    padding: 4rem 0 5rem;
}
.hero::before,
.hero::after
{
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    pointer-events: none;
}
.hero::before
{
    width: 420px;
    height: 420px;
    top: -160px;
    right: -120px;
}
.hero::after
{
    width: 260px;
    height: 260px;
    bottom: -120px;
    left: -80px;
}
.hero .container
{
    position: relative;
    z-index: 1;
}
.hero img
{
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .2));
}
.hero-badge
{
    display: inline-block;
    padding: .35rem 1rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .3);
}

/* Judul besar menyesuaikan lebar layar */
.display-3
{
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    line-height: 1.1;
}
.display-4
{
    font-size: clamp(1.4rem, 3.5vw, 2.4rem);
}
h2.font1
{
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
}

/* Judul section dengan garis aksen */
.section-title
{
    position: relative;
    padding-bottom: .9rem;
    margin-bottom: 0;
}
.section-title::after
{
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 4px;
    transform: translateX(-50%);
    background: currentColor;
    opacity: .6;
}

/* ---------- CARD ---------- */
.card
{
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    width: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}
.card-header
{
    border: 0;
    padding: 1.25rem 1.5rem;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.card-header h2
{
    margin: 0;
}
.card-body
{
    padding: 1.5rem;
}
.card-body.table-secondary,
.card-body.table-active
{
    background: var(--surface) !important;
}

/* Kartu menu (materi, soal, nilai) */
.d-flex > .card
{
    display: flex;
}
.d-flex > .card,
.card.bg-info,
.row.text-center .card
{
    cursor: pointer;
}
.row.text-center .card:hover
{
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.row.text-center .card img
{
    max-height: 160px;
    object-fit: contain;
    transition: transform .3s ease;
}
.row.text-center .card:hover img
{
    transform: scale(1.05);
}
.row.text-center .card h5
{
    margin-bottom: 0;
    font-size: 1.05rem;
}
.row.text-center .card hr
{
    margin: 1.25rem auto !important;
}

/* Kotak "Apa itu JavaSmart" */
.about-text
{
    padding: 2rem;
    border-radius: var(--radius);
    color: #fff;
    background: var(--gradient);
    box-shadow: var(--shadow-lg);
    line-height: 1.8;
}
.about-img
{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

/* Kartu informasi di beranda */
.info-card
{
    height: 100%;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(6px);
    color: #fff;
}
.info-card h5
{
    display: inline-block;
    padding: .4rem 1.2rem;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--brand);
    background: #fff;
}
.info-card p
{
    margin-bottom: .75rem;
    word-break: break-word;
}
.info-card p.bi::before
{
    margin-right: .5rem;
}
.info-card a,
.info-card a:hover
{
    color: inherit;
    text-decoration: none;
}
.info-card a:hover p
{
    color: #fff;
    text-decoration: underline;
}
.info-card .logo
{
    max-width: 140px;
}

/* ---------- LIST GROUP (tab menu) ---------- */
.list-group
{
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.list-group-item
{
    padding: 1rem 1.25rem;
    border-color: rgba(255, 255, 255, .25) !important;
    font-weight: 500;
}
.list-group-item-action.bg-info
{
    position: relative;
    transition: padding-left .2s ease, filter .2s ease;
}
.list-group-item-action.bg-info:hover
{
    filter: brightness(1.08);
    padding-left: 1.6rem;
}
.list-group-item-action.bg-info.active
{
    background: var(--brand-2) !important;
    padding-left: 1.6rem;
}
.list-group-item-action.bg-info.active::before
{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #fff;
}
.tab-panel-box
{
    padding: 1.5rem;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    min-height: 100%;
}
.tab-panel-box ul
{
    padding-left: 0;
    margin-bottom: .6rem;
    line-height: 1.6;
}
.tab-hint
{
    color: var(--muted);
    margin: 0;
}
.tab-content > .tab-pane.active ~ .tab-hint,
.tab-content:has(.tab-pane.active) .tab-hint
{
    display: none;
}

/* ---------- TOMBOL ---------- */
.btn
{
    font-weight: 600;
    border-radius: 12px;
    padding: .55rem 1.2rem;
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover
{
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .15);
}
.btn:active
{
    transform: translateY(0);
}
.btn.rounded-pill
{
    border-radius: 999px !important;
}
.btn-info,
.btn.bg-info
{
    border: 0 !important;
    color: #fff !important;
}
.btn.bg-info:hover,
.btn-info:hover
{
    filter: brightness(1.1);
}
.btn.bg-white.text-info
{
    border: 0;
}
.btn.bg-secondary,
.btn-secondary
{
    background: #475569 !important;
    border-color: #475569 !important;
}
.btn-danger
{
    background: #ef4444;
    border-color: #ef4444;
}
.btn-cta
{
    display: inline-block;
    padding: .8rem 2.2rem;
    font-size: 1rem;
    letter-spacing: .03em;
}
td .btn
{
    padding: .35rem .8rem;
    font-size: .8rem;
    margin: .15rem .1rem;
}

/* ---------- FORM ---------- */
.form-control
{
    height: auto;
    padding: .7rem 1rem;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-control:focus
{
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(8, 145, 178, .15);
}
input[type=file].form-control
{
    padding: .55rem 1rem;
}
.form-group label
{
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .4rem;
}
.form-actions
{
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.5rem;
}

/* Halaman login */
.auth-wrap
{
    flex: 1;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}
.auth-card
{
    padding: 2.25rem 2rem;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}
.auth-card .auth-logo
{
    width: 72px;
    margin-bottom: .75rem;
}

/* ---------- TABEL ---------- */
.table
{
    margin-bottom: 0;
    background: #fff;
}
.table th
{
    border-top: 0;
    border-bottom: 2px solid #e2e8f0;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    background: #f8fafc;
}
.table td
{
    vertical-align: middle;
    border-top: 1px solid #f1f5f9;
}
.table tr:not(:first-child):hover td
{
    background: #f0f9ff;
}
.table-responsive
{
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
td:last-child
{
    white-space: nowrap;
}

/* ---------- IFRAME (PDF, Google Form, Spreadsheet) ---------- */
.frame-wrap
{
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.frame-wrap iframe
{
    display: block;
    width: 100% !important;
    height: 80vh;
    min-height: 480px;
    border: 0;
}

/* ---------- ONLINE COMPILER ---------- */
.compiler-box
{
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #fff;
}
.compiler-box .CodeMirror
{
    height: 520px;
    font-size: 14px;
}
.compiler-io
{
    padding: 1.25rem;
    border-radius: var(--radius);
    background: #1e293b;
    color: #e2e8f0;
    height: 100%;
}
.compiler-io label
{
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #94a3b8;
}
.compiler-io textarea
{
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9rem;
    min-height: 150px;
    resize: vertical;
}
#output
{
    min-height: 220px;
}

/* ---------- FOOTER ---------- */
footer.site-footer
{
    margin-top: auto;
    padding: 1.25rem 0;
    font-size: .875rem;
    color: var(--muted);
    background: #fff;
    border-top: 1px solid #e2e8f0;
}
footer.site-footer p
{
    margin: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 767.98px)
{
    :root
    {
        --nav-h: 60px;
    }
    .jumbotron
    {
        padding: 2.25rem 0;
    }
    .hero
    {
        padding: 2.5rem 0 3.5rem;
        text-align: center;
    }
    .card-body
    {
        padding: 1.1rem;
    }
    .card-header
    {
        padding: 1rem;
    }
    .about-text,
    .about-img,
    .tab-panel-box
    {
        padding: 1.25rem;
    }
    .auth-card
    {
        padding: 1.75rem 1.25rem;
    }
    .frame-wrap iframe
    {
        height: 75vh;
        min-height: 420px;
    }
    .compiler-box .CodeMirror
    {
        height: 380px;
        font-size: 13px;
    }
    .form-actions .btn
    {
        flex: 1;
    }
    .table th,
    .table td
    {
        font-size: .85rem;
        padding: .6rem;
    }
}

@media (prefers-reduced-motion: reduce)
{
    *,
    *::before,
    *::after
    {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}
.auth-wrap > .container
{
    width: 100%;
}
.info-card p.bi
{
    display: flex;
    align-items: baseline;
}
.info-card p.bi::before
{
    flex-shrink: 0;
}
/* Section terakhir mengisi sisa layar agar footer tetap di bawah */
body > section:last-of-type
{
    flex-grow: 1;
}

/* ---------- HERO: proporsi teks & gambar ---------- */
.hero
{
    display: flex;
    align-items: center;
    padding: 4rem 0;
}
@media (min-width: 992px)
{
    .hero
    {
        min-height: min(calc(100vh - var(--nav-h)), 760px);
    }
}
.hero > .container
{
    width: 100%;
}
.hero-title
{
    font-size: clamp(2.25rem, 4.4vw, 3.4rem);
    line-height: 1.08;
    margin-bottom: .35rem;
}
.hero-sub
{
    font-size: clamp(1.4rem, 2.6vw, 2.1rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.2;
    color: #e0f2fe;
    margin-bottom: 1.25rem;
}
.hero-name
{
    font-weight: 700;
    overflow-wrap: anywhere;
}
.hero-desc
{
    max-width: 30rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .3);
}
.hero-visual
{
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-visual::before
{
    content: "";
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    border: 2px solid rgba(255, 255, 255, .28);
    box-shadow: 0 0 0 18px rgba(255, 255, 255, .06);
}
.hero-visual img
{
    position: relative;
    max-width: 84%;
    max-height: 84%;
    object-fit: contain;
}
/* Gambar berlatar ungu (gambar1) dipotong rapi dalam lingkaran */
.hero-visual-clip
{
    border-radius: 50%;
    overflow: hidden;
    background: #ddddfc;
    border: 6px solid rgba(255, 255, 255, .35);
    box-shadow: 0 0 0 18px rgba(255, 255, 255, .08), 0 25px 50px rgba(15, 23, 42, .25);
}
.hero-visual-clip::before
{
    display: none;
}
.hero-visual-clip img
{
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
    /* geser sedikit ke kiri agar figur tidak terpotong tepi lingkaran */
    transform: translateX(-7%) scale(1.02);
    transform-origin: bottom center;
}
@media (max-width: 991.98px)
{
    .hero
    {
        text-align: center;
        padding: 3rem 0 3.5rem;
    }
    .hero-visual
    {
        max-width: 320px;
        margin-bottom: 2rem;
    }
    .hero-desc
    {
        margin-left: auto;
        margin-right: auto;
    }
}
@media (max-width: 575.98px)
{
    .hero
    {
        padding: 2rem 0 3rem;
    }
    .hero-visual
    {
        max-width: 240px;
        margin-bottom: 1.75rem;
    }
}

/* ---------- NOTIFIKASI (pengganti alert) ---------- */
.notif
{
    position: fixed;
    top: calc(var(--nav-h) + 12px);
    left: 50%;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: .6rem;
    width: max-content;
    max-width: calc(100% - 32px);
    padding: .8rem .9rem .8rem 1.1rem;
    border-radius: 14px;
    color: #fff;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transform: translateX(-50%);
    animation: notif-masuk .35s ease;
    transition: opacity .4s ease, transform .4s ease;
}
.notif-sukses
{
    background: #059669;
}
.notif-gagal
{
    background: #dc2626;
}
.notif .bi
{
    font-size: 1.2rem;
    flex-shrink: 0;
}
.notif button
{
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.4rem;
    line-height: 1;
    padding: 0 .25rem;
    opacity: .8;
    cursor: pointer;
}
.notif button:hover
{
    opacity: 1;
}
.notif-hilang
{
    opacity: 0;
    transform: translate(-50%, -12px);
}
@keyframes notif-masuk
{
    from { opacity: 0; transform: translate(-50%, -12px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- PENCARIAN MATERI ---------- */
.search-bar
{
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
    padding: .35rem .35rem .35rem 1.1rem;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    box-shadow: var(--shadow);
    transition: border-color .2s, box-shadow .2s;
}
.search-bar:focus-within
{
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(8, 145, 178, .15);
}
.search-bar .bi-search
{
    color: var(--muted);
}
.search-bar input
{
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: .45rem 0;
    font-size: .95rem;
    color: var(--ink);
}
.search-bar .btn
{
    padding: .45rem 1.3rem;
}
.search-info
{
    margin: .75rem 0 0;
    font-size: .9rem;
    color: var(--muted);
}
.bg-info .search-info,
.bg-info .search-info a
{
    color: #e0f2fe;
}
.search-info a
{
    font-weight: 600;
    white-space: nowrap;
}
mark
{
    padding: 0 .15em;
    border-radius: 4px;
    background: #fde68a;
    color: #1f2937;
}

/* Kolom yang dikunci sementara (mencegah isi otomatis browser) tetap tampak seperti kolom biasa */
.form-kosong .form-control[readonly]
{
    background: #f8fafc;
    cursor: text;
}

/* Label menu navbar tidak terpotong dua baris */
.navbar_beranda .navbar-nav .nav-link
{
    white-space: nowrap;
}
/* Navbar guru (5 menu) memakai menu lipat sampai lebar 1200px */
@media (max-width: 1199.98px)
{
    .navbar_beranda .navbar-expand-xl .navbar-collapse
    {
        padding: .75rem 0 1rem;
    }
    .navbar_beranda .navbar-expand-xl .navbar-nav .nav-link
    {
        padding: .7rem 1rem !important;
    }
    .navbar_beranda .navbar-expand-xl .navbar-collapse > .btn
    {
        display: block;
        margin-top: .5rem;
        text-align: center;
    }
}

/* Petunjuk AR Scanner di halaman praktikum */
.tab-panel-box ul.ar-petunjuk
{
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: grid;
    gap: .45rem;
}
.ar-petunjuk li
{
    display: flex;
    gap: .6rem;
    align-items: baseline;
    font-size: .95rem;
}
.ar-petunjuk .bi
{
    color: var(--brand);
    flex-shrink: 0;
}

/* Ikon pada menu tab (praktikum, cara penggunaan) */
.list-group-item .bi
{
    display: inline-block;
    width: 1.25em;
    margin-right: .45rem;
    text-align: center;
}
.list-group-item-action
{
    display: flex;
    align-items: center;
}
.list-group-item-action .bi
{
    flex-shrink: 0;
}

/* ===================== AKTIVITAS LOGIN (GURU & ADMIN) ===================== */
.aktivitas-login .card-header p
{
    opacity: .9;
}
.stat-aktivitas
{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-item
{
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.stat-item strong
{
    display: block;
    font-size: 1.6rem;
    line-height: 1.1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.stat-item strong small
{
    font-size: .9rem;
    color: var(--muted);
    font-weight: 500;
}
.stat-item span
{
    font-size: .85rem;
    color: var(--muted);
}
.stat-ikon
{
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.25rem;
    color: var(--brand);
    background: rgba(8, 145, 178, .12);
}
.stat-ikon.stat-aktif
{
    color: #059669;
    background: rgba(5, 150, 105, .12);
}
.stat-ikon.stat-gagal
{
    color: #dc2626;
    background: rgba(220, 38, 38, .1);
}
.stat-ikon.stat-belum
{
    color: var(--muted);
    background: var(--soft);
}
.judul-bagian
{
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    margin: 1.5rem 0 .25rem;
    scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.keterangan-bagian
{
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: .75rem;
}
.filter-aktivitas
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
}
.filter-aktivitas .search-bar
{
    flex: 1 1 240px;
    margin-top: 0;
}
.filter-aktivitas .form-control
{
    width: auto;
    border-radius: 999px;
}
.titik-aktif::before
{
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: #fff;
    vertical-align: 1px;
    animation: kedip-aktif 1.6s ease-in-out infinite;
}
@keyframes kedip-aktif
{
    50%
    {
        opacity: .35;
    }
}
@media (prefers-reduced-motion: reduce)
{
    .titik-aktif::before
    {
        animation: none;
    }
}
@media (max-width: 991.98px)
{
    .stat-aktivitas
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575.98px)
{
    .stat-item strong
    {
        font-size: 1.3rem;
    }
    .filter-aktivitas .form-control,
    .filter-aktivitas .btn
    {
        flex: 1 1 auto;
    }
}

/* ===================== ASESMEN PILIHAN GANDA ===================== */
.ringkas-asesmen
{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.ringkas-info
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem 1rem;
    font-size: .9rem;
    color: var(--muted);
}
.ringkas-tombol
{
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.aksi-asesmen
{
    white-space: nowrap;
}
.aksi-asesmen .btn
{
    margin: .1rem 0;
}
.kartu-soal
{
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0 0 1rem;
    padding: 1.1rem 1.25rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
    scroll-margin-top: calc(var(--nav-h) + 90px);
}
.kartu-soal.sedang-diubah
{
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(8, 145, 178, .15);
}
.kartu-soal.jawaban-benar
{
    border-left: 5px solid #059669;
}
.kartu-soal.jawaban-salah
{
    border-left: 5px solid #dc2626;
}
.kartu-soal-kepala
{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    margin-bottom: .6rem;
}
.nomor-soal
{
    width: auto;
    margin: 0;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand);
}
.aksi-soal
{
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}
.teks-soal
{
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: .8rem;
}
.teks-soal-ringkas
{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .9rem;
}
/* SOAL BERGAMBAR: GAMBAR PERTANYAAN (BISA BEBERAPA) & GAMBAR PILIHAN JAWABAN */
.galeri-gambar
{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: .8rem;
}
.galeri-gambar.galeri-opsi
{
    margin: .35rem 0 0;
}
.gambar-soal
{
    display: inline-block;
    max-width: 100%;
    padding: .35rem;
    background: #fff;
    border: 1px solid #dbe3ea;
    border-radius: .6rem;
}
a.gambar-soal
{
    cursor: zoom-in;
}
.gambar-soal img
{
    display: block;
    max-width: 100%;
    max-height: 420px;
    height: auto;
    border-radius: .4rem;
}
.gambar-soal.opsi img
{
    max-height: 180px;
}
.gambar-soal.kecil img
{
    max-height: 140px;
}
.gambar-soal.mini
{
    padding: .15rem;
}
.gambar-soal.mini img
{
    max-height: 56px;
}
.teks-opsi .galeri-opsi
{
    display: flex;
}
.gambar-sekarang
{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .5rem;
}
.kartu-gambar-lama
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
}
.isian-opsi-isi
{
    flex: 1;
    min-width: 0;
}
.gambar-opsi-form
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem .75rem;
    margin-top: .3rem;
}
.tombol-gambar-opsi
{
    cursor: pointer;
    border: 1px solid #dbe3ea;
}
.galeri-pratinjau
{
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
#pratinjau-soal:not(:empty)
{
    margin-top: .6rem;
}
.galeri-pratinjau img
{
    max-height: 120px;
    max-width: 100%;
    border: 1px dashed #94a3b8;
    border-radius: .5rem;
    padding: .2rem;
}
.gambar-opsi-form .galeri-pratinjau img
{
    max-height: 56px;
}
.baris-sebaran.ada-gambar
{
    grid-template-columns: 28px auto minmax(0, 1fr) 70px;
}
.baris-sebaran .galeri-gambar
{
    margin: 0;
}
.daftar-opsi
{
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .4rem;
}
.daftar-opsi li
{
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .5rem .75rem;
    border-radius: 10px;
    background: var(--soft);
}
.huruf-opsi
{
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: .85rem;
    color: var(--brand-dark);
    background: #fff;
    border: 1.5px solid #cbd5e1;
}
.teks-opsi
{
    flex: 1;
    min-width: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding-top: .15rem;
}
.daftar-opsi li.opsi-kunci
{
    background: rgba(5, 150, 105, .1);
}
.daftar-opsi li.opsi-kunci .huruf-opsi
{
    color: #fff;
    background: #059669;
    border-color: #059669;
}
.daftar-opsi li.opsi-salah
{
    background: rgba(220, 38, 38, .08);
}
.daftar-opsi li.opsi-salah .huruf-opsi
{
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
}
.label-kunci,
.label-salah
{
    flex-shrink: 0;
    font-size: .78rem;
    font-weight: 600;
    padding-top: .25rem;
    color: #059669;
}
.label-salah
{
    color: #dc2626;
}
.form-soal
{
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 14px;
    background: var(--surface);
    border: 1.5px dashed #94a3b8;
    scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.isian-opsi
{
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: .5rem;
}
.isian-opsi textarea
{
    resize: vertical;
}
.pilih-kunci
{
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin: .45rem 0 0;
    font-weight: 700;
    color: var(--brand-dark);
    cursor: pointer;
}
.pilih-kunci input
{
    width: 18px;
    height: 18px;
    accent-color: #059669;
}
.analisis-soal
{
    padding: .9rem 1.1rem;
    margin-bottom: .75rem;
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.analisis-kepala
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    margin-bottom: .35rem;
}
.analisis-persen
{
    font-size: .8rem;
    font-weight: 700;
    padding: .2rem .65rem;
    border-radius: 999px;
    color: var(--muted);
    background: var(--soft);
}
.analisis-persen.mudah
{
    color: #047857;
    background: rgba(5, 150, 105, .12);
}
.analisis-persen.sedang
{
    color: #b45309;
    background: rgba(245, 158, 11, .15);
}
.analisis-persen.sulit
{
    color: #b91c1c;
    background: rgba(220, 38, 38, .1);
}
.sebaran-jawaban
{
    display: grid;
    gap: .3rem;
}
.baris-sebaran
{
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 70px;
    align-items: center;
    gap: .6rem;
    font-size: .85rem;
}
.baris-sebaran .batang
{
    height: 10px;
    border-radius: 999px;
    background: var(--soft);
    overflow: hidden;
}
.baris-sebaran .batang span
{
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #94a3b8;
}
.baris-sebaran.opsi-kunci .batang span
{
    background: #059669;
}
.baris-sebaran.opsi-kunci .huruf-opsi
{
    color: #fff;
    background: #059669;
    border-color: #059669;
}
.baris-sebaran .jumlah
{
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.nilai-angka
{
    font-size: 1.1rem;
    color: var(--brand-dark);
}

/* Peserta didik: daftar & halaman mengerjakan */
.kartu-asesmen
{
    text-align: left;
}
.info-asesmen
{
    list-style: none;
    padding: 0;
    margin: .25rem 0 .75rem;
    font-size: .88rem;
    color: var(--muted);
}
.info-asesmen li
{
    margin-bottom: .2rem;
}
.nilai-kartu
{
    color: var(--ink);
}
.nilai-kartu strong
{
    font-size: 1.4rem;
    color: var(--brand-dark);
}
.info-mulai
{
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}
.info-mulai li
{
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: .6rem;
    padding: .75rem .9rem;
    border-radius: 12px;
    background: var(--soft);
}
.info-mulai i
{
    grid-row: span 2;
    font-size: 1.3rem;
    color: var(--brand);
}
.info-mulai span
{
    font-size: .8rem;
    color: var(--muted);
}
.info-mulai strong
{
    color: var(--ink);
}
.petunjuk-asesmen
{
    white-space: pre-wrap;
    padding: .8rem 1rem;
    border-radius: 12px;
    background: rgba(8, 145, 178, .08);
    color: var(--ink);
}
.bilah-ujian
{
    position: sticky;
    top: var(--nav-h);
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    padding: .7rem 1rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}
.bilah-judul
{
    flex: 1 1 200px;
    min-width: 0;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bilah-progres,
.bilah-simpan
{
    font-size: .85rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.bilah-simpan.menyimpan
{
    color: var(--brand);
}
.bilah-simpan.gagal
{
    color: #dc2626;
}
.bilah-waktu
{
    padding: .3rem .8rem;
    border-radius: 999px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--brand-dark);
    background: rgba(8, 145, 178, .1);
}
.bilah-waktu.hampir-habis
{
    color: #fff;
    background: #dc2626;
}
.navigasi-soal
{
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1.25rem;
}
.navigasi-soal a
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .85rem;
    color: var(--muted);
    background: var(--soft);
    border: 1.5px solid #e2e8f0;
    text-decoration: none;
}
.navigasi-soal a.sudah
{
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}
.pilihan-jawaban
{
    display: grid;
    gap: .5rem;
}
.pilihan
{
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin: 0;
    padding: .65rem .85rem;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: var(--surface);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.pilihan:hover
{
    border-color: #94a3b8;
}
.pilihan input
{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.pilihan input:focus-visible ~ .huruf-opsi
{
    box-shadow: 0 0 0 4px rgba(8, 145, 178, .3);
}
.pilihan:has(input:checked)
{
    border-color: var(--brand);
    background: rgba(8, 145, 178, .08);
}
.pilihan input:checked ~ .huruf-opsi
{
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}
.lingkar-nilai
{
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 10px solid var(--brand);
}
.lingkar-nilai.bagus
{
    border-color: #059669;
}
.lingkar-nilai.cukup
{
    border-color: #f59e0b;
}
.lingkar-nilai.kurang
{
    border-color: #dc2626;
}
.lingkar-nilai .angka
{
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--ink);
}
.lingkar-nilai .label
{
    font-size: .8rem;
    color: var(--muted);
}
@media (max-width: 575.98px)
{
    .info-mulai
    {
        grid-template-columns: minmax(0, 1fr);
    }
    .kartu-soal
    {
        padding: .9rem 1rem;
    }
    .aksi-asesmen
    {
        white-space: normal;
    }
}

/* ===================== IMPOR SOAL DARI EXCEL ===================== */
.judul-dengan-tombol
{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: .5rem 1rem;
}
.langkah-impor
{
    display: grid;
    gap: 1rem;
}
.langkah
{
    display: flex;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.langkah > div
{
    flex: 1;
    min-width: 0;
}
.langkah h3
{
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .35rem;
}
.langkah p,
.langkah ul
{
    color: var(--muted);
    font-size: .92rem;
}
.nomor-langkah
{
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 700;
    color: #fff;
    background: var(--brand);
}
.ringkas-impor
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    font-size: .92rem;
}
.tabel-impor td
{
    vertical-align: top;
    background: var(--surface);
}
.tabel-impor tr.baris-salah td
{
    background: rgba(220, 38, 38, .06);
}
.opsi-impor
{
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .85rem;
}
.opsi-impor li.opsi-kunci
{
    color: #047857;
    font-weight: 600;
}
.status-impor
{
    min-width: 180px;
    font-size: .88rem;
}
.text-warning-tua
{
    color: #b45309;
}

/* PROGRES TARGET JUMLAH SOAL */
.progres-target
{
    height: 5px;
    margin: .3rem auto 0;
    max-width: 90px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.progres-target span
{
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--brand);
}
.progres-target.besar
{
    height: 10px;
    max-width: none;
}
.kotak-progres
{
    padding: .75rem 1rem;
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

/* DEADLINE ASESMEN */
.info-deadline
{
    color: var(--brand-dark);
}
.info-deadline.lewat
{
    color: #b91c1c;
}
/* LABEL JENIS ASESMEN (LATIHAN / PRETEST / POSTTEST / STS / SAS) */
.label-jenis
{
    display: inline-block;
    padding: .1rem .55rem;
    margin-bottom: .25rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    vertical-align: middle;
    color: #fff;
    background: #64748b;
}
.label-jenis.jenis-latihan
{
    background: #0891b2;
}
.label-jenis.jenis-pretest
{
    background: #7c3aed;
}
.label-jenis.jenis-posttest
{
    background: #2563eb;
}
.label-jenis.jenis-sts
{
    background: #d97706;
}
.label-jenis.jenis-sas
{
    background: #dc2626;
}
/* DEADLINE YANG SUDAH LEWAT DI FORM PENGATURAN ASESMEN */
.form-control.deadline-lewat,
.form-control.deadline-lewat:focus
{
    border-color: #dc2626;
    background-color: #fef2f2;
    color: #b91c1c;
    box-shadow: 0 0 0 .15rem rgba(220, 38, 38, .2);
}
.peringatan-deadline
{
    margin-top: .4rem;
    padding: .5rem .75rem;
    border-radius: .5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: .85rem;
}
.peringatan-deadline[hidden]
{
    display: none;
}
.info-asesmen li.deadline-dekat
{
    color: #b45309;
    font-weight: 600;
}
.info-mulai li.deadline-lewat
{
    background: rgba(220, 38, 38, .08);
}
.info-mulai li.deadline-lewat i
{
    color: #dc2626;
}

.form-soal.target-penuh
{
    border-style: solid;
    border-color: #059669;
    background: rgba(5, 150, 105, .05);
}

/* =====================================================================
   TAMPILAN DINAMIS & RESPONSIF (WARNA TETAP MEMAKAI PALET DI :root)
   ===================================================================== */

/* ---------- GRADASI BERGERAK PELAN (HANYA DI KEPALA KARTU AGAR RINGAN DI HP) ---------- */
.card-header.bg-info
{
    background-size: 220% 220% !important;
    animation: gradasi-gerak 16s ease-in-out infinite;
}
@keyframes gradasi-gerak
{
    0%
    {
        background-position: 0% 30%;
    }
    50%
    {
        background-position: 100% 70%;
    }
    100%
    {
        background-position: 0% 30%;
    }
}

/* Bentuk dekoratif hero ikut melayang */
.hero::before
{
    animation: bentuk-melayang 14s ease-in-out infinite;
}
.hero::after
{
    animation: bentuk-melayang 11s ease-in-out infinite reverse;
}
@keyframes bentuk-melayang
{
    0%,
    100%
    {
        transform: translate(0, 0) scale(1);
    }
    50%
    {
        transform: translate(-24px, 18px) scale(1.06);
    }
}

/* Ilustrasi beranda bergerak naik-turun */
.hero-melayang img
{
    animation: gambar-melayang 6s ease-in-out infinite;
}
.hero-visual-clip.hero-melayang img
{
    animation: none;
}
.hero-visual-clip.hero-melayang
{
    animation: gambar-melayang 6s ease-in-out infinite;
}
@keyframes gambar-melayang
{
    0%,
    100%
    {
        transform: translateY(0);
    }
    50%
    {
        transform: translateY(-14px);
    }
}
.hero-visual-clip.hero-melayang img
{
    transform: translateX(-7%) scale(1.02);
}

/* Kilau lembut di kepala kartu */
.card-header.bg-info
{
    position: relative;
    overflow: hidden;
}
.card-header.bg-info::after
{
    content: "";
    position: absolute;
    top: -60%;
    right: -10%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    pointer-events: none;
}
.card-header.bg-info > *
{
    position: relative;
    z-index: 1;
}

/* Halaman muncul perlahan saat dibuka */
body > section:not(.navbar_beranda)
{
    animation: halaman-masuk .45s ease-out both;
}
@keyframes halaman-masuk
{
    from
    {
        opacity: 0;
    }
    to
    {
        opacity: 1;
    }
}

/* ---------- NAVBAR ---------- */
.navbar_beranda .navbar
{
    transition: background .3s ease, box-shadow .3s ease;
}
.navbar_beranda.tergulir .navbar
{
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .08), 0 12px 30px rgba(15, 23, 42, .12) !important;
}
.navbar_beranda .nav-link .bi
{
    margin-right: .3rem;
    color: var(--brand);
}
.navbar_beranda .navbar-brand
{
    transition: transform .25s ease;
}
.navbar_beranda .navbar-brand:hover
{
    transform: scale(1.04);
}
.navbar_beranda .btn
{
    white-space: nowrap;
}
.navbar_beranda .btn .bi
{
    margin-right: .3rem;
    color: inherit;
}
/* Garis bawah menu aktif di layar lebar */
@media (min-width: 1200px)
{
    .navbar_beranda .navbar-nav .nav-link
    {
        position: relative;
    }
    .navbar_beranda .navbar-nav .nav-link.active::after
    {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 2px;
        width: 18px;
        height: 3px;
        border-radius: 3px;
        background: var(--gradient);
        transform: translateX(-50%);
    }
}
/* Layar lebar: ikon menu hanya tampil di menu HP/tablet, navbar memakai lebar lebih besar agar menu guru muat satu baris */
@media (min-width: 1200px)
{
    .navbar_beranda .navbar-nav .nav-link .bi
    {
        display: none;
    }
    .navbar_beranda .navbar > .container
    {
        max-width: min(100%, 1400px);
    }
}
/* Laptop kecil: jarak antar menu dirapatkan */
@media (min-width: 1200px) and (max-width: 1499.98px)
{
    .navbar_beranda .navbar-nav .nav-link
    {
        padding: .5rem .7rem !important;
        font-size: .9rem;
    }
    .navbar_beranda .navbar-brand
    {
        margin-right: .75rem;
    }
    .navbar_beranda .btn
    {
        padding: .45rem 1.1rem;
    }
}
/* Menu HP/tablet: panel kartu dengan ikon */
@media (max-width: 1199.98px)
{
    .navbar_beranda .navbar-collapse
    {
        max-height: calc(100vh - var(--nav-h) - 8px);
        overflow-y: auto;
    }
    .navbar_beranda .navbar-collapse .navbar-nav
    {
        margin-top: .5rem;
        padding: .4rem;
        border-radius: 16px;
        background: #fff;
        box-shadow: var(--shadow);
    }
    .navbar_beranda .navbar-collapse .nav-link
    {
        display: flex;
        align-items: center;
        border-radius: 12px;
    }
    .navbar_beranda .navbar-collapse .nav-link .bi
    {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        margin-right: .75rem;
        border-radius: 10px;
        font-size: 1.05rem;
        background: rgba(8, 145, 178, .1);
    }
    .navbar_beranda .navbar-collapse .nav-link.active .bi
    {
        color: #fff;
        background: var(--gradient);
    }
}

/* ---------- BILAH PROGRES GULIR & TOMBOL KE ATAS ---------- */
.bilah-gulir
{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
}
.tombol-atas
{
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #fff;
    background: var(--gradient);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
    cursor: pointer;
}
.tombol-atas.tampil
{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.tombol-atas:hover
{
    filter: brightness(1.1);
    transform: translateY(-3px);
}
.tombol-atas:focus-visible
{
    outline: 3px solid rgba(8, 145, 178, .4);
    outline-offset: 3px;
}

/* ---------- KARTU MENU CEPAT DI BERANDA ---------- */
.hero-beranda
{
    padding-bottom: 2.5rem;
}
@media (min-width: 992px)
{
    .hero-beranda
    {
        min-height: auto;
        padding: 4.5rem 0 3rem;
    }
}
.menu-cepat
{
    padding: .5rem 0 3.5rem;
}
.kartu-menu
{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    height: 100%;
    padding: 1.25rem 1.2rem 1.4rem;
    border-radius: var(--radius);
    color: var(--ink);
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.kartu-menu::before
{
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .3s ease;
}
.kartu-menu:hover,
.kartu-menu:focus-visible
{
    color: var(--ink);
    text-decoration: none;
    transform: translateY(-6px);
    box-shadow: 0 26px 50px rgba(15, 23, 42, .22);
}
.kartu-menu:hover::before,
.kartu-menu:focus-visible::before
{
    transform: scaleX(1);
}
.kartu-menu-ikon
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: .4rem;
    border-radius: 14px;
    font-size: 1.4rem;
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 8px 18px rgba(8, 145, 178, .35);
    transition: transform .3s ease;
}
.kartu-menu:hover .kartu-menu-ikon
{
    transform: rotate(-8deg) scale(1.08);
}
.kartu-menu strong
{
    font-size: 1rem;
    line-height: 1.3;
}
.kartu-menu-ket
{
    font-size: .82rem;
    line-height: 1.45;
    color: var(--muted);
}
.kartu-menu-panah
{
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    color: var(--brand);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .25s ease, transform .25s ease;
}
.kartu-menu:hover .kartu-menu-panah
{
    opacity: 1;
    transform: translateX(0);
}
@media (max-width: 575.98px)
{
    .kartu-menu
    {
        padding: 1rem .9rem 1.1rem;
    }
    .kartu-menu-ikon
    {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
    .kartu-menu strong
    {
        font-size: .9rem;
    }
    .kartu-menu-ket
    {
        font-size: .75rem;
    }
}

/* ---------- INTERAKSI KECIL ---------- */
.btn:focus-visible,
.form-control:focus-visible
{
    outline: 3px solid rgba(8, 145, 178, .35);
    outline-offset: 2px;
}
.row.text-center .card,
.kartu-soal,
.stat-item
{
    transition: transform .25s ease, box-shadow .25s ease;
}
.stat-item:hover
{
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.badge
{
    font-weight: 600;
}

/* ---------- TABEL MENJADI KARTU DI HP & TABLET ---------- */
/* Label kolom diisi otomatis oleh footer.php (atribut data-label pada setiap sel) */
@media (max-width: 991.98px)
{
    .table-responsive:has(> .tabel-kartu)
    {
        border: 0;
        overflow: visible;
    }
    .tabel-kartu,
    .tabel-kartu > tbody,
    .tabel-kartu > tbody > tr,
    .tabel-kartu > tr
    {
        display: block;
        width: 100%;
    }
    .tabel-kartu
    {
        background: transparent;
    }
    .tabel-kartu .baris-kepala,
    .tabel-kartu > thead
    {
        display: none;
    }
    .tabel-kartu > tbody > tr,
    .tabel-kartu > tr
    {
        margin-bottom: .85rem;
        padding: .35rem 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        background: #fff;
        box-shadow: var(--shadow);
    }
    .tabel-kartu td
    {
        display: grid;
        grid-template-columns: minmax(72px, 30%) minmax(0, 1fr);
        gap: .75rem;
        align-items: start;
        padding: .6rem 0 !important;
        border: 0 !important;
        border-bottom: 1px dashed #e2e8f0 !important;
        text-align: left !important;
        white-space: normal !important;
        font-size: .9rem;
    }
    .tabel-kartu td:last-child
    {
        border-bottom: 0 !important;
    }
    .tabel-kartu td::before
    {
        content: attr(data-label);
        font-size: .7rem;
        font-weight: 700;
        letter-spacing: .04em;
        line-height: 1.6;
        text-transform: uppercase;
        color: var(--brand);
    }
    .tabel-kartu td:not([data-label])::before,
    .tabel-kartu td[data-label=""]::before
    {
        display: none;
    }
    .tabel-kartu td:not([data-label]),
    .tabel-kartu td[data-label=""],
    .tabel-kartu td.sel-penuh
    {
        display: block;
    }
    .tabel-kartu td.sel-penuh
    {
        text-align: center !important;
    }
    .tabel-kartu tr:hover td
    {
        background: transparent !important;
    }
    .tabel-kartu .isi-sel
    {
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .tabel-kartu .isi-sel .btn
    {
        margin: .15rem .25rem .15rem 0;
    }
    /* Kolom nomor menjadi label kecil di atas kartu */
    .tabel-kartu td[data-label="No"],
    .tabel-kartu td[data-label="No."]
    {
        display: flex;
        align-items: center;
        gap: .3rem;
        padding: .5rem 0 .4rem !important;
        font-size: .75rem;
        font-weight: 700;
        color: var(--muted);
    }
    .tabel-kartu td[data-label="No"]::before,
    .tabel-kartu td[data-label="No."]::before
    {
        content: "#";
        font-size: .75rem;
        color: var(--muted);
    }
    /* Tombol aksi berjajar ke samping */
    .tabel-kartu td[data-label^="Aksi"] .isi-sel
    {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: .35rem;
    }
    .tabel-kartu td[data-label^="Aksi"] .isi-sel .btn,
    .tabel-kartu td[data-label^="Aksi"] .isi-sel form
    {
        margin: 0;
    }
    .tabel-kartu td[data-label^="Aksi"] .isi-sel .btn
    {
        padding: .35rem .7rem;
    }
}

/* Tablet: kartu tabel tersusun 2 kolom */
@media (min-width: 576px) and (max-width: 991.98px)
{
    .tabel-kartu > tbody
    {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .85rem;
        align-items: start;
    }
    .tabel-kartu > tbody > tr
    {
        margin-bottom: 0;
    }
    .tabel-kartu > tbody > tr.baris-kepala,
    .tabel-kartu > tbody > tr:has(> .sel-penuh)
    {
        grid-column: 1 / -1;
    }
}
@media (max-width: 991.98px)
{
    /* Sel kosong (mis. kolom aksi tanpa tombol) tidak ditampilkan di kartu */
    .tabel-kartu td.sel-kosong
    {
        display: none !important;
    }
}

/* Kotak statistik: teks tidak keluar dari kotak di layar sempit */
.stat-item > div
{
    min-width: 0;
    overflow-wrap: anywhere;
}
@media (max-width: 575.98px)
{
    .stat-aktivitas
    {
        gap: .65rem;
    }
    .stat-item
    {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
        padding: .85rem;
    }
    .stat-ikon
    {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
    }
}

/* ---------- TABLET ---------- */
@media (min-width: 768px) and (max-width: 991.98px)
{
    .container
    {
        max-width: 94%;
    }
}

/* ---------- GERAKAN DIKURANGI (PENGATURAN PERANGKAT) ---------- */
@media (prefers-reduced-motion: reduce)
{
    .card-header.bg-info,
    .hero::before,
    .hero::after,
    .hero-melayang,
    .hero-melayang img,
    body > section
    {
        animation: none !important;
    }
}

/* =====================================================================
   TAMPILAN BARU: KERANGKA APLIKASI (SETELAH LOGIN)
   Laptop/PC  : menu samping kiri berisi profil & menu
   HP/Tablet  : bilah atas + navigasi bawah ala aplikasi + lembar "Semua menu"
   ===================================================================== */
:root
{
    --sidebar-w: 264px;
    --topbar-h: 62px;
    --bottomnav-h: 68px;
}

/* Warna Bootstrap "info" mengikuti warna tema */
.btn-info
{
    background: var(--gradient) !important;
}
.btn-outline-info
{
    color: var(--brand);
    border-color: var(--brand);
}
.btn-outline-info:hover,
.btn-outline-info:focus
{
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}
.alert-info
{
    color: #155e75;
    background: #ecfeff;
    border-color: #a5f3fc;
}
.card-header.bg-info
{
    border-bottom: 0;
}

/* Latar halaman setelah login dibuat terang & lembut */
body:has(.app-sidebar),
body:has(.app-sidebar).bg-info
{
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(79, 70, 229, .06), transparent 60%),
        radial-gradient(700px 380px at -10% 0%, rgba(6, 182, 212, .08), transparent 60%),
        var(--soft) !important;
    background-attachment: fixed !important;
}
body:has(.app-sidebar) .jumbotron.bg-white
{
    background: transparent !important;
}
body.kunci-gulir
{
    overflow: hidden;
}

/* ---------- MENU SAMPING (LAPTOP/PC) ---------- */
.app-sidebar
{
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    display: none;
    flex-direction: column;
    width: var(--sidebar-w);
    padding: 1.25rem 1rem;
    background: #fff;
    border-right: 1px solid #e8eaf3;
    box-shadow: 8px 0 30px rgba(15, 23, 42, .04);
}
.app-brand
{
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .25rem .5rem 1.25rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.02em;
    text-decoration: none !important;
}
.app-brand img
{
    width: 38px;
    height: 38px;
    object-fit: contain;
}
.app-brand span
{
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.app-profil
{
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #ecfeff, #f0f9ff);
}
.app-profil-teks
{
    min-width: 0;
    flex: 1;
    line-height: 1.25;
}
.app-profil-teks strong
{
    display: block;
    overflow: hidden;
    font-size: .95rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.app-profil-teks small
{
    color: var(--brand);
    font-weight: 600;
}
.app-avatar
{
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    font-weight: 700;
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 6px 14px rgba(8, 145, 178, .35);
}
.app-nav
{
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .2rem;
    margin-top: 1.25rem;
    overflow-y: auto;
}
.app-nav-judul
{
    padding: 0 .75rem .4rem;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #94a3b8;
}
.app-nav-link,
.app-keluar
{
    position: relative;
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .65rem .8rem;
    border-radius: 12px;
    font-size: .92rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none !important;
    transition: background .2s, color .2s, transform .2s;
}
.app-nav-link i,
.app-keluar i
{
    font-size: 1.15rem;
}
.app-nav-link:hover
{
    color: var(--brand);
    background: #ecfeff;
    transform: translateX(3px);
}
.app-nav-link.aktif
{
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 8px 20px rgba(8, 145, 178, .3);
}
.app-keluar
{
    margin-top: .75rem;
    color: #ef4444;
    border: 1px dashed #fecaca;
}
.app-keluar:hover
{
    color: #fff;
    background: #ef4444;
}

/* ---------- BILAH ATAS & NAVIGASI BAWAH (HP/TABLET) ---------- */
.app-topbar
{
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: .75rem;
    height: var(--topbar-h);
    padding: 0 1rem;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    transition: box-shadow .2s;
}
.app-topbar.tergulir
{
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}
.app-topbar-logo img
{
    width: 34px;
    height: 34px;
    object-fit: contain;
}
.app-topbar-judul
{
    flex: 1;
    min-width: 0;
    line-height: 1.2;
}
.app-topbar-judul small
{
    display: block;
    font-size: .7rem;
    color: var(--muted);
}
.app-topbar-judul strong
{
    display: block;
    overflow: hidden;
    font-size: 1rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.app-avatar-tombol
{
    width: 38px;
    height: 38px;
    cursor: pointer;
}
.app-bottomnav
{
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
    padding: .35rem .4rem env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .06);
}
.app-bottomnav a,
.app-bottomnav button
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    min-width: 0;
    padding: 0;
    border: 0;
    font-size: .68rem;
    font-weight: 500;
    color: #64748b;
    background: none;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}
.app-bottomnav span
{
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.app-bottomnav i
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 30px;
    border-radius: 999px;
    font-size: 1.2rem;
    transition: background .25s, color .25s, transform .25s;
}
.app-bottomnav .aktif
{
    color: var(--brand);
    font-weight: 600;
}
.app-bottomnav .aktif i
{
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 6px 14px rgba(8, 145, 178, .35);
}
.app-bottomnav a:active i,
.app-bottomnav button:active i
{
    transform: scale(.9);
}

/* Lembar "Semua menu" yang naik dari bawah */
.app-lembar
{
    position: fixed;
    inset: 0;
    z-index: 1060;
    visibility: hidden;
}
.app-lembar.terbuka
{
    visibility: visible;
}
.app-lembar-latar
{
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .3s;
}
.app-lembar-isi
{
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 85vh;
    padding: .75rem 1.1rem calc(1.25rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: #fff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -20px 40px rgba(15, 23, 42, .2);
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.app-lembar.terbuka .app-lembar-latar
{
    opacity: 1;
}
.app-lembar.terbuka .app-lembar-isi
{
    transform: translateY(0);
}
.app-lembar-pegangan
{
    display: block;
    width: 44px;
    height: 5px;
    margin: 0 auto .9rem;
    border-radius: 5px;
    background: #e2e8f0;
}
.app-lembar-tutup
{
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: #475569;
    background: #fff;
}
.app-lembar-grid
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    margin-top: 1rem;
}
.app-lembar-grid a
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    padding: .9rem .4rem;
    border-radius: 16px;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #eef0f6;
    text-decoration: none !important;
}
.app-lembar-grid a i
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 1.25rem;
    color: var(--brand);
    background: #ecfeff;
}
.app-lembar-grid a.aktif
{
    color: var(--brand);
    border-color: #a5f3fc;
    background: #ecfeff;
}
.app-lembar-grid a.aktif i
{
    color: #fff;
    background: var(--gradient);
}

/* Susunan halaman: HP/tablet memberi ruang untuk bilah atas & bawah */
@media (max-width: 991.98px)
{
    html:has(.app-sidebar)
    {
        scroll-padding-top: calc(var(--topbar-h) + 16px);
    }
    body:has(.app-sidebar)
    {
        padding-top: var(--topbar-h);
        padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
    }
    body:has(.app-sidebar) .tombol-atas
    {
        bottom: calc(var(--bottomnav-h) + 14px + env(safe-area-inset-bottom));
    }
    body:has(.app-sidebar) .notif
    {
        top: calc(var(--topbar-h) + 10px);
    }
    body:has(.app-sidebar) .site-footer
    {
        padding-bottom: 1rem;
    }
}
@media (min-width: 992px)
{
    .app-sidebar
    {
        display: flex;
    }
    .app-topbar,
    .app-bottomnav,
    .app-lembar
    {
        display: none;
    }
    html:has(.app-sidebar)
    {
        scroll-padding-top: 16px;
    }
    body:has(.app-sidebar)
    {
        padding-left: var(--sidebar-w);
    }
    body:has(.app-sidebar) .notif
    {
        top: 18px;
        left: calc(50% + var(--sidebar-w) / 2);
    }
    body:has(.app-sidebar) .bilah-gulir
    {
        left: var(--sidebar-w);
    }
}
@media (min-width: 992px) and (max-width: 1199.98px)
{
    :root
    {
        --sidebar-w: 232px;
    }
}

/* ---------- BERANDA BARU: KARTU SAMBUTAN & MENU CEPAT ---------- */
.beranda-baru
{
    padding: 1.5rem 0 3rem;
}
@media (min-width: 992px)
{
    .beranda-baru
    {
        padding-top: 2.5rem;
    }
}
.sambutan
{
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    overflow: hidden;
    border-radius: 28px;
    color: #fff;
    background: var(--gradient);
    background-size: 200% 200%;
    animation: gradasi-sambutan 12s ease infinite;
    box-shadow: 0 24px 50px rgba(8, 145, 178, .3);
    text-align: center;
}
@keyframes gradasi-sambutan
{
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.sambutan-hiasan
{
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(255, 255, 255, .1);
}
.sambutan-hiasan-1
{
    width: 320px;
    height: 320px;
    top: -140px;
    right: -90px;
}
.sambutan-hiasan-2
{
    width: 180px;
    height: 180px;
    bottom: -90px;
    left: -50px;
    background: rgba(255, 255, 255, .08);
}
.sambutan-teks,
.sambutan-visual
{
    position: relative;
    z-index: 1;
}
.sambutan-judul
{
    margin: .25rem 0 .5rem;
    font-size: clamp(1.5rem, 4.2vw, 2.4rem);
    line-height: 1.2;
    color: #fff;
}
.sambutan-judul span
{
    display: block;
    color: #cffafe;
}
.sambutan-tanggal
{
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .75rem;
    padding: .3rem .85rem;
    border-radius: 999px;
    font-size: .85rem;
    background: rgba(15, 23, 42, .18);
}
.sambutan-desc
{
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, .85);
}
.sambutan-visual
{
    max-width: 230px;
    margin: 0 auto;
}
.sambutan-visual img
{
    width: 100%;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .25));
}
.sambutan-visual.hero-visual-clip img
{
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, .3);
}
@media (max-width: 575.98px)
{
    .sambutan .btn-cta
    {
        display: none;
    }
    .sambutan-visual
    {
        max-width: 150px;
    }
}
@media (min-width: 768px)
{
    .sambutan
    {
        grid-template-columns: 1.4fr 1fr;
        padding: 2.5rem 2.75rem;
        text-align: left;
    }
    .sambutan-visual
    {
        max-width: 280px;
        margin-right: 0;
    }
}
.judul-menu-cepat
{
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    margin: 2.25rem 0 1rem;
}
.judul-menu-cepat h2
{
    margin: 0;
    font-size: 1.3rem;
    color: var(--ink);
}
.judul-menu-cepat span
{
    font-size: .85rem;
    color: var(--muted);
}
.beranda-baru .kartu-menu
{
    background: #fff;
    border: 1px solid #eceef6;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
}
.beranda-baru .kartu-menu:hover,
.beranda-baru .kartu-menu:focus-visible
{
    border-color: transparent;
    box-shadow: 0 22px 40px rgba(15, 23, 42, .12);
}

/* ---------- KARTU KONTEN (HALAMAN MENU) ---------- */
body:has(.app-sidebar) .card
{
    border: 1px solid #eceef6;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}
body:has(.app-sidebar) .card-header.bg-info
{
    position: relative;
    overflow: hidden;
    padding: 1.5rem 1.25rem;
    text-align: left !important;
}
body:has(.app-sidebar) .card-header.bg-info::after
{
    content: "";
    position: absolute;
    top: -60px;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    pointer-events: none;
}
body:has(.app-sidebar) .card-header.bg-info h2
{
    position: relative;
    z-index: 1;
    margin: 0;
}
body:has(.app-sidebar) .site-footer
{
    background: transparent;
    border-top: 1px solid #e8eaf3;
}

@media (prefers-reduced-motion: reduce)
{
    .sambutan
    {
        animation: none !important;
    }
    .app-lembar-isi,
    .app-lembar-latar
    {
        transition: none !important;
    }
}
