/* ============================================================================
   qoder-nav-premium-20261130.css
   Drawer navigasi Panel Admin (Menu utama / Pengaturan / Konten Website).
   Target: ritme baris yang sama rata, ikon seragam dalam chip emas, label
   terbaca (floor 14 px) dan tampilan identik dari jam tangan digital s/d
   desktop 2560 px. Nilai ditulis dalam px, bukan rem, supaya tidak ikut
   skala font-size root yang berbeda di tiap lebar viewport.
   ========================================================================== */

html body .admin-shell .admin-sidebar {
  width: 312px !important;
  max-width: calc(100vw - 12px) !important;
  padding: 20px 14px 24px !important;
  background:
    radial-gradient(120% 34% at 0% 0%, rgba(231, 199, 121, .11), transparent 52%),
    linear-gradient(180deg, #061a30 0%, #0a2946 44%, #071e36 100%) !important;
  border-right: 0 !important;
  box-shadow: inset -1px 0 0 rgba(231, 199, 121, .26), 24px 0 58px -34px rgba(4, 14, 28, .8) !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
html body .admin-shell .admin-sidebar::-webkit-scrollbar { width: 6px; }
html body .admin-shell .admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(231, 199, 121, .34);
  border-radius: 99px;
}

/* --- blok logo / identitas -------------------------------------------------- */
html body .admin-shell .admin-sidebar > div:first-child {
  gap: 11px !important;
  margin: 0 0 18px !important;
  padding: 0 6px 16px !important;
  border-bottom: 1px solid rgba(231, 199, 121, .2) !important;
  min-height: 0 !important;
}
html body .admin-shell .admin-sidebar > div:first-child > span:first-child {
  width: 42px !important;
  height: 42px !important;
  border: 1.5px solid rgba(231, 199, 121, .58) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .26) !important;
}
html body .admin-shell .admin-sidebar > div:first-child p:first-of-type {
  font-size: 15px !important;
  line-height: 1.25 !important;
  color: #f7f2e6 !important;
  white-space: nowrap !important;
}
html body .admin-shell .admin-sidebar > div:first-child p:last-of-type {
  font-size: 9.5px !important;
  letter-spacing: .17em !important;
  color: rgba(231, 199, 121, .78) !important;
  white-space: nowrap !important;
}
html body .admin-shell .admin-sidebar button[aria-label="Tutup menu"] {
  width: 34px !important;
  height: 34px !important;
  min-height: 0 !important;
  border-radius: 10px !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(255, 255, 255, .05) !important;
  border: 1px solid rgba(231, 199, 121, .22) !important;
  color: rgba(247, 242, 230, .8) !important;
}

/* --- judul grup ------------------------------------------------------------- */
html body .admin-shell .admin-sidebar p[class~="uppercase"]:not([class~="truncate"]) {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 22px 0 9px !important;
  padding: 0 8px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: .15em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  color: rgba(231, 199, 121, .82) !important;
}
html body .admin-shell .admin-sidebar p[class~="uppercase"]:not([class~="truncate"])::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(231, 199, 121, .34), rgba(231, 199, 121, 0));
}
html body .admin-shell .admin-sidebar > p[class~="uppercase"]:not([class~="truncate"]):first-of-type { margin-top: 4px !important; }

/* --- baris menu ------------------------------------------------------------- */
html body .admin-shell .admin-sidebar div[class~="space-y-1"],
html body .admin-shell .admin-sidebar div[class~="pt-5"] {
  display: flex;
  flex-direction: column;
  gap: 6px !important;
}
html body .admin-shell .admin-sidebar div[class~="space-y-1"] > *,
html body .admin-shell .admin-sidebar div[class~="pt-5"] > * { margin-top: 0 !important; }

html body .admin-shell .admin-sidebar :where(a, button) {
  position: relative !important;
  min-height: 56px !important;
  padding: 8px 10px !important;
  gap: 11px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(255, 255, 255, .06) !important;
  background: rgba(255, 255, 255, .022) !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: .005em !important;
  text-align: left !important;
  transform: none !important;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease !important;
}
html body .admin-shell .admin-sidebar :where(a, button) span[class~="truncate"] {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  text-wrap: balance;
  line-height: 1.26 !important;
  font-size: 15px !important;
  color: rgba(233, 240, 250, .86) !important;
}

/* chip ikon: satu bahasa visual untuk shield / dokumen / pena / keluar */
html body .admin-shell .admin-sidebar :where(a, button) > span:first-child {
  display: grid !important;
  place-items: center;
  flex: 0 0 auto;
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  background: linear-gradient(150deg, rgba(231, 199, 121, .16), rgba(231, 199, 121, .07)) !important;
  border: 1px solid rgba(231, 199, 121, .26) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07) !important;
}
html body .admin-shell .admin-sidebar :where(a, button) > span:first-child svg {
  width: 17px !important;
  height: 17px !important;
  color: #ddb972 !important;
  filter: none !important;
  stroke-width: 2 !important;
}

html body .admin-shell .admin-sidebar :where(a, button):hover {
  background: linear-gradient(90deg, rgba(231, 199, 121, .16), rgba(231, 199, 121, .05)) !important;
  border-color: rgba(231, 199, 121, .3) !important;
  transform: none !important;
}
html body .admin-shell .admin-sidebar :where(a, button):hover span[class~="truncate"] { color: #fbf4e4 !important; }
html body .admin-shell .admin-sidebar :where(a, button):focus-visible {
  outline: 2px solid rgba(240, 220, 174, .75);
  outline-offset: 2px;
}

/* baris aktif */
html body .admin-shell .admin-sidebar button[class~="bg-gold-400/15"],
html body .admin-shell .admin-sidebar :is([aria-current], [aria-current="page"], [data-active="true"], .is-active, [aria-selected="true"]) {
  background: linear-gradient(135deg, #f0dcae 0%, #c59a43 100%) !important;
  border-color: #f4e6bd !important;
  box-shadow: 0 12px 26px -14px rgba(197, 154, 67, .72), inset 0 1px 0 rgba(255, 255, 255, .45) !important;
  color: #10263d !important;
  font-weight: 700 !important;
}
html body .admin-shell .admin-sidebar button[class~="bg-gold-400/15"]::before,
html body .admin-shell .admin-sidebar :is([aria-current], [data-active="true"], .is-active, [aria-selected="true"])::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #0c2036;
}
html body .admin-shell .admin-sidebar button[class~="bg-gold-400/15"] span[class~="truncate"],
html body .admin-shell .admin-sidebar :is([aria-current], [data-active="true"], .is-active, [aria-selected="true"]) span[class~="truncate"] {
  color: #10263d !important;
  font-weight: 700 !important;
}
html body .admin-shell .admin-sidebar button[class~="bg-gold-400/15"] > span:first-child,
html body .admin-shell .admin-sidebar :is([aria-current], [data-active="true"], .is-active, [aria-selected="true"]) > span:first-child {
  background: rgba(12, 32, 54, .16) !important;
  border-color: rgba(16, 38, 61, .38) !important;
  box-shadow: none !important;
}
html body .admin-shell .admin-sidebar button[class~="bg-gold-400/15"] > span:first-child svg,
html body .admin-shell .admin-sidebar :is([aria-current], [data-active="true"], .is-active, [aria-selected="true"]) > span:first-child svg {
  color: #10263d !important;
}
html body .admin-shell .admin-sidebar button[class~="bg-gold-400/15"]:hover,
html body .admin-shell .admin-sidebar :is([aria-current], [data-active="true"], .is-active, [aria-selected="true"]):hover {
  background: linear-gradient(135deg, #f4e3bb 0%, #cfa455 100%) !important;
}

/* badge jumlah pesan baru / panggilan masuk (jangan menumbangkan kelas hidden) */
html body .admin-shell .admin-sidebar span[class~="bg-red-600"]:not([class~="hidden"]) {
  display: grid !important;
  place-items: center;
  min-width: 24px !important;
  height: 22px !important;
  padding: 0 7px !important;
  border-radius: 99px !important;
  background: linear-gradient(180deg, #e0524f, #b3282d) !important;
  border: 1px solid rgba(255, 214, 190, .45) !important;
  box-shadow: 0 6px 14px -8px rgba(179, 40, 45, .8) !important;
  color: #fff8f2 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

/* blok penutup: Lihat Website / Keluar */
html body .admin-shell .admin-sidebar div[class~="pt-5"] {
  margin-top: 22px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(231, 199, 121, .2) !important;
}
html body .admin-shell .admin-sidebar div[class~="pt-5"] > * { min-height: 56px !important; }
html body .admin-shell .admin-sidebar div[class~="pt-5"] a:hover {
  background: linear-gradient(90deg, rgba(231, 199, 121, .14), rgba(231, 199, 121, .04)) !important;
}
html body .admin-shell .admin-sidebar div[class~="pt-5"] button:hover {
  background: linear-gradient(90deg, rgba(199, 62, 62, .22), rgba(199, 62, 62, .07)) !important;
  border-color: rgba(224, 122, 122, .4) !important;
}
html body .admin-shell .admin-sidebar div[class~="pt-5"] button:hover span[class~="truncate"] { color: #ffd9d3 !important; }

/* --- LACI: sama di semua Android, iPhone, iPad, tablet (<1024) --------------- */
@media (max-width: 1023px) {
  html body .admin-shell .admin-sidebar { width: min(344px, calc(100vw - 12px)) !important; padding: 16px 9px 20px !important; }
  html body .admin-shell .admin-sidebar :where(a, button) { min-height: 54px !important; gap: 10px !important; padding: 7px 9px !important; }
  html body .admin-shell .admin-sidebar div[class~="pt-5"] > * { min-height: 54px !important; }
  html body .admin-shell .admin-sidebar :where(a, button),
  html body .admin-shell .admin-sidebar :where(a, button) span[class~="truncate"] { font-size: 14.5px !important; }
}

/* --- SIDEBAR TETAP: MacBook, iMac, laptop, PC ------------------------------- */
@media (min-width: 1024px) {
  html body .admin-shell > div[class~="lg:pl-72"] { padding-left: 312px !important; }
}
@media (min-width: 1600px) {
  html body .admin-shell .admin-sidebar { width: 324px !important; }
  html body .admin-shell > div[class~="lg:pl-72"] { padding-left: 324px !important; }
}

/* --- HP mini / jam tangan digital ------------------------------------------- */
@media (max-width: 320px) {
  html body .admin-shell .admin-sidebar { padding: 14px 8px 18px !important; }
  html body .admin-shell .admin-sidebar > div:first-child > span:first-child { width: 38px !important; height: 38px !important; }
  html body .admin-shell .admin-sidebar :where(a, button) { min-height: 52px !important; border-radius: 12px !important; }
  html body .admin-shell .admin-sidebar div[class~="pt-5"] > * { min-height: 52px !important; }
  html body .admin-shell .admin-sidebar :where(a, button) > span:first-child { width: 29px !important; height: 29px !important; border-radius: 9px !important; }
  html body .admin-shell .admin-sidebar :where(a, button) > span:first-child svg { width: 16px !important; height: 16px !important; }
  html body .admin-shell .admin-sidebar :where(a, button),
  html body .admin-shell .admin-sidebar :where(a, button) span[class~="truncate"] { font-size: 14px !important; }
  html body .admin-shell .admin-sidebar p[class~="uppercase"]:not([class~="truncate"]) { font-size: 10px !important; letter-spacing: .13em !important; }
}
@media (max-width: 240px) {
  html body .admin-shell .admin-sidebar { padding: 12px 6px 16px !important; }
  html body .admin-shell .admin-sidebar > div:first-child { padding-bottom: 12px !important; margin-bottom: 14px !important; }
  html body .admin-shell .admin-sidebar > div:first-child p:first-of-type { font-size: 13px !important; }
  html body .admin-shell .admin-sidebar > div:first-child p:last-of-type { display: none !important; }
  html body .admin-shell .admin-sidebar :where(a, button) { min-height: 62px !important; gap: 8px !important; padding: 6px 8px !important; }
  html body .admin-shell .admin-sidebar div[class~="pt-5"] > * { min-height: 62px !important; }
  html body .admin-shell .admin-sidebar :where(a, button) > span:first-child { width: 28px !important; height: 28px !important; }
  html body .admin-shell .admin-sidebar :where(a, button) > span:first-child svg { width: 15px !important; height: 15px !important; }
  html body .admin-shell .admin-sidebar :where(a, button),
  html body .admin-shell .admin-sidebar :where(a, button) span[class~="truncate"] { font-size: 13px !important; }
  html body .admin-shell .admin-sidebar :where(a, button) span[class~="truncate"] { line-height: 1.2 !important; -webkit-line-clamp: 3 !important; line-clamp: 3 !important; }
}

@media (prefers-reduced-motion: reduce) {
  html body .admin-shell .admin-sidebar :where(a, button) { transition: none !important; }
}

/* Stempel pada header sidebar: gambar mengisi lingkaran sampai ke
   border, cincin pucat 2px di sekelilingnya dihapus, satu klip saja
   supaya tepi stempel tidak lembut. */
html body .admin-shell .admin-sidebar > div:first-child > span:first-child {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 50% !important;
}
html body .admin-shell .admin-sidebar > div:first-child img,
html body .admin-shell .admin-sidebar > div:first-child > span:first-child img {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  transform: none !important;
  filter: none !important;
}
