/*
 * Latar bergerak dominan putih untuk semua halaman NPiS (sama dengan website & PPID RSUD Kepulauan Seribu).
 * Murni hiasan: satu lapisan tetap di belakang isi halaman (z-index negatif, tidak menerima klik).
 * Mode gelap (body.dark-mode) tetap memakai latar gelap seperti semula. Dibuat oleh assets/js/latar-putih.js.
 */
html:root { background: #fff !important; }
html:has(body.dark-mode) { background: #1a1d23 !important; }
body:not(.dark-mode) { background: transparent !important; }
body:not(.dark-mode) .wrapper,
body:not(.dark-mode) .content-wrapper { background: transparent !important; }
body:not(.dark-mode) .main-footer { background: rgba(245, 247, 250, .85) !important; }
body.dark-mode .ta-latar { display: none; }
body:not(.dark-mode) .content-wrapper .box { box-shadow: 0 8px 26px -16px rgba(23, 48, 79, .32); }

.ta-latar { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: -20; overflow: hidden; pointer-events: none; }
.ta-latar i { position: absolute; display: block; }
.ta-latar .ta-lapis { position: absolute; top: 0; right: 0; bottom: 0; left: 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1); will-change: transform; }

/* pola titik */
.ta-latar .ta-titik { top: -56px; right: -56px; bottom: -56px; left: -56px; opacity: .55;
  background-image: radial-gradient(rgba(35, 73, 116, .22) 1.2px, transparent 1.7px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, transparent 18%, #000 85%); mask-image: radial-gradient(ellipse at 50% 45%, transparent 18%, #000 85%);
  animation: ta-geser-titik 18s linear infinite; }
/* cahaya lembut */
.ta-latar .ta-cahaya { width: 46vmax; height: 46vmax; border-radius: 50%; }
.ta-latar .ta-cahaya-1 { top: -18vmax; right: -12vmax; background: radial-gradient(circle, rgba(71, 168, 142, .22), transparent 65%); animation: ta-melayang-a 19s ease-in-out infinite; }
.ta-latar .ta-cahaya-2 { bottom: -20vmax; left: -14vmax; background: radial-gradient(circle, rgba(35, 73, 116, .17), transparent 65%); animation: ta-melayang-b 23s ease-in-out infinite; }
.ta-latar .ta-cahaya-3 { top: 38%; left: 58%; width: 30vmax; height: 30vmax; background: radial-gradient(circle, rgba(235, 132, 35, .10), transparent 65%); animation: ta-melayang-c 27s ease-in-out infinite; }
/* lingkaran isi */
.ta-latar .ta-bulat { border-radius: 50%; background: linear-gradient(145deg, rgba(35, 73, 116, .08), rgba(71, 168, 142, .08)); }
.ta-latar .ta-bulat-1 { width: 300px; height: 300px; top: -70px; right: 7%; animation: ta-melayang-b 16s ease-in-out infinite; }
.ta-latar .ta-bulat-2 { width: 380px; height: 380px; bottom: -160px; left: -80px; animation: ta-melayang-a 21s ease-in-out infinite; }
.ta-latar .ta-bulat-3 { width: 90px; height: 90px; top: 62%; right: 3%; animation: ta-melayang-c 12s ease-in-out infinite; }
/* cincin */
.ta-latar .ta-cincin { border-radius: 50%; border: 16px solid rgba(71, 168, 142, .17); }
.ta-latar .ta-cincin-1 { width: 118px; height: 118px; top: 22%; left: 4%; animation: ta-melayang-a 13s ease-in-out infinite; }
.ta-latar .ta-cincin-2 { width: 64px; height: 64px; bottom: 16%; right: 13%; border-width: 10px; border-color: rgba(235, 132, 35, .18); animation: ta-melayang-b 11s ease-in-out infinite; }
.ta-latar .ta-denyut { width: 300px; height: 300px; top: 44%; left: -90px; border-radius: 50%; border: 2px solid rgba(71, 168, 142, .35); opacity: 0; animation: ta-denyut 7s ease-out infinite; }
.ta-latar .ta-denyut-2 { top: 8%; left: auto; right: -110px; border-color: rgba(35, 73, 116, .28); animation-delay: 3.5s; }
/* tanda plus khas logo rumah sehat */
/* lambang + resmi logo RSUD (berkas asli, hanya diperkecil) */
.ta-latar .ta-plus { background: url(../images/lambang-rsud.png) center / contain no-repeat; }
.ta-latar .ta-plus-1 { width: 58px; height: 58px; top: 14%; left: 11%; opacity: .40; animation: ta-putar-melayang 17s ease-in-out infinite; }
.ta-latar .ta-plus-2 { width: 40px; height: 40px; top: 72%; left: 7%; opacity: .32; animation: ta-putar-melayang 14s ease-in-out -5s infinite; }
.ta-latar .ta-plus-3 { width: 50px; height: 50px; top: 30%; right: 8%; opacity: .36; animation: ta-putar-melayang 20s ease-in-out -9s infinite; }
.ta-latar .ta-plus-4 { width: 34px; height: 34px; top: 84%; right: 24%; opacity: .34; animation: ta-putar-melayang 12s ease-in-out -3s infinite; }
.ta-latar .ta-plus-5 { width: 30px; height: 30px; top: 9%; left: 46%; opacity: .28; animation: ta-putar-melayang 15s ease-in-out -7s infinite; }

@keyframes ta-geser-titik { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(28px, 56px, 0); } }
@keyframes ta-melayang-a { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(34px, 46px, 0) scale(1.07); } }
@keyframes ta-melayang-b { 0%, 100% { transform: translate3d(0, 0, 0); } 33% { transform: translate3d(-42px, -26px, 0); } 66% { transform: translate3d(18px, -48px, 0); } }
@keyframes ta-melayang-c { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-60px, -40px, 0) scale(1.12); } }
@keyframes ta-putar-melayang { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(22px, -38px, 0) rotate(8deg); } }
@keyframes ta-denyut { 0% { opacity: .8; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.5); } }

@media (max-width: 767px) {
  .ta-latar .ta-bulat-1 { width: 190px; height: 190px; }
  .ta-latar .ta-bulat-2 { width: 230px; height: 230px; }
  .ta-latar .ta-cincin-1 { width: 80px; height: 80px; border-width: 11px; }
  .ta-latar .ta-plus-4, .ta-latar .ta-plus-5, .ta-latar .ta-bulat-3, .ta-latar .ta-denyut-2 { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ta-latar i { animation: none !important; } .ta-latar .ta-denyut { display: none; } .ta-latar .ta-lapis { transition: none; } }
@media print { .ta-latar { display: none; } }

/* halaman aplikasi (bermenu samping): lebih lembut dan dimulai di kanan menu */
body.sidebar-mini .ta-latar { opacity: .85; }
@media (min-width: 768px) {
  body.sidebar-mini .ta-latar { left: 230px; }
  body.sidebar-mini.sidebar-collapse .ta-latar { left: 50px; }
  body.sidebar-mini .ta-latar .ta-cincin-1 { left: 1%; }
  body.sidebar-mini .ta-latar .ta-denyut { left: -120px; }
}
@media print { html:root, body { background: #fff !important; } }
