/* ============================================================
   RADARINDO ADMIN — "Newsroom Console"
   Tema poles di atas Tailwind build lama. Dimuat SETELAH admin.css.
   Fitur: sidebar ink + aksen brand, mini-sidebar (html.sb-mini),
   topbar kaca, polesan tabel/kartu/tombol global, dark mode.
   ============================================================ */

:root {
  --ink-900: #0b1220;
  --ink-800: #101a2c;
  --ink-700: #16233a;
  --ink-line: rgba(148, 163, 184, 0.14);
  --accent: #ff6b35;
  --accent-soft: rgba(255, 107, 53, 0.12);
  --accent-strong: #f4540f;
  --paper: #f4f6fa;
  --card: #ffffff;
  --card-line: #e6eaf2;
  --txt: #1c2433;
  --txt-soft: #64748b;
  --sb-width: 13.5rem;
  --sb-mini: 4.75rem;
  --radius: 14px;
  --shadow-card: 0 1px 2px rgba(16, 26, 44, 0.05), 0 8px 24px -12px rgba(16, 26, 44, 0.12);
  --shadow-pop: 0 12px 32px -8px rgba(16, 26, 44, 0.25);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark {
  --paper: #0b1018;
  --card: #121a28;
  --card-line: #1f2a3d;
  --txt: #e6ebf4;
  --txt-soft: #8a96ab;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -14px rgba(0, 0, 0, 0.6);
}

/* ---------- Tipografi dasar ---------- */
body {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif !important;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 107, 53, 0.05), transparent 60%),
    var(--paper) !important;
  color: var(--txt);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.02em;
}

code, .font-mono, td code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
#sidebar {
  width: var(--sb-width);
  background:
    radial-gradient(420px 260px at -20% -10%, rgba(255, 107, 53, 0.16), transparent 55%),
    linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 100%) !important;
  border-right: 1px solid var(--ink-line) !important;
  transition: width 0.28s var(--ease), transform 0.3s var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* area logo */
#sidebar > div:first-of-type {
  border-bottom: 1px solid var(--ink-line) !important;
  flex: none;
  position: relative;
}

/* paksa logo putih di sidebar gelap (light mode pakai logo-light) */
#sidebar img.dark\:block { display: block !important; }
#sidebar img.dark\:hidden { display: none !important; }

/* monogram saat mini (di-inject JS) */
#sidebar .sb-mark {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px -6px rgba(255, 107, 53, 0.7);
}

/* nav scrollable */
#sidebar nav {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  padding-bottom: 2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.25) transparent;
}
#sidebar nav::-webkit-scrollbar { width: 5px; }
#sidebar nav::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.25); border-radius: 99px; }

/* label seksi */
#sidebar nav .uppercase {
  color: #5b6b85 !important;
  letter-spacing: 0.14em;
  font-size: 0.62rem;
  white-space: nowrap;
}

/* item menu */
#sidebar nav a {
  position: relative;
  color: #a7b3c9 !important;
  font-weight: 500;
  font-size: 0.82rem;
  padding-left: 0.8rem;
  padding-right: 0.6rem;
  white-space: nowrap;
  margin: 2px 0;
  border-radius: 10px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease);
}

#sidebar nav a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
  transform: translateX(3px);
}

#sidebar nav a svg {
  flex: none;
  opacity: 0.75;
  transition: opacity 0.18s, transform 0.18s var(--ease);
}

#sidebar nav a:hover svg { opacity: 1; transform: scale(1.08); }

/* item aktif (di-set JS) */
#sidebar nav a.is-active {
  color: #fff !important;
  background: linear-gradient(90deg, var(--accent-soft), rgba(255, 107, 53, 0.04)) !important;
}
#sidebar nav a.is-active svg { opacity: 1; color: var(--accent); }
#sidebar nav a.is-active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  translate: 0 -50%;
  width: 4px;
  height: 60%;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.8);
}

/* ============================================================
   MINI SIDEBAR (html.sb-mini) — hanya desktop
   ============================================================ */
@media (min-width: 768px) {
  html.sb-mini #sidebar { width: var(--sb-mini); }

  html.sb-mini #sidebar nav a {
    font-size: 0;            /* sembunyikan teks node */
    gap: 0;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  html.sb-mini #sidebar nav .uppercase {
    font-size: 0;
    margin: 0.55rem auto;
    height: 1px;
    width: 26px;
    background: var(--ink-line);
    padding: 0;
  }

  html.sb-mini #sidebar nav a.is-active::before { left: -8px; }

  html.sb-mini #sidebar > div:first-of-type {
    justify-content: center;
    padding: 0;
  }
  html.sb-mini #sidebar > div:first-of-type img { display: none !important; }
  html.sb-mini #sidebar .sb-mark { display: inline-flex; }

  /* geser area konten mengikuti lebar sidebar */
  div.md\:ml-64 {
    margin-left: var(--sb-width) !important;
    transition: margin-left 0.28s var(--ease);
  }
  html.sb-mini div.md\:ml-64 { margin-left: var(--sb-mini) !important; }
}

/* tombol collapse (di-inject JS) */
#sbCollapse {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: var(--txt-soft);
  border: 1px solid var(--card-line);
  background: var(--card);
  transition: all 0.18s var(--ease);
}
#sbCollapse:hover { color: var(--accent); border-color: var(--accent); transform: scale(1.05); }
#sbCollapse svg { width: 17px; height: 17px; transition: transform 0.28s var(--ease); }
html.sb-mini #sbCollapse svg { transform: rotate(180deg); }
@media (min-width: 768px) { #sbCollapse { display: inline-flex; } }

/* ============================================================
   TOPBAR — kaca buram & lengket
   ============================================================ */
div.md\:ml-64 > header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--card) 78%, transparent) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--card-line) !important;
}

div.md\:ml-64 > header h3 a {
  font-weight: 700;
  letter-spacing: -0.02em;
}

#themeToggle {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--card-line);
  background: var(--card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--txt-soft);
  transition: transform 0.18s var(--ease), border-color 0.18s, color 0.18s;
}
#themeToggle svg { width: 17px; height: 17px; }
#themeToggle:hover { transform: rotate(20deg) scale(1.08); border-color: var(--accent); color: var(--accent); }

/* dropdown user */
#userMenu {
  border-radius: 12px !important;
  border: 1px solid var(--card-line) !important;
  box-shadow: var(--shadow-pop) !important;
  overflow: hidden;
  animation: themePop 0.16s var(--ease);
}

@keyframes themePop {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   AREA KONTEN — kartu, tabel, tombol, form, pagination
   ============================================================ */
main { animation: pageIn 0.4s var(--ease) both; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* kartu */
main .shadow, main .shadow-sm, main .shadow-md, main .shadow-xl {
  box-shadow: var(--shadow-card) !important;
}
main .rounded-xl, main .rounded-2xl {
  border: 1px solid var(--card-line);
}
main .bg-white { background: var(--card) !important; }
html.dark main .dark\:bg-gray-800 { background: var(--card) !important; }

/* judul halaman */
main h2 { position: relative; }

/* tabel */
main table { border-collapse: separate; border-spacing: 0; }

main table thead th {
  font-size: 0.66rem !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--txt-soft) !important;
  background: color-mix(in srgb, var(--paper) 70%, var(--card));
  position: sticky;
  top: 0;
  z-index: 1;
}

main table thead th:first-child { border-radius: 10px 0 0 10px; }
main table thead th:last-child { border-radius: 0 10px 10px 0; }

main table tbody tr {
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}

main table tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 4%, var(--card));
}

main table tbody td { vertical-align: middle; }

/* angka & kode di tabel pakai mono */
main table td:first-child {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--txt-soft);
}

/* tombol utama */
main .bg-blue-600 {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%) !important;
  box-shadow: 0 6px 16px -6px rgba(255, 107, 53, 0.55);
}
main .hover\:bg-blue-700:hover {
  background: linear-gradient(135deg, var(--accent-strong) 0%, #d8430a 100%) !important;
}

main button, main a[class*="rounded"] {
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background 0.16s var(--ease), color 0.16s;
}
main button:hover, main a[class*="rounded-lg"]:hover { transform: translateY(-1px); }
main button:active, main a[class*="rounded-lg"]:active { transform: translateY(0) scale(0.98); }

/* form */
main input[type="text"], main input[type="password"], main input[type="search"],
main input[type="email"], main input[type="number"], main select, main textarea {
  transition: border-color 0.18s, box-shadow 0.18s;
}
main input:focus, main select:focus, main textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-soft) !important;
  outline: none !important;
}

/* pagination ala bootstrap lama + pill tailwind */
main .pagination .page-link, main .pagination-pill {
  border-radius: 10px !important;
  border: 1px solid var(--card-line) !important;
  color: var(--txt-soft);
  transition: all 0.16s var(--ease);
}
main .pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong)) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 12px -4px rgba(255, 107, 53, 0.6);
}
main .pagination .page-link:hover { border-color: var(--accent) !important; color: var(--accent); }

/* badge status umum (Y/N, aktif, dsb. yang pakai rounded-full) */
main .rounded-full { font-weight: 600; }

/* scrollbar konten */
main ::-webkit-scrollbar { height: 8px; width: 8px; }
main ::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--txt-soft) 35%, transparent);
  border-radius: 99px;
}

/* ============================================================
   DASHBOARD — kartu statistik (anak langsung grid di main)
   ============================================================ */
main .grid > .rounded-xl, main .grid > .shadow {
  position: relative;
  overflow: hidden;
}
main .grid > .rounded-xl::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
main .grid > .rounded-xl:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-pop) !important;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

/* ============================================================
   KARTU STATISTIK DASHBOARD (.stat-card) — kompak satu baris
   ============================================================ */
.stat-card {
  --sc: var(--accent);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -30px; top: -40px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sc) 10%, transparent), transparent 70%);
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--sc) 45%, var(--card-line));
  box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--sc) 38%, transparent);
}

.stat-tile {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--sc) 88%, #fff), var(--sc));
  box-shadow: 0 7px 16px -8px color-mix(in srgb, var(--sc) 80%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.stat-tile svg { width: 20px; height: 20px; }

.stat-body { min-width: 0; flex: 1; }

.stat-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--txt-soft);
  margin-bottom: 0.15rem;
  white-space: nowrap;
}

.stat-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: nowrap;
}

.stat-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
  color: var(--txt);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-sub {
  font-size: 0.7rem;
  color: var(--txt-soft);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.stat-sub b { color: var(--sc); font-weight: 700; }

.stat-live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sc);
  display: inline-block;
  animation: statPulse 1.6s ease infinite;
}

@keyframes statPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sc) 55%, transparent); }
  60% { box-shadow: 0 0 0 6px transparent; }
}

/* garis progres tipis menempel tepi bawah kartu */
.stat-edge {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  border-radius: 0 99px 99px 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--sc) 70%, #fff), var(--sc));
  animation: barIn 0.9s var(--ease) both;
  transform-origin: left;
}

@keyframes barIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ============================================================
   HALAMAN LOGIN (tanpa sidebar) — sentuhan kecil
   ============================================================ */
body > .login-card, body form[action*="app_admin"] { font-family: inherit; }

/* spinner tombol AI */
@keyframes aiSpin {
  to { transform: rotate(360deg); }
}

/* ===== Pustaka Media (mlib) ===== */
.mlib-search {
  display: flex;
  align-items: center;
  gap: .5rem;
  height: 2.5rem;
  padding: 0 .85rem;
  border-radius: .65rem;
  border: 1px solid rgb(209 213 219);
  background: #fff;
  color: rgb(107 114 128);
  min-width: 15rem;
}
.dark .mlib-search { background: rgb(31 41 55); border-color: rgb(55 65 81); }
.mlib-search input {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: .85rem;
  width: 100%;
  color: inherit;
}
.mlib-search:focus-within { border-color: var(--brand, #ff6b35); box-shadow: 0 0 0 3px rgba(255, 107, 53, .12); }
.mlib-search a { display: inline-flex; color: rgb(156 163 175); }
.mlib-search a:hover { color: rgb(239 68 68); }

.mlib-drop {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem 1.25rem;
  border: 1.5px dashed rgb(203 213 225);
  border-radius: .9rem;
  background: rgba(255, 255, 255, .6);
  color: rgb(100 116 139);
  font-size: .85rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dark .mlib-drop { background: rgba(31, 41, 55, .6); border-color: rgb(71 85 105); color: rgb(148 163 184); }
.mlib-drop:hover, .mlib-drop-aktif {
  border-color: var(--brand, #ff6b35);
  background: rgba(255, 107, 53, .05);
  color: var(--brand, #ff6b35);
}
.mlib-drop b { font-weight: 600; }
.mlib-drop-hint { font-size: .72rem; opacity: .65; }
.mlib-progress { flex-basis: 100%; max-width: 26rem; margin: .35rem auto 0; text-align: center; }
.mlib-progress-track {
  height: .4rem;
  border-radius: 999px;
  background: rgb(226 232 240);
  overflow: hidden;
}
.dark .mlib-progress-track { background: rgb(55 65 81); }
.mlib-progress-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand, #ff6b35), #ff9a3c);
  transition: width .2s;
}
.mlib-progress p { font-size: .72rem; margin-top: .35rem; color: rgb(100 116 139); }

.mlib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: .9rem;
}
.mlib-card {
  position: relative;
  display: block;
  width: 100%;
  border-radius: .75rem;
  overflow: hidden;
  border: 1px solid rgb(226 232 240);
  background:
    repeating-conic-gradient(rgb(241 245 249) 0% 25%, #fff 0% 50%) 0 0 / 18px 18px;
  cursor: pointer;
  padding: 0;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.dark .mlib-card {
  border-color: rgb(55 65 81);
  background:
    repeating-conic-gradient(rgb(31 41 55) 0% 25%, rgb(17 24 39) 0% 50%) 0 0 / 18px 18px;
}
.mlib-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand, #ff6b35);
  box-shadow: 0 10px 24px -10px rgba(255, 107, 53, .45);
}
.mlib-thumb { display: block; aspect-ratio: 1 / 1; }
.mlib-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s;
}
.mlib-card:hover .mlib-thumb img { transform: scale(1.05); }
.mlib-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: 1.4rem .6rem .55rem;
  background: linear-gradient(0deg, rgba(8, 12, 20, .85), rgba(8, 12, 20, 0));
  text-align: left;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s, transform .18s;
  pointer-events: none;
}
.mlib-card:hover .mlib-overlay, .mlib-card:focus-visible .mlib-overlay { opacity: 1; transform: translateY(0); }
.mlib-nama {
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mlib-meta { color: rgba(255, 255, 255, .75); font-size: .62rem; letter-spacing: .02em; }

.mlib-modal { animation: mlibPop .18s ease-out; }
@keyframes mlibPop {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.mlib-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 16rem;
  max-height: 70vh;
  padding: 1.25rem;
  background:
    repeating-conic-gradient(rgb(241 245 249) 0% 25%, #fff 0% 50%) 0 0 / 18px 18px;
}
.dark .mlib-preview {
  background:
    repeating-conic-gradient(rgb(31 41 55) 0% 25%, rgb(17 24 39) 0% 50%) 0 0 / 18px 18px;
}
.mlib-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: .4rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}
.mlib-buka {
  position: absolute;
  right: .85rem;
  bottom: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .65rem;
  border-radius: .5rem;
  background: rgba(8, 12, 20, .72);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.mlib-buka:hover { background: var(--brand, #ff6b35); color: #fff; }

.mlib-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgb(148 163 184);
}
.mlib-input {
  width: 100%;
  margin-top: .25rem;
  height: 2.5rem;
  padding: 0 .75rem;
  font-size: .85rem;
  border-radius: .55rem;
  border: 1px solid rgb(209 213 219);
  background: #fff;
  color: rgb(31 41 55);
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
.dark .mlib-input { background: rgb(17 24 39); border-color: rgb(55 65 81); color: rgb(229 231 235); }
.mlib-input:focus { border-color: var(--brand, #ff6b35); box-shadow: 0 0 0 3px rgba(255, 107, 53, .12); }

/* ===== Remap aksen biru bawaan template -> oranye brand =====
   Berlaku global (termasuk modal di luar <main>) agar tidak ada
   sisa warna biru yang menyimpang dari tema Newsroom Console. */
.bg-blue-600 {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%) !important;
  box-shadow: 0 6px 16px -6px rgba(255, 107, 53, 0.55);
}
.hover\:bg-blue-700:hover {
  background: linear-gradient(135deg, var(--accent-strong) 0%, #d8430a 100%) !important;
}
.hover\:bg-blue-600:hover,
.group:hover .group-hover\:bg-blue-600 {
  background: var(--accent) !important;
}
.text-blue-600, .text-blue-700 { color: var(--accent-strong) !important; }
.hover\:text-blue-600:hover, .hover\:text-blue-700:hover { color: #d8430a !important; }
.dark .dark\:text-blue-400 { color: #ff9a6b !important; }
.bg-blue-50 { background-color: rgba(255, 107, 53, 0.08) !important; }
.bg-blue-100 { background-color: rgba(255, 107, 53, 0.14) !important; }
.hover\:bg-blue-200:hover { background-color: rgba(255, 107, 53, 0.22) !important; }
.focus\:ring-blue-500:focus { --tw-ring-color: rgba(255, 107, 53, 0.45) !important; }
.hover\:ring-blue-500:hover { --tw-ring-color: rgba(255, 107, 53, 0.55) !important; }
.hover\:border-blue-400:hover,
.hover\:border-blue-500:hover,
.dark .dark\:hover\:border-blue-500:hover { border-color: var(--accent) !important; }
.border-blue-600 { border-color: var(--accent-strong) !important; }

/* ===== Kelas warna yang terpangkas dari build Tailwind admin =====
   (flash sukses/galat, badge status, tombol hijau) — nilai standar Tailwind. */
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-emerald-600 { background-color: #059669; box-shadow: 0 6px 16px -6px rgba(5, 150, 105, 0.5); }
.hover\:bg-emerald-200:hover { background-color: #a7f3d0; }
.hover\:bg-emerald-700:hover { background-color: #047857; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-emerald-800 { color: #065f46; }
.border-emerald-300 { border-color: #6ee7b7; }

.bg-red-50 { background-color: #fef2f2; }
.hover\:bg-red-200:hover { background-color: #fecaca; }
.text-red-800 { color: #991b1b; }
.border-red-300 { border-color: #fca5a5; }
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.dark .dark\:hover\:bg-red-900\/30:hover { background-color: rgba(127, 29, 29, 0.3); }

.bg-amber-50 { background-color: #fffbeb; }
.bg-amber-100 { background-color: #fef3c7; }
.hover\:bg-amber-200:hover { background-color: #fde68a; }
.text-amber-600 { color: #d97706; }
.text-amber-700 { color: #b45309; }
.text-amber-800 { color: #92400e; }
.border-amber-200 { border-color: #fde68a; }
.border-amber-300 { border-color: #fcd34d; }
.dark .dark\:bg-amber-900 { background-color: #78350f; }
.dark .dark\:text-amber-300 { color: #fcd34d; }

.bg-orange-100 { background-color: #ffedd5; }
.text-orange-500 { color: #f97316; }

/* group-hover harus menang atas remap warna teks di atas (kartu hub Pengaturan) */
.group:hover .group-hover\:text-white { color: #fff !important; }

/* ===== Hijau polos -> teal (selaras palet Newsroom Console) ===== */
.bg-green-600 { background-color: #0d9488 !important; }
.hover\:bg-green-700:hover { background-color: #0f766e !important; }
.peer:checked ~ .peer-checked\:bg-green-600 { background-color: #0d9488 !important; }
.bg-green-100 { background-color: #ccfbf1 !important; }
.text-green-700 { color: #0f766e !important; }
.dark .dark\:bg-green-900 { background-color: #134e4a !important; }
.dark .dark\:text-green-300 { color: #5eead4 !important; }

/* max-width yang terpangkas dari build (dialog CDN dkk melebar tanpa ini) */
.max-w-sm { max-width: 24rem; }
.max-w-2xl { max-width: 42rem; }
