/* Ramadan Badge */
.ramadan-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
  pointer-events: none;
}
.ramadan-badge svg {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(255, 200, 0, 0.6));
}
@media screen and (max-width: 768px) {
  .ramadan-badge svg {
    height: 36px;
  }
}
/* ===================== TRANSISI HALUS UNTUK TEMA ===================== */
body,
header {
  transition:
    background-color 0.6s ease-in-out,
    color 0.6s ease-in-out;
}

/* Semua elemen yang bisa berubah warna ikut smooth */
* {
  transition:
    background-color 0.5s ease,
    color 0.5s ease,
    border-color 0.5s ease;
}

/* ===================== HARI NASIONAL (Merah Putih - Broken White) ===================== */
.nav-merah-putih {
  background: linear-gradient(to bottom, #ff0000 70%, #ede6db 30%);
}

.nav-merah-putih a {
  color: #fff;
}
.nav-merah-putih a:hover {
  color: #f2f2f2;
}

/* Scrollbar tema Merah Putih */
html.scrollbar-merah-putih,
body.scrollbar-merah-putih {
  scrollbar-width: thin;
  scrollbar-color: #ff0000 #e8e1d8;
}

html.scrollbar-merah-putih::-webkit-scrollbar,
body.scrollbar-merah-putih::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

html.scrollbar-merah-putih::-webkit-scrollbar-track,
body.scrollbar-merah-putih::-webkit-scrollbar-track {
  background: #e8e1d8;
}

html.scrollbar-merah-putih::-webkit-scrollbar-thumb,
body.scrollbar-merah-putih::-webkit-scrollbar-thumb {
  background: #ff0000;
  border-radius: 9999px;
  border: 2px solid #e8e1d8;
}

html.scrollbar-merah-putih::-webkit-scrollbar-thumb:hover,
body.scrollbar-merah-putih::-webkit-scrollbar-thumb:hover {
  background: #b30000;
}

/* Warna aksen elemen */
html body.event-merah-putih .bg-orange-custom {
  background-color: #ff0000;
}
html body.event-merah-putih .text-orange-custom {
  color: #ff0000;
}
html body.event-merah-putih .hover\:text-orange-200:hover {
  color: #cc0000;
}
html body.event-merah-putih .border-orange-custom {
  border-color: #ff0000;
}
html body.event-merah-putih .from-orange-custom {
  --tw-gradient-from: #ff0000;
}
html body.event-merah-putih .to-orange-600 {
  --tw-gradient-to: #cc0000;
}

/* ===================== NATAL (Merah Elegan) ===================== */
.nav-merah {
  background: linear-gradient(to bottom, #8b0000 100%, #f5c6cb 0%);
}
.nav-merah a {
  color: #fff;
}
.nav-merah a:hover {
  color: #ffe6e6;
}

html.scrollbar-merah,
body.scrollbar-merah {
  scrollbar-width: thin;
  scrollbar-color: #8b0000 #f9eaea;
}
html.scrollbar-merah::-webkit-scrollbar,
body.scrollbar-merah::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
html.scrollbar-merah::-webkit-scrollbar-track,
body.scrollbar-merah::-webkit-scrollbar-track {
  background: #f9eaea;
}
html.scrollbar-merah::-webkit-scrollbar-thumb,
body.scrollbar-merah::-webkit-scrollbar-thumb {
  background: #8b0000;
  border-radius: 9999px;
  border: 2px solid #f9eaea;
}
html.scrollbar-merah::-webkit-scrollbar-thumb:hover,
body.scrollbar-merah::-webkit-scrollbar-thumb:hover {
  background: #660000;
}

html body.event-natal .bg-orange-custom {
  background-color: #8b0000;
}
html body.event-natal .text-orange-custom {
  color: #8b0000;
}
html body.event-natal .hover\:text-orange-200:hover {
  color: #660000;
}
html body.event-natal .border-orange-custom {
  border-color: #8b0000;
}
html body.event-natal .from-orange-custom {
  --tw-gradient-from: #8b0000;
}
html body.event-natal .to-orange-600 {
  --tw-gradient-to: #660000;
}

/* ===================== IDUL FITRI (Hijau Elegan) ===================== */
.nav-hijau {
  background: linear-gradient(to bottom, #006a4e 100%, #c3e6cb 0%);
}
.nav-hijau a {
  color: #fff;
}
.nav-hijau a:hover {
  color: #e6ffe6;
}

html.scrollbar-hijau,
body.scrollbar-hijau {
  scrollbar-width: thin;
  scrollbar-color: #006a4e #eaf7f0;
}
html.scrollbar-hijau::-webkit-scrollbar,
body.scrollbar-hijau::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
html.scrollbar-hijau::-webkit-scrollbar-track,
body.scrollbar-hijau::-webkit-scrollbar-track {
  background: #eaf7f0;
}
html.scrollbar-hijau::-webkit-scrollbar-thumb,
body.scrollbar-hijau::-webkit-scrollbar-thumb {
  background: #006a4e;
  border-radius: 9999px;
  border: 2px solid #eaf7f0;
}
html.scrollbar-hijau::-webkit-scrollbar-thumb:hover,
body.scrollbar-hijau::-webkit-scrollbar-thumb:hover {
  background: #004d39;
}

html body.event-hijau .bg-orange-custom {
  background-color: #006a4e;
}
html body.event-hijau .text-orange-custom {
  color: #006a4e;
}
html body.event-hijau .hover\:text-orange-200:hover {
  color: #004d39;
}
html body.event-hijau .border-orange-custom {
  border-color: #006a4e;
}
html body.event-hijau .from-orange-custom {
  --tw-gradient-from: #006a4e;
}
html body.event-hijau .to-orange-600 {
  --tw-gradient-to: #004d39;
}

/* ===================== ANIMASI POPUP ===================== */
.popup-overlay {
  animation: fadeIn 0.4s ease forwards;
}

.popup-overlay.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

.popup-box {
  transform: scale(0.9);
  opacity: 0;
  animation: popIn 0.4s ease forwards;
}

.popup-box.fade-out {
  animation: popOut 0.3s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes popIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes popOut {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.9);
    opacity: 0;
  }
}

/* ===================== CUSTOM THEMES ===================== */

/* Imlek Theme */
.nav-imlek {
  background: linear-gradient(to bottom, #e0270d 100%, #e0270d20 0%);
}
.nav-imlek a {
  color: #fff;
}
.nav-imlek a:hover {
  color: #f2f2f2;
}

html.scrollbar-imlek,
body.scrollbar-imlek {
  scrollbar-width: thin;
  scrollbar-color: #e0270d #e0270d15;
}
html.scrollbar-imlek::-webkit-scrollbar,
body.scrollbar-imlek::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
html.scrollbar-imlek::-webkit-scrollbar-track,
body.scrollbar-imlek::-webkit-scrollbar-track {
  background: #e0270d15;
}
html.scrollbar-imlek::-webkit-scrollbar-thumb,
body.scrollbar-imlek::-webkit-scrollbar-thumb {
  background: #e0270d;
  border-radius: 9999px;
  border: 2px solid #e0270d15;
}
html.scrollbar-imlek::-webkit-scrollbar-thumb:hover,
body.scrollbar-imlek::-webkit-scrollbar-thumb:hover {
  background: #dfa643;
}

html body.event-imlek .bg-orange-custom {
  background-color: #e0270d;
}
html body.event-imlek .text-orange-custom {
  color: #e0270d;
}
html body.event-imlek .hover\:text-orange-200:hover {
  color: #dfa643;
}
html body.event-imlek .border-orange-custom {
  border-color: #e0270d;
}
html body.event-imlek .from-orange-custom {
  --tw-gradient-from: #7e2ea3;
}
html body.event-imlek .to-orange-600 {
  --tw-gradient-to: #8c3b3b;
}
