/* ═══════════════════════════════════════════════════════
   app.css — Light Theme, Mobile-First
   Clean · Accessible · Fast
   ═══════════════════════════════════════════════════════ */

/* fonts loaded via ui_header.php */

/* ── Design Tokens ─────────────────────────────────── */
:root {
  /* Surfaces — putih bersih dan simpel */
  --bg:    #f8fafc;
  --bg2:   #f1f5f9;
  --bg3:   #e2e8f0;
  --sur:   #ffffff;
  --sur2:  #f8fafc;
  --sur3:  #f1f5f9;

  /* Borders */
  --bd:    #e2e8f0;
  --bd2:   #cbd5e1;
  --bd3:   #94a3b8;

  /* Text */
  --tx:    #0f172a;
  --tx2:   #334155;
  --tx3:   #64748b;

  /* Accent — biru cerah */
  --a:     #2563eb;
  --a2:    #1d4ed8;
  --a3:    #eff6ff;
  --a4:    #bfdbfe;
  --a-glow: rgba(37,99,235,.05);

  /* Cyan */
  --c:     #0891b2;

  /* Success */
  --g:     #059669;
  --gbg:   #ecfdf5;
  --gbd:   #a7f3d0;

  /* Danger */
  --r:     #dc2626;
  --rbg:   #fef2f2;
  --rbd:   #fecaca;

  /* Warning */
  --w:     #d97706;
  --wbg:   #fffbeb;
  --wbd:   #fde68a;

  /* Geometry — lebih simpel dan seragam */
  --rad:   8px;
  --radl:  8px;
  --radxl: 8px;

  /* Shadows — minimalis & ringan */
  --sh:    0 1px 3px 0 rgba(0,0,0,0.05), 0 1px 2px 0 rgba(0,0,0,0.06);
  --sh2:   0 1px 3px 0 rgba(0,0,0,0.05), 0 1px 2px 0 rgba(0,0,0,0.06);

  /* Typography */
  --font:  'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', 'Fira Code', monospace;

  /* Safe areas (PWA notch/home bar) */
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--tx);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font); }

/* ── Shell ─────────────────────────────────────────── */
.shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ── Topbar ─────────────────────────────────────────── */
.topbar {
  background: var(--sur);
  border-bottom: 1px solid var(--bd);
  padding: calc(var(--safe-top) + 12px) 18px 12px;
  height: calc(var(--safe-top) + 58px);
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 500;
}

.logo {
  width: 34px; height: 34px;
  background: var(--a);
  border-radius: var(--rad);
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: none;
}
.logo svg {
  width: 15px; height: 15px;
  fill: none; stroke: #fff;
  stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round;
}

.brand-text { flex: 1; min-width: 0; }
.brand-name {
  font-size: .88rem; font-weight: 800;
  letter-spacing: -.02em; color: var(--tx);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-sub {
  font-size: .62rem; color: var(--tx3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.nav-divider { width: 1px; height: 18px; background: var(--bd); flex-shrink: 0; }

.nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  border-radius: var(--rad); border: 1px solid var(--bd);
  background: var(--sur); color: var(--tx2);
  font-size: .72rem; font-weight: 600;
  transition: none;
  white-space: nowrap; flex-shrink: 0;
  min-height: 36px;
  -webkit-tap-highlight-color: transparent;
}
.nav-btn:active { background: var(--bg2); color: var(--tx); }
.nav-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ── Main ──────────────────────────────────────────── */
.main {
  flex: 1;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 14px calc(var(--safe-bottom) + 28px);
}

@media (min-width: 540px) {
  .main { padding: 22px 20px calc(var(--safe-bottom) + 32px); }
}

/* ── Network Card ──────────────────────────────────── */
.net-card {
  border-radius: var(--radl); border: 1px solid;
  margin-bottom: 18px; overflow: hidden;
}
.net-card.online  { background: var(--sur); border-color: var(--gbd); box-shadow: var(--sh); }
.net-card.offline { background: var(--sur); border-color: var(--rbd); box-shadow: var(--sh); }

.net-main { display: flex; align-items: center; gap: 10px; padding: 13px 16px; }

.pulse { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.online .pulse  { background: var(--g); }
.offline .pulse { background: var(--r); }
@keyframes pls {
  0%,100% { opacity:1; }
  60%     { opacity:.5; }
}

.net-label { flex: 1; min-width: 0; font-size: .84rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online .net-label  { color: #065f46; }
.offline .net-label { color: #991b1b; }

.net-badge { font-size: .64rem; font-weight: 800; letter-spacing: .05em; padding: 3px 9px; border-radius: 20px; }
.online .net-badge  { background: rgba(5,150,105,.15); color: #065f46; }
.offline .net-badge { background: rgba(220,38,38,.1);  color: #991b1b; }

.net-info { display: flex; border-top: 1px solid; font-size: .71rem; }
.online .net-info  { border-color: rgba(167,243,208,.8); background: rgba(255,255,255,.5); }
.offline .net-info { border-color: rgba(254,202,202,.8); background: rgba(255,255,255,.5); }

.net-info-item { flex: 1; display: flex; align-items: center; gap: 6px; padding: 8px 16px; min-width: 0; }
.net-info-item + .net-info-item { border-left: 1px solid; }
.online .net-info-item  + .net-info-item { border-color: rgba(167,243,208,.8); }
.offline .net-info-item + .net-info-item { border-color: rgba(254,202,202,.8); }

.nii-lbl { color: var(--tx3); flex-shrink: 0; font-weight: 500; }
.nii-val { font-family: var(--mono); font-weight: 600; font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online .nii-val  { color: #065f46; }
.offline .nii-val { color: #991b1b; }

.nii-badge { font-size: .61rem; padding: 2px 7px; border-radius: 10px; font-weight: 700; flex-shrink: 0; border: 1px solid; background: #fff; }
.online .nii-badge  { color: var(--g); border-color: var(--gbd); }
.offline .nii-badge { color: var(--r); border-color: var(--rbd); }

.net-layers { display: flex; flex-wrap: wrap; border-top: 1px solid; font-size: .67rem; background: rgba(255,255,255,.4); }
.online .net-layers  { border-color: rgba(167,243,208,.6); }
.offline .net-layers { border-color: rgba(254,202,202,.6); }
.nl-item  { display: flex; align-items: center; gap: 5px; padding: 6px 12px; white-space: nowrap; font-weight: 500; }
.nl-dot   { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.nl-ok    { background: var(--g); }
.nl-fail  { background: #94a3b8; }
.nl-label { color: var(--tx2); }

/* ── Alert Warning ─────────────────────────────────── */
.alert-warn {
  display: flex; gap: 11px;
  padding: 13px 15px;
  border-radius: var(--radl); border: 1px solid var(--wbd);
  background: var(--wbg); color: var(--tx2);
  font-size: .8rem; margin-bottom: 18px; line-height: 1.65;
}
.alert-warn strong { color: var(--w); }
.alert-warn > span { flex-shrink: 0; }

/* ── Section ────────────────────────────────────────── */
.section { margin-bottom: 22px; }

.sec-head {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 10px; padding: 0 2px;
}

.sec-label {
  font-size: .67rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--tx3);
}

.sec-tag { font-size: .66rem; padding: 3px 10px; border-radius: 20px; font-weight: 700; border: 1px solid; }
.tag-on    { background: var(--gbg); color: #065f46; border-color: var(--gbd); }
.tag-off   { background: var(--rbg); color: #991b1b; border-color: var(--rbd); }
.tag-cloud { background: var(--a3);  color: var(--a); border-color: var(--a4); }

/* ── Card ──────────────────────────────────────────── */
.card {
  background: var(--sur);
  border: 1px solid var(--bd);
  border-radius: var(--radl);
  overflow: hidden;
  box-shadow: var(--sh);
}

/* ── File Row ──────────────────────────────────────── */
/* .thumb — image thumbnail inside .f-ico icon container */
.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.file-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  transition: background .12s;
}
.file-row + .file-row { border-top: 1px solid var(--bd); }
.file-row:active { background: var(--a3); }

.file-ico {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg2); border: 1px solid var(--bd);
  display: grid; place-items: center; font-size: 1rem; flex-shrink: 0;
}

.file-info { flex: 1; min-width: 0; }
.file-name {
  font-size: .8rem; font-weight: 600; color: var(--tx);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px;
}
.file-meta { font-size: .68rem; color: var(--tx3); font-weight: 500; }
.file-meta.locked { color: var(--r); }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 8px; border: 1px solid;
  font-size: .74rem; font-weight: 700;
  transition: none;
  white-space: nowrap; flex-shrink: 0;
  min-height: 32px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font);
}
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.btn:active { transform: none; }

.btn-dl   { background: var(--a); border-color: var(--a); color: #fff; box-shadow: none; }
.btn-warn { background: var(--wbg); border-color: var(--wbd); color: var(--w); }
.btn-ghost{ background: var(--a3); border-color: var(--a4); color: var(--a); }
.btn-lock { background: var(--sur3); border-color: var(--bd); color: var(--tx3); cursor: default; font-size: .7rem; }

/* ── Empty State ───────────────────────────────────── */
.empty { padding: 36px 20px; text-align: center; color: var(--tx3); font-size: .82rem; }
.empty-ico { font-size: 2.2rem; margin-bottom: 10px; opacity: .45; }

/* ── Toast ─────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--tx);
  color: #fff;
  padding: 10px 20px;
  border-radius: 40px;
  font-size: .8rem; font-weight: 600;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  opacity: 0; pointer-events: none;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  z-index: 9999;
  white-space: nowrap;
  max-width: calc(100vw - 40px);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Footer ────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 14px 16px calc(var(--safe-bottom) + 14px);
  font-size: .7rem; color: var(--tx3);
  border-top: 1px solid var(--bd);
}

/* ── PWA Install Banner ────────────────────────────── */
.pwa-banner {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: var(--radl);
  background: var(--a3);
  border: 1px solid var(--a4);
  display: flex; align-items: center; gap: 12px;
}
.pwa-icon { font-size: 1.6rem; flex-shrink: 0; }
.pwa-text { flex: 1; min-width: 0; }
.pwa-title { font-size: .82rem; font-weight: 700; color: var(--tx); margin-bottom: 2px; }
.pwa-desc  { font-size: .7rem; color: var(--tx3); }
.pwa-btn {
  background: var(--a); color: #fff; border: none; border-radius: 9px;
  padding: 8px 14px; font-size: .75rem; font-weight: 700;
  white-space: nowrap; flex-shrink: 0; min-height: 36px;
  cursor: pointer; font-family: var(--font);
  box-shadow: 0 2px 8px var(--a-glow);
  -webkit-tap-highlight-color: transparent;
}
.pwa-dismiss {
  background: none; border: none; color: var(--tx3);
  font-size: 1.1rem; padding: 4px; flex-shrink: 0; cursor: pointer; line-height: 1;
}

/* ── Auth Page ─────────────────────────────────────── */
.lock-ico {
  width: 50px; height: 50px;
  background: var(--a3); border: 1px solid var(--a4);
  border-radius: 13px; display: grid; place-items: center; margin: 0 auto 14px;
}
.lock-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--a); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth-h1  { font-size: 1.1rem; font-weight: 800; text-align: center; margin-bottom: 4px; }
.auth-sub { font-size: .8rem; color: var(--tx3); text-align: center; margin-bottom: 18px; }

.item-badge { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 11px; background: var(--sur2); border: 1px solid var(--bd); margin-bottom: 16px; }
.item-ico  { font-size: 1.1rem; flex-shrink: 0; }
.item-name { flex: 1; min-width: 0; font-size: .84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-type { font-size: .64rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; border: 1px solid; flex-shrink: 0; }
.it-file   { background: var(--a3); color: var(--a); border-color: var(--a4); }
.it-link   { background: var(--gbg); color: var(--g); border-color: var(--gbd); }

.err {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 13px; border-radius: 10px;
  background: var(--rbg); border: 1px solid var(--rbd);
  color: #991b1b; font-size: .8rem; font-weight: 600;
  margin-bottom: 14px;
}

.lbl { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tx3); margin-bottom: 6px; }

.pw-wrap { position: relative; margin-bottom: 14px; }
.pw-in {
  width: 100%; padding: 11px 44px 11px 13px;
  border: 1.5px solid var(--bd2); border-radius: 11px;
  background: var(--sur); color: var(--tx);
  font-size: 1rem; font-family: var(--font);
  outline: none; transition: all .18s; min-height: 46px;
  -webkit-appearance: none; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.pw-in:focus { border-color: var(--a); box-shadow: 0 0 0 3px var(--a4); }

.eye {
  position: absolute; right: 11px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; font-size: .95rem;
  cursor: pointer; padding: 7px; color: var(--tx3); line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.btn-submit {
  width: 100%; padding: 13px;
  background: var(--a); color: #fff; border: none;
  border-radius: 11px; font-size: .92rem; font-weight: 800;
  font-family: var(--font); cursor: pointer;
  box-shadow: 0 4px 16px var(--a-glow);
  min-height: 48px; transition: all .15s;
}
.btn-submit:active { transform: scale(.97); }

.hint { text-align: center; margin-top: 13px; font-size: .77rem; color: var(--tx3); }
.hint a { color: var(--a); font-weight: 600; }

.main .card { animation: cardIn .2s ease; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Login Page ────────────────────────────────────── */
.login {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--safe-top) + 24px) 16px calc(var(--safe-bottom) + 24px);
  background: var(--bg2);
}
.lcard {
  width: 100%; max-width: 360px;
  background: var(--sur); border: 1px solid var(--bd);
  border-radius: var(--radl); padding: 26px 22px;
  box-shadow: var(--sh);
  animation: none;
}
.l-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.l-logo {
  width: 42px; height: 42px;
  background: var(--a);
  border-radius: var(--rad); display: grid; place-items: center; flex-shrink: 0;
  box-shadow: none;
}
.l-logo svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.net-pill {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: var(--rad); border: 1px solid;
  font-size: .75rem; font-weight: 600; margin-bottom: 16px;
}
.np-on  { background: var(--gbg); border-color: var(--gbd); color: #065f46; }
.np-off { background: var(--rbg); border-color: var(--rbd); color: #991b1b; }
.np-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.np-on  .np-dot { background: var(--g); }
.np-off .np-dot { background: var(--r); }

.btn-login {
  width: 100%; padding: 13px;
  background: var(--a); color: #fff; border: none;
  border-radius: var(--rad); font-size: .92rem; font-weight: 800;
  font-family: var(--font); cursor: pointer;
  box-shadow: none;
  min-height: 48px; transition: none;
}
.btn-login:active { transform: none; }

.back-link { text-align: center; margin-top: 13px; font-size: .77rem; color: var(--tx3); }
.back-link a { color: var(--a); font-weight: 600; }

/* ── Inline code ───────────────────────────────────── */
code {
  font-family: var(--mono); font-size: .82em;
  background: var(--sur3); color: var(--a);
  padding: 1px 5px; border-radius: 5px; border: 1px solid var(--bd);
}

/* ═══════════════════════════════════════════════════════
   PERBAIKAN DESAIN — Ditambahkan di akhir file
   Dark mode, animasi, transisi, aksesibilitas
   Semua variabel tetap menggunakan nama asli
   ═══════════════════════════════════════════════════════ */

/* ── Dark Mode ─────────────────────────────────────── */
[data-theme="dark"] {
  --bg:    #0b1120;
  --bg2:   #162032;
  --bg3:   #1e2d44;
  --sur:   #141e30;
  --sur2:  #1a2742;
  --sur3:  #233352;
  --bd:    #1e3050;
  --bd2:   #2a4060;
  --bd3:   #3a5070;
  --tx:    #f1f5f9;
  --tx2:   #b0bec5;
  --tx3:   #78909c;
  --a:     #60a5fa;
  --a2:    #93c5fd;
  --a3:    rgba(96,165,250,.15);
  --a4:    rgba(96,165,250,.30);
  --a-glow: rgba(96,165,250,.10);
  --c:     #22d3ee;
  --g:     #34d399;
  --gbg:   rgba(52,211,153,.15);
  --gbd:   rgba(52,211,153,.30);
  --r:     #f87171;
  --rbg:   rgba(248,113,113,.15);
  --rbd:   rgba(248,113,113,.30);
  --w:     #fbbf24;
  --wbg:   rgba(251,191,36,.15);
  --wbd:   rgba(251,191,36,.30);
  --sh:    0 2px 8px rgba(0,0,0,.4);
  --sh2:   0 4px 16px rgba(0,0,0,.5);
}
[data-theme="dark"] body {
  background: #0b1120;
  color: #f1f5f9;
}

/* ── Transisi Halus untuk Ganti Tema ───────────────── */
body,
.topbar,
.card,
.net-card,
footer {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

/* ── Theme Toggle Button ───────────────────────────── */
.theme-toggle {
  padding: 6px 8px !important;
  gap: 0 !important;
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .t-sun  { display: block; }
.theme-toggle .t-moon { display: none; }
[data-theme="dark"] .theme-toggle .t-sun  { display: none; }
[data-theme="dark"] .theme-toggle .t-moon { display: block; }

/* ── Animasi Masuk Halaman ─────────────────────────── */
.main {
  animation: fadeUp .4s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Pulse pada Status Jaringan ────────────────────── */
.online .pulse {
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(5,150,105,.4); }
  70%  { box-shadow: 0 0 0 8px rgba(5,150,105,0); }
  100% { box-shadow: 0 0 0 0 rgba(5,150,105,0); }
}

/* ── Hover File Row yang Lebih Baik ────────────────── */
.file-row {
  transition: background-color .15s ease;
}
.file-row:hover {
  background: var(--a-glow);
}
@media (hover: none) {
  .file-row:hover { background: transparent; }
  .file-row:active { background: var(--a-glow); }
}

/* ── Hover Tombol yang Lebih Baik ──────────────────── */
.btn-dl {
  transition: all .2s ease;
}
.btn-dl:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.btn-dl:active {
  transform: translateY(0);
}
.btn-warn {
  transition: all .2s ease;
}
.btn-warn:hover {
  background: var(--w);
  color: #fff;
}
.btn-ghost {
  transition: all .2s ease;
}
.btn-ghost:hover {
  background: var(--a3);
  border-color: var(--a4);
}

/* ── Focus Visible (Aksesibilitas) ─────────────────── */
:focus-visible {
  outline: 2px solid var(--a);
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible {
  border-radius: 4px;
}

/* ── Animasi Error (Shake) ─────────────────────────── */
.err {
  animation: shake .4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

/* ── Selection Color ───────────────────────────────── */
::selection {
  background: var(--a3);
  color: var(--a);
}

/* ── Footer Transition ─────────────────────────────── */
footer {
  border-top: 1px solid var(--bd);
}

/* ── Toast Improvement ─────────────────────────────── */
#toast {
  transition: opacity .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}

/* ── PWA Banner Animasi ────────────────────────────── */
.pwa-banner {
  animation: fadeUp .4s ease both;
}

/* ── Print ─────────────────────────────────────────── */
@media print {
  .topbar, .pwa-banner, #toast { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; }
}

/* ── Reduced Motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── Responsive: Layar Kecil ───────────────────────── */
@media (max-width: 380px) {
  .topbar { gap: 6px; padding: 0 10px; }
  .brand-name { font-size: .8rem; }
  .brand-sub { font-size: .58rem; }
  .nav-btn .lbl { display: none; }
  .file-row { padding: 10px 12px; gap: 8px; }
  .file-ico { width: 32px; height: 32px; }
  .file-name { font-size: .78rem; }
  .btn { padding: 6px 10px; font-size: .7rem; }
  .btn svg { width: 13px; height: 13px; }
}
