/*
 * Tema baru Portal Praktikan (posttest.php dan data_praktikum.php): header gelap + kartu putih + tombol chunky.
 * Dimuat SETELAH publik.css, posttest.css, dan praktikum.css, jadi hanya menimpa tampilan. Logika dan kelas JS tidak berubah.
 */
body.ptx { position: relative; background: #f3f7ff; }
body.ptx .pb-bg { display: none; }
body.ptx::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 70px; z-index: 0; pointer-events: none;
  background: radial-gradient(320px 300px at 0% 0%, rgb(47 107 255 / .6), transparent 68%), radial-gradient(280px 260px at 100% 30%, rgb(25 199 230 / .28), transparent 68%), #0b1a47; }
body.ptx.ptx-h300::before { height: 300px; }
body.ptx.ptx-h200::before { height: 200px; }
.ptx-wrap { position: relative; z-index: 1; }

/* header */
.ptx-top { color: #fff; }
.ptx-top b { color: #fff; font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptx-top .pb-eyebrow { color: #b9cdf5; }
.ptx-top .pb-mark { width: 40px; height: 40px; border-radius: 13px; font-size: 14px; background: linear-gradient(145deg, #6aa8ff, #2a5be0); box-shadow: 0 0 20px rgb(47 107 255 / .6), inset 0 2px 1px rgb(255 255 255 / .5); }
.ptx-out { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 14px; border: 1px solid rgb(255 255 255 / .25); background: rgb(255 255 255 / .1); color: #fff; font: 700 13px var(--font); text-decoration: none; }
.ptx-out:focus-visible, .ptx-menu:focus-visible, .ptx-tile:focus-visible, .ptx-scan:focus-visible, .lg-btn:focus-visible { outline: 3px solid #7cc0ff; outline-offset: 3px; }

/* kartu dan tombol */
.ptx-card, .dp-card { border: 1px solid #dbe6f7; border-radius: 26px; box-shadow: 0 24px 36px -22px rgb(10 30 90 / .45); }
.ptx-card h1 { font-size: 21px; letter-spacing: -.015em; }
.lg-btn { min-height: 52px; border-radius: 16px; background: linear-gradient(150deg, #2a66e8, #1c4ccb); box-shadow: 0 6px 0 #12379a, 0 16px 20px -12px rgb(18 55 154 / .7), inset 0 2px 0 rgb(255 255 255 / .35); transition: transform .1s, box-shadow .1s; }
.lg-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #12379a, inset 0 2px 0 rgb(255 255 255 / .3); }
.lg-btn:disabled { box-shadow: 0 3px 0 #12379a; }
.ptx-field, .lg-field input { border-radius: 14px; }
.ptx-info { border-radius: 14px; }
.ptx-siapa { border-radius: 18px; }
.ptx-kamera { border-radius: 24px; }
.ptx-ikon { border-radius: 18px; background: linear-gradient(180deg, #4b97ff, #1f5ad6); box-shadow: 0 5px 0 #14409e, inset 0 2px 0 rgb(255 255 255 / .45); }

/* ujian */
.ptx-bar { border-radius: 20px; border-color: #dbe6f7; }
.ptx-prog { height: 8px; }
.ptx-prog i { background: linear-gradient(90deg, #4b97ff, #1c4ccb); }
.ptx-opsi { border-radius: 18px; border: 1px solid #dbe6f7; box-shadow: 0 4px 0 #bccdea; }
.ptx-opsi[aria-pressed="true"] { border-color: #1c4ccb; background: #eaf2ff; box-shadow: 0 4px 0 #9db8ea; }
.ptx-opsi[aria-pressed="true"] .ptx-h { background: #1c4ccb; border-color: #1c4ccb; }
body.ptx .pt-skor b { color: #1c4ccb; }

/* ---------- Hero (beranda & nilai) ---------- */
.ptx-hero { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 4px 0; color: #fff; }
.ptx-hero > div:first-child { min-width: 0; }
.ptx-hero .hai { font-size: 13px; font-weight: 600; color: #c7d6f5; }
.ptx-hero h1 { margin: 2px 0 0; font-size: 27px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; }
.ptx-hero .npm { margin-top: 4px; font: 500 12.5px var(--mono); color: #c7d6f5; }
.ptx-hero .chip { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 99px; border: 1px solid rgb(255 255 255 / .25); background: rgb(255 255 255 / .1); font-size: 11px; font-weight: 700; color: #dbe7ff; }
.ptx-cincin { position: relative; flex: none; width: 112px; height: 112px; }
.ptx-cincin svg { width: 112px; height: 112px; transform: rotate(-90deg); filter: drop-shadow(0 0 12px rgb(80 160 255 / .55)); }
.ptx-cincin circle { fill: none; stroke-width: 10; stroke: rgb(255 255 255 / .16); }
.ptx-cincin circle + circle { stroke: #7cc0ff; stroke-linecap: round; }
.ptx-cincin div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ptx-cincin b { font: 800 26px/1 var(--font); letter-spacing: -.03em; }
.ptx-cincin span { margin-top: 3px; font-size: 10.5px; font-weight: 700; color: #c7d6f5; }

/* ---------- Kartu perjalanan ---------- */
.pj-card { padding: 14px 16px 6px; border-radius: 26px; background: #fff; border: 1px solid #dbe6f7; box-shadow: 0 24px 36px -20px rgb(10 30 90 / .55); }
.pj-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 36px; }
.pj-head h2 { margin: 0; font-size: 15px; font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.pj-head small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pj-head a { display: inline-flex; align-items: center; gap: 2px; flex: none; min-height: 44px; font-size: 12.5px; font-weight: 800; color: #1a4fb8; text-decoration: none; }
.pj-row { display: flex; align-items: center; gap: 12px; min-height: 60px; box-sizing: border-box; padding: 8px 0; border-top: 1px solid #e3ecfa; }
.pj-head + .pj-row { border-top: 0; }
.pj-bd { flex: none; width: 34px; height: 34px; box-sizing: border-box; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #12a36b; box-shadow: 0 3px 0 #0a6e49; }
.pj-bd.todo { background: #fff1d6; border: 2px dashed #e0a43a; box-shadow: none; }
.pj-tx { flex: 1; min-width: 0; }
.pj-tx b { display: block; font-size: 14px; font-weight: 800; }
.pj-tx small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.pj-val { flex: none; font: 800 21px/1 var(--font); }
.pj-pill { flex: none; padding: 4px 10px; border-radius: 99px; background: #fff1d6; font-size: 11.5px; font-weight: 800; color: #7a4d00; }
.pj-foot { margin: 0; padding: 8px 0 10px; border-top: 1px solid #e3ecfa; font-size: 11.5px; color: var(--muted); }

/* ---------- Scan & tile ---------- */
.ptx-scan { display: flex; align-items: center; gap: 14px; box-sizing: border-box; min-height: 84px; padding: 14px 16px; border-radius: 24px; color: #fff; text-decoration: none; background: linear-gradient(150deg, #2a66e8, #1c4ccb); box-shadow: 0 7px 0 #12379a, 0 22px 26px -14px rgb(18 55 154 / .7), inset 0 2px 0 rgb(255 255 255 / .35); transition: transform .1s, box-shadow .1s; }
.ptx-scan { margin-bottom: 6px; }
.ptx-scan:active { transform: translateY(4px); box-shadow: 0 3px 0 #12379a, inset 0 2px 0 rgb(255 255 255 / .3); }
.ptx-scan .ic { flex: none; width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; background: rgb(255 255 255 / .18); border: 1px solid rgb(255 255 255 / .35); }
.ptx-scan .tx { flex: 1; min-width: 0; }
.ptx-scan b { display: block; font-size: 17px; font-weight: 800; }
.ptx-scan small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: #e3ecff; }
.ptx-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ptx-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; box-sizing: border-box; min-height: 96px; padding: 14px; border-radius: 22px; background: #fff; border: 1px solid #dbe6f7; box-shadow: 0 12px 20px -14px rgb(20 60 140 / .5); color: var(--ink); text-decoration: none; transition: transform .1s; }
.ptx-tile:active { transform: translateY(2px); }
.ptx-tile .ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; }
.ptx-tile b { font-size: 14px; font-weight: 800; line-height: 1.2; }
.ptx-tile.biru .ic { color: #1f5ad6; background: #e6efff; } .ptx-tile.ungu .ic { color: #6d3cf0; background: #efe9ff; }
.ptx-tile.hijau .ic { color: #0f8a5c; background: #dcf6ea; } .ptx-tile.oranye .ic { color: #b5600a; background: #fff1d6; }
.ptx-catatan { margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--muted); text-align: center; }

/* menu lama (dipakai di data_praktikum.php: daftar jenis data) */
.ptx-menu { border-radius: 22px; border: 1px solid #dbe6f7; box-shadow: 0 12px 20px -14px rgb(20 60 140 / .5); }
.ptx-menu.alt .ptx-ikon { background: linear-gradient(180deg, #34d399, #0f9a66); box-shadow: 0 5px 0 #0a6e49, inset 0 2px 0 rgb(255 255 255 / .5); }

/* halaman nilai */
.ns-akhir b { color: #1c4ccb; }
.ns-komp > div { border-radius: 16px; }
.ns-komp i { background: linear-gradient(90deg, #4b97ff, #1c4ccb); }

@media (max-width: 360px) { .ptx-cincin { width: 92px; height: 92px; } .ptx-cincin svg { width: 92px; height: 92px; } .ptx-hero h1 { font-size: 23px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
