/* ==========================================================================
   pages/shared-dana_sosial_umum.css — gaya khusus shared/dana_sosial_umum.php
   Dimuat setelah global.css melalui siakad_page_styles('shared-dana_sosial_umum').
   Aturan shell/komponen bersama (body, .main, .page-card, .form-control,
   .table, tombol *-custom, dark mode dasar) sudah dipindah ke global.css.
   ========================================================================== */

/* --- dari <style> #1 --- */
:root {
  --primary:#2563eb;
  --primary-2:#4f46e5;
  --primary-dark:#173c91;
  --gold:#d6ad58;
  --ink:#0f172a;
  --muted:#64748b;
  --surface:rgba(255,255,255,.78);
  --surface-solid:#ffffff;
  --line:rgba(148,163,184,.18);
  --soft:#f8fafc;
  --success:#059669;
  --danger:#dc2626;
  --shadow-sm:0 8px 24px rgba(15,23,42,.06);
  --shadow-md:0 18px 50px rgba(15,23,42,.10);
  --shadow-lg:0 30px 80px rgba(37,99,235,.16);
}
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
}
body {
  font-family:'Plus Jakarta Sans',sans-serif;
  color:var(--ink);
  min-height:100vh;
  margin:0;
  padding:28px 14px 48px;
  overflow-x:hidden;
  background:
      radial-gradient(circle at 8% 5%,rgba(59,130,246,.17),transparent 28%),
      radial-gradient(circle at 94% 18%,rgba(99,102,241,.13),transparent 26%),
      linear-gradient(135deg,#f7fbff 0%,#edf4ff 52%,#f8fafc 100%);
}
a {
  text-decoration:none;
}
button,
input {
  font:inherit;
}
.ambient-orb {
  position:fixed;
  border-radius:50%;
  filter:blur(85px);
  pointer-events:none;
  z-index:0;
  opacity:.28;
}
.orb-1 {
  width:330px;
  height:330px;
  background:#60a5fa;
  top:-110px;
  left:-120px;
}
.orb-2 {
  width:380px;
  height:380px;
  background:#818cf8;
  right:-150px;
  top:42%;
}
.container-public {
  width:min(1080px,100%);
  margin:0 auto;
  padding:0 10px;
  position:relative;
  z-index:1;
  animation:pageIn .7s ease-out;
}
@keyframes pageIn{
    from{opacity:0;transform:translateY(18px)}
    to{opacity:1;transform:none}
}
.mb-2 {
  margin-bottom:14px!important;
}
.back-link {
  position:fixed;
  top:14px;
  left:14px;
  z-index:50;
  color:#475569;
  font-weight:800;
  font-size:.68rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:7px 9px;
  border-radius:10px;
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:0 5px 16px rgba(15,23,42,.08);
  transition:.22s ease;
}
.back-link i {
  font-size:.78rem;
}
.back-link:hover {
  color:#fff;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  transform:translateY(-1px);
  box-shadow:0 9px 20px rgba(37,99,235,.20);
}
.public-header {
  text-align:center;
  margin:22px 0 28px;
}
.public-header img {
  width:78px;
  height:78px;
  object-fit:contain;
  margin-bottom:12px;
  filter:drop-shadow(0 14px 25px rgba(37,99,235,.18));
}
.public-header h3 {
  margin:0;
  color:var(--ink);
  font-size:clamp(1.15rem,2.4vw,1.65rem);
  font-weight:800;
  letter-spacing:-.035em;
}
.public-header p {
  color:var(--muted);
  font-size:clamp(.78rem,1.8vw,.93rem);
  font-weight:600;
  margin-top:8px!important;
}
.saldo-card {
  position:relative;
  overflow:hidden;
  border-radius:30px;
  padding:clamp(24px,4vw,38px);
  background:
      radial-gradient(circle at 88% 18%,rgba(255,255,255,.15),transparent 28%),
      linear-gradient(135deg,#102d70 0%,#1d4ed8 55%,#4338ca 100%);
  color:#fff;
  box-shadow:0 30px 70px rgba(30,64,175,.24);
  border:1px solid rgba(255,255,255,.10);
}
.saldo-card::before {
  content:"";
  position:absolute;
  width:380px;
  height:380px;
  right:-150px;
  top:-190px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.11);
  box-shadow:0 0 0 36px rgba(255,255,255,.035),0 0 0 72px rgba(255,255,255,.02);
}
.saldo-card::after {
  content:"";
  position:absolute;
  inset:auto auto -95px -95px;
  width:260px;
  height:260px;
  border-radius:50%;
  background:rgba(255,255,255,.05);
  filter:blur(4px);
}
.saldo-icon-bg {
  position:absolute;
  right:18px;
  bottom:-30px;
  font-size:10rem;
  opacity:.06;
  transform:rotate(-15deg);
  pointer-events:none;
}
.saldo-label {
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:9px;
  color:rgba(255,255,255,.82);
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.13em;
  font-weight:800;
}
.saldo-amount {
  position:relative;
  z-index:1;
  margin:12px 0 26px;
  font-size:clamp(2rem,6vw,3.55rem);
  line-height:1;
  font-weight:800;
  letter-spacing:-.055em;
  text-shadow:0 8px 24px rgba(0,0,0,.16);
}
.stats-container {
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.stat-box {
  min-width:0;
  display:flex;
  align-items:center;
  gap:13px;
  padding:15px 17px;
  background:rgba(255,255,255,.11);
  border:1px solid rgba(255,255,255,.16);
  border-radius:18px;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  transition:.25s ease;
}
.stat-box:hover {
  transform:translateY(-2px);
  background:rgba(255,255,255,.15);
}
.stat-icon {
  width:42px;
  height:42px;
  flex:0 0 42px;
  border-radius:13px;
  display:grid;
  place-items:center;
  font-size:1rem;
  background:#fff;
}
.stat-icon.in {
  color:var(--success);
}
.stat-icon.out {
  color:var(--danger);
}
.stat-text {
  min-width:0;
}
.stat-text small {
  display:block;
  color:rgba(255,255,255,.72);
  font-size:.67rem;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.stat-text span {
  display:block;
  margin-top:3px;
  color:#fff;
  font-size:clamp(.88rem,2vw,1.08rem);
  font-weight:800;
  overflow-wrap:anywhere;
}
.page-card {
  margin-top:20px;
  margin-bottom:20px;
  padding:clamp(18px,3vw,32px);
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(22px) saturate(150%);
  -webkit-backdrop-filter:blur(22px) saturate(150%);
  border:1px solid rgba(255,255,255,.88);
  border-radius:28px;
  box-shadow:var(--shadow-md);
}
.page-title {
  display:flex;
  align-items:center;
  gap:11px;
  color:var(--ink);
  font-weight:800;
  font-size:1.1rem;
}
.page-title i {
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  color:var(--primary);
  background:rgba(37,99,235,.10);
  box-shadow:inset 0 0 0 1px rgba(37,99,235,.05);
}
.filter-group {
  display:flex;
  align-items:center;
  gap:6px;
  padding:5px;
  border-radius:15px;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(37,99,235,.10);
  box-shadow:0 6px 20px rgba(15,23,42,.05);
}
.filter-group .form-control {
  min-width:155px;
  border:0;
  background:transparent;
  box-shadow:none!important;
  color:var(--ink);
  font-size:.82rem;
  font-weight:700;
}
.filter-group .btn {
  border:0!important;
  border-radius:11px;
  padding:10px 14px;
  font-size:.76rem;
  font-weight:800;
  white-space:nowrap;
  background:linear-gradient(135deg,var(--primary),var(--primary-2))!important;
  box-shadow:0 7px 16px rgba(37,99,235,.20);
}
.table-wrapper {
  margin-top:10px!important;
  overflow-x:auto;
  overflow-y:hidden;
  border-radius:18px;
  scrollbar-width:thin;
}
.table {
  width:100%;
  min-width:760px;
  border-collapse:separate;
  border-spacing:0 9px;
}
.table thead th {
  padding:8px 16px 7px;
  border:0;
  color:#64748b;
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.09em;
  font-weight:800;
  white-space:nowrap;
}
.table tbody tr {
  background:rgba(255,255,255,.92);
  box-shadow:0 5px 18px rgba(15,23,42,.05);
  transition:.22s ease;
}
.table tbody tr:hover {
  transform:translateY(-2px);
  box-shadow:0 12px 26px rgba(37,99,235,.10);
}
.table td {
  border:0;
  padding:15px 16px;
  vertical-align:middle;
  color:#334155;
  font-size:.82rem;
  font-weight:600;
}
.table tbody tr td:first-child {
  border-radius:14px 0 0 14px;
}
.table tbody tr td:last-child {
  border-radius:0 14px 14px 0;
}
.table .text-dark {
  color:var(--ink)!important;
}
.table .text-secondary {
  color:#475569!important;
}
.badge-masuk,
.badge-keluar {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:82px;
  padding:7px 10px;
  border-radius:10px;
  font-size:.69rem;
  font-weight:800;
}
.badge-masuk {
  color:#047857;
  background:rgba(16,185,129,.10);
  border:1px solid rgba(16,185,129,.10);
}
.badge-keluar {
  color:#b91c1c;
  background:rgba(239,68,68,.10);
  border:1px solid rgba(239,68,68,.10);
}
.empty-state {
  padding:56px 20px!important;
  text-align:center;
  color:var(--muted);
}
.empty-state i {
  margin-bottom:10px;
  font-size:3.5rem;
  color:rgba(37,99,235,.18);
}
.empty-state h5 {
  color:var(--ink)!important;
}
.footer-logo {
  max-height:42px;
  width:auto;
  margin-bottom:10px;
  filter:drop-shadow(0 7px 14px rgba(37,99,235,.12));
}
@media (max-width: 768px) {
  body {
    padding:18px 10px 28px;
  }
  .container-public {
    padding:0 5px;
  }
  .public-header {
    margin:44px 0 22px;
  }
  .public-header img {
    width:68px;
    height:68px;
  }
  .saldo-card {
    border-radius:24px;
    padding:22px;
  }
  .saldo-icon-bg {
    font-size:7rem;
    right:-5px;
    bottom:-18px;
  }
  .stats-container {
    grid-template-columns:1fr;
  }
  .stat-box {
    padding:13px 14px;
  }
  .page-card {
    border-radius:22px;
    padding:16px;
  }
  .d-flex.flex-column.flex-md-row {
    align-items:stretch!important;
  }
  .filter-group {
    width:100%;
  }
  .filter-group .form-control {
    flex:1;
    min-width:0;
  }
  .filter-group .btn {
    flex:0 0 auto;
  }
  .table-wrapper {
    margin-left:-4px;
    margin-right:-4px;
  }
  .table {
    min-width:720px;
  }
}
@media (max-width: 480px) {
  .back-link {
    width:auto;
    padding:6px 8px;
    border-radius:9px;
    font-size:.64rem;
  }
  .public-header h3 {
    font-size:1.08rem;
  }
  .public-header p {
    font-size:.74rem;
    line-height:1.55;
  }
  .saldo-card {
    padding:19px;
  }
  .saldo-label {
    font-size:.67rem;
    letter-spacing:.09em;
  }
  .saldo-amount {
    font-size:2rem;
    margin-bottom:20px;
  }
  .stat-box {
    border-radius:15px;
  }
  .stat-icon {
    width:39px;
    height:39px;
    flex-basis:39px;
  }
  .stat-text span {
    font-size:.88rem;
  }
  .page-title {
    font-size:1rem;
  }
  .page-title i {
    width:38px;
    height:38px;
  }
  .filter-group {
    flex-wrap:nowrap;
  }
  .filter-group .btn {
    padding:9px 11px;
    font-size:.69rem;
  }
  .table {
    min-width:700px;
  }
  .footer-logo {
    max-height:36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
  }
}
