/* ==== dshine note custom style (v3) ==== */
:root { --note-accent: #4f8cff; }

/* Override dasar: font sans + ukuran besar */
body, .code-container, pre code, #code {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif !important;
}

.code-container { margin-top: 1.25rem; }

pre code, #code {
  font-size: 15px !important;
  line-height: 1.6 !important;
  letter-spacing: 0.2px;
  white-space: pre-wrap !important;
  word-break: break-word !important;
}

code-line {
  display: block;
  position: relative;
  padding: 0.25rem 3rem 0.25rem 0 !important;
}

/* Sembunyikan nomor baris biar bersih (raw style) */
code-line::before { display: none !important; }

/* Baris kosong jangan tinggi */
code-line:empty { display: none; }

/* Tombol copy per-field */
.note-copy-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(127,127,127,.35);
  border-radius: 8px;
  background: rgba(127,127,127,.10);
  color: inherit;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, transform .1s, border-color .15s;
}
.note-copy-btn:hover { background: rgba(79,140,255,.18); border-color: var(--note-accent); }
.note-copy-btn:active { transform: translateY(-50%) scale(.92); }
.note-copy-btn svg { width: 17px; height: 17px; display: block; }
.note-copy-btn.copied { background: rgba(40,180,99,.22); border-color: #28b463; }

/* Toast kecil */
.note-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20,20,20,.92);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 9999;
}
.note-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Sembunyikan footer credit MicroBin */
body > p:last-of-type { display: none !important; }

/* ============================================================
   Permintaan Bos (2026-11-07): hapus Guide, nama catatan (slug),
   logo microbin, dan link "Raw Text Content".
   Nav: logo (img), Guide (teks), nama catatan (link slug) — ke-3nya
   adalah elemen <a>; dibedakan lewat teksnya.
   ============================================================ */

/* 1) Logo microbin di nav */
#nav img { display: none !important; }

/* 2) Tombol "Guide" di nav */
#nav a[href="/guide"] { display: none !important; }
#nav a[href="/guide" i] { display: none !important; }

/* 3) Nama catatan (slug) di halaman /upload/<slug> + halaman list:
      bersihkan pola "link teks yang = slug halaman" tanpa merusak <pre id="code">.
      Setiap <a> ditandai .note-named-link dari JS, jadi lebih pasti. */
a.note-named-link { display: none !important; }

/* 4) Link "Raw Text Content" (menuju /raw/<slug>) */
a[href^="/raw/"] { display: none !important; }

/* Fallback: kalau ada teks mentah "Raw Text Content" di halaman non-link */
a.note-raw-link, span.note-raw-link { display: none !important; }

@media (max-width: 620px) {
  pre code, #code { font-size: 15px !important; line-height: 1.6 !important; }
  code-line { padding-right: 2.9rem !important; }
}

/* Overlay password untuk halaman List (client-side guard) */
.note-positive { }
.note-auth-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(8,10,14,.82);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.note-auth-box {
  width: 100%; max-width: 340px;
  background: #161a22; color: #e8eaed;
  border: 1px solid rgba(127,127,127,.25);
  border-radius: 14px; padding: 22px 20px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.note-auth-box h3 { margin: 0 0 14px; font-size: 17px; font-weight: 600; }
.note-auth-box input {
  width: 100%; box-sizing: border-box;
  padding: 11px 12px; font-size: 15px;
  background: #0e1116; color: #e8eaed;
  border: 1px solid rgba(127,127,127,.35); border-radius: 9px;
  outline: none;
}
.note-auth-box input:focus { border-color: var(--note-accent); }
.note-auth-actions { display: flex; gap: 10px; margin-top: 16px; }
.note-auth-actions button {
  flex: 1; padding: 11px 12px; font-size: 15px; font-weight: 600;
  border-radius: 9px; cursor: pointer; border: 1px solid transparent;
}
.note-auth-primary { background: var(--note-accent); color: #fff; }
.note-auth-primary:active { opacity: .85; }
.note-auth-ghost {
  background: transparent; color: #b9bec7;
  border-color: rgba(127,127,127,.35);
}
.note-auth-err { min-height: 18px; margin: 10px 0 0; font-size: 13px; color: #ff6b6b; }

/* Fallback CSS: sembunyikan link slug (nama catatan) + navigasi mentah.
   JS juga menandai .note-hide supaya pasti, tapi CSS ini jaring kedua. */
#nav a[href^="/upload/"] { display: none !important; }
a[href^="/raw/"], a[href^="/remove/"], a[href^="/guide"] { display: none !important; }

/* Halaman /upload/<slug>: judul/kode slug yang muncul di body */
.note-slug, .note-filename { display: none !important; }

/* ============================================================
   Halaman /list (sudah di balik login): kolom Key dikembalikan,
   dibuat enak di-copy buat share link.
   ============================================================ */
.note-col-key {
  font-weight: 600 !important;
  word-break: break-word !important;
  white-space: normal !important;
  cursor: pointer;
  user-select: all;
  -webkit-user-select: all;
}
.note-col-key:hover { color: var(--note-accent); }
.note-key-toast-hint { font-size: 12px; opacity: .7; }
