/* Sembunyikan icon kalender bawaan yang terlalu besar */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.85;
  cursor: pointer;
}

/* Scrollbar tipis & transparan khusus di dalam liquid-glass */
.liquid-glass ::-webkit-scrollbar {
  width: 5px;
}
.liquid-glass ::-webkit-scrollbar-track {
  background: transparent;
}
.liquid-glass ::-webkit-scrollbar-thumb {
  background: rgba(15, 27, 77, 0.18);
  border-radius: 999px;
}
.liquid-glass ::-webkit-scrollbar-thumb:hover {
  background: rgba(33, 69, 175, 0.4);
}

/* 1. Staggered Entrance saat Dashboard Pertama Kali Muncul */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.scorecard-item {
  animation: fadeSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease !important;
}

/* Jeda berurutan (Stagger) untuk 6 Scorecard */
.scorecard-item:nth-child(1) { animation-delay: 0.04s; }
.scorecard-item:nth-child(2) { animation-delay: 0.08s; }
.scorecard-item:nth-child(3) { animation-delay: 0.12s; }
.scorecard-item:nth-child(4) { animation-delay: 0.16s; }
.scorecard-item:nth-child(5) { animation-delay: 0.20s; }
.scorecard-item:nth-child(6) { animation-delay: 0.24s; }

/* Pastikan kartu punya posisi relatif untuk efek cahaya atas */
.scorecard-item {
  position: relative;
  overflow: hidden;
}

/* Efek Hover Modern: Soft Ambient Elevation + Subtle Glass Tint (Tanpa Border Merah Kaku) */
.scorecard-item:hover,
.scorecard-item.active-card {
  transform: translateY(-3px);
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%) !important;
  border-color: rgba(59, 102, 230, 0.28) !important;
  box-shadow: 
    0 14px 28px -8px rgba(10, 30, 94, 0.10),
    0 4px 12px -2px rgba(33, 69, 175, 0.06),
    inset 0 1.5px 0 0 rgba(255, 255, 255, 1) !important;
}

/* ===== CENTER LIQUID GLASS LOADING MODAL ===== */
#loadingOverlay {
  background: rgba(15, 27, 77, 0.14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.loading-center-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88) 0%, rgba(240, 245, 255, 0.76) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  backdrop-filter: blur(22px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 22px 48px -10px rgba(10, 30, 94, 0.20),
    0 4px 14px -2px rgba(33, 69, 175, 0.08),
    inset 0 1.5px 0 rgba(255, 255, 255, 1);
  transform: translateY(0) scale(1);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

/* Animasi menghilang mulus saat selesai */
#loadingOverlay.overlay-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#loadingOverlay.overlay-hidden .loading-center-card {
  transform: translateY(10px) scale(0.94);
  opacity: 0;
}

/* Efek Kilau Shimmer pada Kartu Scorecard di Belakangnya */
@keyframes glassShimmerWave {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}

body.is-loading .scorecard-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: glassShimmerWave 1.5s infinite;
  pointer-events: none;
}

/* Putar ikon tombol Refresh saat sedang tarik data */
@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.Refreshing svg {
  animation: spinIcon 0.8s linear infinite;
}

/* ===== Liquid glass untuk panel dropdown Branch & Sales + Datepicker + Modal ===== */
.liquid-glass {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0.10) 45%, rgba(190,210,255,0.16) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(190%) brightness(1.04);
  backdrop-filter: blur(14px) saturate(190%) brightness(1.04);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow:
    0 12px 36px rgba(4, 35, 127, 0.22),
    0 2px 6px rgba(4, 35, 127, 0.08),
    inset 0 1.5px 0 rgba(255,255,255,0.9),
    inset 1px 0 0 rgba(255,255,255,0.5),
    inset 0 -1px 0 rgba(255,255,255,0.25),
    inset 0 0 22px rgba(255,255,255,0.18);
  position: absolute;
  isolation: isolate;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0) 55%),
    radial-gradient(80% 50% at 100% 100%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%);
}

.liquid-glass > * { position: relative; z-index: 1; }

.liquid-glass .glass-divider { border-color: rgba(255,255,255,0.45); }
.liquid-glass .glass-item { transition: background 0.15s ease; }
.liquid-glass .glass-item:hover { background: rgba(255,255,255,0.38); }

.liquid-glass span { text-shadow: 0 1px 0 rgba(255,255,255,0.45); }

/* Kecualikan .dp-panel dan .sc-modal-panel agar tidak ke-trigger animasi dropdown pojok */
.liquid-glass:not(.hidden):not(.dp-panel):not(.sc-modal-panel) {
  transform-origin: top right;
  animation: glass-in 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes glass-in {
  from { opacity: 0; transform: translate3d(0, -6px, 0) scale(0.97); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* ===== Date picker custom (liquid glass, di tengah layar) ===== */
.dp-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 211, 255, 0); 
  visibility: hidden;
  pointer-events: none;
  transition: background 0.25s ease, visibility 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.dp-overlay.open {
  background: rgba(196, 211, 255, 0.121);
  visibility: visible;
  pointer-events: auto;
}

.dp-overlay .dp-panel.liquid-glass {
  position: relative;
  width: 340px;
  max-width: calc(100vw - 32px);
  padding: 18px 18px 14px;
  border-radius: 28px;
  transform-origin: center;
  animation: none;
  color: #0f1b4d;
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.96);
  will-change: transform, opacity, backdrop-filter;
  backface-visibility: hidden;
  transition: 
    transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.2s ease;
}

.dp-overlay.open .dp-panel.liquid-glass {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.dp-header { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.dp-title { flex: 1; text-align: center; font-weight: 800; font-size: 15px; }
.dp-nav {
  width: 32px; height: 32px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,0.35); color: #04237f;
  font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.dp-nav:hover { background: rgba(255,255,255,0.7); transform: scale(1.06); }

.dp-week, .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp-week span { font-size: 11px; font-weight: 700; color: rgba(15,27,77,0.55); padding: 4px 0; }

.dp-day {
  height: 38px; border: 0; border-radius: 999px; background: transparent;
  font-size: 13px; font-weight: 600; color: #0f1b4d; cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.dp-day:hover { background: rgba(255,255,255,0.6); transform: scale(1.06); }
.dp-day.dp-out { color: rgba(15,27,77,0.35); }
.dp-day.dp-today { box-shadow: inset 0 0 0 1.5px rgba(4,35,127,0.55); }
.dp-day.dp-selected {
  color: #fff;
  background: linear-gradient(135deg, #2145af, #04237f);
  box-shadow: 0 4px 12px rgba(4,35,127,0.35);
}

.dp-footer { display: flex; justify-content: space-between; margin-top: 10px; padding: 0 4px; }
.dp-footer button {
  border: 0; background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 700; color: #2145af; padding: 6px 8px; border-radius: 10px;
}
.dp-footer button:hover { background: rgba(255,255,255,0.5); }

input[type="date"][data-dp] { pointer-events: none; }

/* ===== Pop-up Modal Detail Scorecard (Persis seperti Datepicker) ===== */
.sc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 27, 77, 0);
  visibility: hidden;
  pointer-events: none;
  transition: background 0.25s ease, visibility 0.25s;
}

.sc-modal-overlay.open {
  background: rgba(15, 27, 77, 0.22);
  visibility: visible;
  pointer-events: auto;
}

.sc-modal-overlay .sc-modal-panel.liquid-glass {
  position: relative;
  width: min(1120px, 94vw);
  border-radius: 24px;
  overflow: hidden;
  transform-origin: center;
  animation: none;
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(0.96);
  will-change: transform, opacity, backdrop-filter;
  backface-visibility: hidden;
  transition:
    transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.2s ease;
}

.sc-modal-overlay.open .sc-modal-panel.liquid-glass {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* ==========================================================================
   ACHIEVEMENT PAGE
   ========================================================================== */

.achievement-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.achievement-page.hidden {
  display: none !important;
}

.achievement-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  flex: 0 0 auto;
}

.achievement-kpi {
  min-width: 0;
  min-height: 112px;
  background: #fff;
  border: 1px solid #f1f3f7;
  border-radius: 17px;
  padding: 11px 14px;
  box-shadow: 0 2px 8px rgba(10,30,94,.025);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: #686868;
  font-size: 13px;
  font-weight: 750;
}

.kpi-badge {
  flex: 0 0 auto;
  font-size: 8px;
  line-height: 1;
  font-weight: 800;
  padding: 5px 6px;
  border-radius: 999px;
}

.kpi-badge.positive {
  color: #16833c;
  background: #dff8df;
}

.kpi-badge.negative {
  color: #ed3543;
  background: #ffe5e7;
}

.kpi-value {
  text-align: center;
  color: #071f78;
  font-size: clamp(25px, 2.8vw, 43px);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: -1.5px;
  margin-top: 5px;
}

.kpi-value.money {
  font-size: clamp(17px, 1.7vw, 25px);
  letter-spacing: -.7px;
  white-space: nowrap;
}

.kpi-caption {
  text-align: center;
  color: #666;
  font-size: 9px;
  font-weight: 700;
  margin-top: 2px;
}

.achievement-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(300px, 1fr);
  gap: 14px;
}

.achievement-left-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.achievement-chart-card {
  min-width: 0;
  min-height: 0;
  background: #fff;
  border: 1px solid #f1f3f7;
  border-radius: 17px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(10,30,94,.025);
  display: flex;
  flex-direction: column;
}

.achievement-chart-card h2 {
  color: #6b75ad;
  font-size: 14px;
  font-weight: 750;
  margin: 0 0 8px;
  flex: 0 0 auto;
}

.chart-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.achievement-side-card {
  justify-content: space-evenly;
  gap: 12px;
  padding: 18px 16px;
}

.achievement-donut-block {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, .7fr);
  align-items: center;
  gap: 12px;
}

.achievement-donut-block.reverse {
  grid-template-columns: minmax(110px, .7fr) minmax(0, 1fr);
}

.donut-chart-wrap {
  position: relative;
  width: 100%;
  max-width: 245px;
  aspect-ratio: 1;
  justify-self: center;
  min-height: 0;
}

.achievement-donut-block h3 {
  color: #111;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 800;
}

.achievement-footnote {
  color: #8790a2;
  font-size: 9px;
  line-height: 1.35;
  flex: 0 0 auto;
}

.achievement-footnote code {
  color: #59647c;
  font-size: 9px;
}

@media (max-width: 1050px) {
  .achievement-page {
    overflow-y: auto;
  }

  .achievement-layout {
    grid-template-columns: 1fr;
  }

  .achievement-side-card {
    min-height: 420px;
  }

  .achievement-left-grid {
    min-height: 620px;
  }
}

@media (max-width: 680px) {
  .achievement-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .achievement-left-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(220px, auto));
  }

  .achievement-side-card {
    min-height: 520px;
  }

  .achievement-donut-block,
  .achievement-donut-block.reverse {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== ACTIVITY PAGE ===== */
.activity-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.activity-page.hidden { display: none !important; }

.activity-row {
  min-height: 0;
  display: grid;
  gap: 14px;
}
.activity-row.top    { flex: 1.35; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.activity-row.bottom { flex: 1;    grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1050px) {
  .activity-page { overflow-y: auto; }
  .activity-row.top,
  .activity-row.bottom { flex: none; grid-template-columns: 1fr; }
  .activity-row .achievement-chart-card { min-height: 280px; }
}
@media (max-width: 680px) {
  .activity-page .achievement-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== APPROVAL PAGE ===== */
.apr-row {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.apr-table-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  /* fade-out halus di bagian bawah saat di-scroll */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent 100%);
}

/* Scrollbar ramping & transparan */
.apr-table-wrap::-webkit-scrollbar { width: 5px; }
.apr-table-wrap::-webkit-scrollbar-track { background: transparent; }
.apr-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(15, 27, 77, 0.18);
  border-radius: 999px;
}
.apr-table-wrap::-webkit-scrollbar-thumb:hover { background: rgba(33, 69, 175, 0.4); }

.apr-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;          /* jarak antar baris (gap 8px) */
  font-size: 12px;
}

.apr-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 12px;
  text-align: left;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .02em;
  color: #0f1b80;
  background: #ffffff;
  border-bottom: 1px solid rgba(165, 184, 245, 0.55);
}

/* Fade di bawah header supaya baris yang terpotong memudar, bukan patah */
.apr-table thead th::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.apr-table .num { text-align: right; }

/* Baris = kartu kaca melayang */
.apr-table tbody tr {
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s ease;
}
.apr-table tbody td {
  padding: 9px 12px;
  color: #1e293b;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(238, 242, 255, 0.75), rgba(226, 233, 255, 0.45));
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(165, 184, 245, 0.35);
}
.apr-table tbody td:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px 0 0 12px;
}
.apr-table tbody td:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 0 12px 12px 0;
}
.apr-table tbody tr:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 10px rgba(15, 27, 77, 0.10));
}
.apr-table tbody tr:hover td {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(238, 242, 255, 0.8));
}

/* Category = glass pill badge */
.apr-cat {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  border: 1px solid transparent;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.apr-cat.good {
  color: #047857;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}
.apr-cat.attention {
  color: #b45309;
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}
.apr-cat.warning {
  color: #c2410c;
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.25);
}
.apr-cat.bad {
  color: #be123c;
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.45);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.25);
}

/* Rate + mini glass progress bar */
.apr-rate {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.apr-rate-bar {
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 27, 77, 0.08);
  overflow: hidden;
}
.apr-rate-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.apr-rate-bar i.good      { background: linear-gradient(90deg, #34d399, #10b981); }
.apr-rate-bar i.attention { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.apr-rate-bar i.warning   { background: linear-gradient(90deg, #fb923c, #f97316); }
.apr-rate-bar i.bad       { background: linear-gradient(90deg, #fb7185, #f43f5e); }

@media (max-width: 1050px) {
  .apr-row { flex: none; grid-template-columns: 1fr; }
  .apr-row .achievement-chart-card { min-height: 300px; }
}

/* ==========================================================================
   3D LIQUID GLASS BUTTONS & FILTERS (APPLE ICON STYLE)
   ========================================================================== */

/* Base struktur untuk semua tombol Liquid Glass */
.btn-liquid-red,
.btn-liquid-blue,
.btn-liquid-white {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 14px;
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  transition: 
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.btn-liquid-red,
.btn-liquid-blue,
.btn-liquid-white {
  position: relative;
  border-radius: 12px; /* Squircle tegas khas macOS, bukan kapsul obat */
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Matikan efek kilap plastik separuh yang bikin jelek tadi */
.btn-liquid-red::before,
.btn-liquid-blue::before,
.btn-liquid-white::before {
  display: none !important;
}

/* 1. Filter Date (Merah Jernih & Glowing) */
.btn-liquid-red {
  background: linear-gradient(135deg, #ff4b55 0%, #e60012 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  box-shadow:
    0 6px 16px -4px rgba(230, 0, 18, 0.35),           /* Glow merah lembut di luar */
    inset 0 1px 0.5px rgba(255, 255, 255, 0.75),      /* Garis kaca tipis tajam di atas */
    inset 0 -1.5px 3px rgba(255, 180, 185, 0.45),     /* Pantulan kaca terang di bawah */
    inset 0 0 12px rgba(255, 255, 255, 0.15);         /* Pendaran kaca dalam */
}

/* 2. Filter Branch & Sales (Biru Jernih & Glowing) */
.btn-liquid-blue {
  background: linear-gradient(135deg, #2b56d6 0%, #09257a 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  box-shadow:
    0 6px 16px -4px rgba(9, 37, 122, 0.32),           /* Glow biru lembut di luar */
    inset 0 1px 0.5px rgba(255, 255, 255, 0.7),       /* Garis kaca tipis tajam di atas */
    inset 0 -1.5px 3px rgba(130, 175, 255, 0.4),      /* Pantulan kaca terang di bawah */
    inset 0 0 12px rgba(255, 255, 255, 0.12);         /* Pendaran kaca dalam */
}

/* 3. Avatar MX (Frosted White Glass) */
.btn-liquid-white {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: #0A1E5E;
  box-shadow:
    0 4px 12px rgba(10, 30, 94, 0.08),
    inset 0 1px 0.5px rgba(255, 255, 255, 1),
    inset 0 -1px 2px rgba(200, 215, 255, 0.5);
}

/* Hover: Terangkat halus & makin bercahaya */
.btn-liquid-red:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 20px -3px rgba(230, 0, 18, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -2px 5px rgba(255, 200, 205, 0.6);
}

.btn-liquid-blue:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 20px -3px rgba(9, 37, 122, 0.42),
    inset 0 1px 1px rgba(255, 255, 255, 0.85),
    inset 0 -2px 5px rgba(150, 195, 255, 0.55);
}

/* 4. Tombol Detail di Scorecard (Minimalis Translucent Glass) */
.sc-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  padding: 3.5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid rgba(203, 213, 225, 0.6);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.sc-detail-btn svg {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Saat KARTU di-hover, tombol Detail ikut siap/menyala halus */
.scorecard-item:hover .sc-detail-btn {
  color: #1e3a8a;
  background: rgba(219, 234, 254, 0.7);
  border-color: rgba(147, 197, 253, 0.8);
}

/* Saat TOMBOL Detail-nya langsung yang di-hover atau kartu sedang aktif */
.sc-detail-btn:hover,
.scorecard-item.active-card .sc-detail-btn {
  background: linear-gradient(135deg, #2563eb 0%, #0f297a 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px -2px rgba(29, 78, 216, 0.38);
  transform: translateY(-0.5px);
}

/* Efek panah ↗ bergeser sedikit ke pojok kanan atas saat di-hover */
.sc-detail-btn:hover svg,
.scorecard-item:hover .sc-detail-btn svg {
  transform: translate(1.5px, -1.5px);
}

/* 5. Menu Sidebar Aktif (Soft Translucent Pill) */
.nav-glass-active {
  background: linear-gradient(135deg, rgba(214, 226, 255, 0.75) 0%, rgba(195, 213, 255, 0.55) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #0A1E5E;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 4px 12px -2px rgba(10, 30, 94, 0.08),
    inset 0 1px 0.5px rgba(255, 255, 255, 1);
}