body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #000;
  font-family: 'Cinzel', serif;
}

/* Container Utama dengan Background */
#container {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: #E0E0E0;
}

/* Layer Background Dinamis */
#Layer1z {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* UBAH MENJADI: */
  background-size: 100% 100%;
  background-position: center;
}

/* --- JAM SHOLAT (KIRI) --- */
.prayer-time-box {
  position: absolute;
  left: 18%;
  width: 13%;
  height: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.2vw;
  font-weight: 700;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  z-index: 10;
  color: #F5EEB7;
  margin-top: -0.30%;
}

/* Posisi vertikal sesuai c.html */
#Card2-card-item1 {
  font-size: 3.9vw;
}

#Card3-card-item1 {
  font-size: 3.9vw;
}

#Card4-card-item1 {
  font-size: 3.9vw;
}

#Card5-card-item1 {
  font-size: 3.9vw;
}

#Card6-card-item1 {
  font-size: 3.9vw;
}

#Card7-CARD-ITEM1 {
  font-size: 3.9vw;
}

#Card7-card-item1 {
  font-size: 3.9vw;
}

#wb_Card2 {
  top: 3.5%;
}

/* Subuh */
#wb_Card3 {
  top: 18.5%;
}

/* Syuruq */
#wb_Card4 {
  top: 33.5%;
}

/* Dzuhur */
.prayer-time-box {
  color: #F5EEB7;
  font-size: 46.9px;
}

#wb_Card5 {
  top: 48.5%;
}

/* Ashar */
#wb_Card6 {
  top: 63.5%;
}

/* Maghrib */
#wb_Card7 {
  top: 78.5%;
}

/* Isya */
/* Slot Imsak & Dhuha disembunyikan */
#wb_Card1, #wb_CardDhuha {
  display: none !important;
}

/* --- JAM DIGITAL (ATAS TENGAH) --- */
#top-clock-box {
  position: absolute;
  top: 1%;
  left: 35.8%;
  width: 31.5%;
  height: 15%;
  display: flex;
  align-items: center;
  justify-content: left;
  z-index: 20;
  color: #F8EFAA;
}

#myclock {
  font-family: 'Orbitron', sans-serif;
  font-size: 5.5vw;
  color: #F8EFAA;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-weight: normal;
}

/* --- TANGGAL (ATAS KANAN) --- */
#date-box {
  position: absolute;
  top: 2%;
  right: -3.5%;
  width: 40%;
  height: 12%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 2.4vw;
  line-height: 1.3;
  text-shadow: 2px 2px 4px #000;
  color: #F8EFAA;
}

#sekarangh {
  font-weight: normal;
  color: #F8EFAA;
  display: block;
  margin-top: -5%;
}

#sekarangj {
  font-weight: normal;
  color: #F8EFAA;
  display: block;
}

/* --- AREA TENGAH (HADIST & IQOMAH) --- */
#main-display-area {
  position: absolute;
  top: 25%;
  left: 37%;
  width: 61%;
  height: 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-shadow: 4px 4px 8px #000;
  text-align: center;
}

/* Hadist Display */
#hadis-display {
  display: block;
  width: 100%;
  padding: 20px;
  background: transparent;
  border-radius: 15px;
}

#hadis-display .hadis-source {
  font-size: 2vw;
  color: #CCCCCC;
  font-weight: normal;
  font-style: normal;
  text-align: center;
}

.hadis-text {
  font-size: 4.6vw;
  font-weight: bold;
  line-height: 0.9;
}

/* Nama Masjid (Hidden by default, ditampilkan jika diperlukan) */
#mosque-name-display {
  font-size: 4vw;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2%;
  color: #FFF;
  display: none;
}

/* Layer Iqomah (Overlay di area tengah) */
#LayerIqomah {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

#jelangn {
  font-size: 4.5vw;
  color: #DDD;
  font-weight: bold;
  margin-bottom: -2%;
  display: block;
  line-height: 1.2;
  justify-content: center;
}

marquee#mrunning {
  font-size: 5.9vh;
  margin-top: 16px;
  color: #000000;
}

#jelangw {
  margin-left: 6%;
  font-size: 20.9vw;
  font-weight: 700;
  color: #FFF;
  line-height: 1;
  font-family: 'Cinzel', serif;
  display: block;
  text-align: left;
  margin-top: 0%;
}

/* --- RUNNING TEXT (BAWAH) --- */
#marquee-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 9%;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: transparent;
  padding-bottom: 0px;
}

marquee {
  font-family: Arial, sans-serif;
  font-size: 2.6vw;
  font-weight: 600;
  color: #000000;
  width: 100%;
  height: 109%;
  margin-top: 5px;
  padding-top: 1px;
}

/* Highlight Sholat Aktif */
/* .highlighted-prayer {
  color: #FFD700 !important;
  text-shadow: 0 0 15px #FFD700;
  transform: scale(1.1);
  transition: all 0.3s;
} */
/* Doa Adzan Layer */
#doaAdzanLayer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 100;
  display: none;
  justify-content: center;
  align-items: center;
}

#doaAdzanLayer img {
  7;
}

/* CSS Loading & Toast */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  color: #FFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#toast-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #FFF;
  padding: 10px 20px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 9999;
}

#toast-notification.show {
  opacity: 1;
}

/* YouTube Player */
#wb_YouTube1 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  display: none;
  background: #000;
}

/* Settings Form */
#settings-form-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

#settings-form-wrapper {
  background: #FFF;
  padding: 20px;
  width: 80%;
  max-height: 90%;
  overflow-y: auto;
  color: #000;
  font-family: sans-serif;
}

/* Finance Report Layer - ADDED */
#financeReportLayer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 150;
  display: none;
  overflow: hidden;
}

/* [File: index.css] */
/* Container Animasi */
#financeReportContainer {
  position: absolute;
  width: 100%;
  /* Gunakan transform agar lebih performan (tidak patah-patah) */
  animation: scrollUp linear;
}

/* PERBAIKAN ANIMASI: Mulai dari bawah layar (100vh) */
@keyframes scrollUp {
  from {
    /* Mulai dari luar layar bagian bawah */
    transform: translateY(50vh);
  }
  
  to {
    /* Jalan terus ke atas sampai hilang di atas layar */
    /* -100% berarti geser ke atas sebesar tinggi konten itu sendiri */
    /* Kita tambah sedikit (-120%) biar yakin hilang bersih */
    transform: translateY(-120%);
  }
}

.v-report-card {
  margin: 0;
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: 1px solid #EAEAEA;
}

.v-report-top-accent {
  height: 8px;
  background: linear-gradient(90deg, #198754, #D4AF37, #198754);
}

.v-header {
  text-align: center;
  padding: 30px 20px 25px;
  background-color: #FCFCFC;
  border-bottom: 1px solid #F0F0F0;
}

.v-header h2 {
  margin: -10px 0 -15px;
  color: #0F5132;
  font-size: 3.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Cinzel', serif;
}

.v-header .period {
  margin-top: 12px;
  font-size: 4.4rem;
  color: #666;
  background: #EEFECF;
  display: inline-block;
  padding: 0px 20px;
  border-radius: 25px;
  font-weight: 600;
}

#finance_reportPeriod.period {
  font-size: 42.4px;
  font-family: arial;
}

.v-body {
  padding: 0 40px 40px;
  font-family: Arial, sans-serif;
}

.v-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 0;
  font-size: 10.5vh;
  border-bottom: 2px solid #E0E0E0;
}

.v-subtotal span {
  font-size: 7.7vh;
}

.v-row:last-child {
  border-bottom: none;
}

.v-desc {
  color: #444;
  font-weight: 500;
  font-size: 34.8px;
  line-height: 1;
}

.v-amt {
  font-family: 'Consolas', 'Monaco', monospace;
  font-weight: 700;
  color: #333;
  font-size: 41px;
}

.v-balance-box {
  background: #EAEAEA;
  margin: -11px -40px 0;
  padding: 0px 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid #EEE;
  border-bottom: 2px solid #EEE;
}

.v-balance-label {
  font-weight: bold;
  color: #555;
  font-size: 7.9vh;
  margin-left: 37px;
}

.v-balance-val {
  font-size: 7.4vh;
  font-weight: 700;
  color: #333;
  font-family: 'Consolas', monospace;
  margin-right: 60px;
}

.v-section-head {
  margin-top: 13px;
  margin-bottom: 10px;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
}

.v-section-head.in {
  color: #198754;
}

.v-section-head.in::after {
  content: '';
  flex: 1;
  height: 2px;
  background: #198754;
  margin-left: 15px;
  opacity: 0.3;
}

.v-section-head.out {
  color: #DC3545;
}

.v-section-head.out::after {
  content: '';
  flex: 1;
  height: 2px;
  background: #DC3545;
  margin-left: 15px;
  opacity: 0.3;
}

.v-subtotal {
  background-color: #FDFDD9;
  padding: 12px 15px;
  margin: 8px -15px 0;
  border-radius: 8px;
  font-weight: 700;
  color: #333;
  font-size: 1.5rem;
}

.v-footer {
  background: #0F5132;
  color: #FFF;
  padding: 3px 40px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.v-total-label {
  font-size: 2.5rem;
  opacity: 0.9;
}

.v-total-amt {
  font-size: 7.8vh;
  font-weight: 700;
  color: #FFDA6A;
  font-family: 'Consolas', monospace;
}

#finance_masjidName {
  font-size: 37.5px;
  margin-top: -5px;
  margin-bottom: -18px;
  text-shadow: 0 0 #636359;
  color: #535353;
}

/* Nama Masjid (Hidden by default, ditampilkan jika diperlukan) */
#mosque-name-display {
  font-size: 4vw;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2%;
  color: #FFF;
  display: none;
}

/* Content Image Display */
#content-image-display {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

#content-image-display img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* Layer Iqomah (Overlay di area tengah) */
/* --- CSS JAM ANALOG --- */
#waktux {
  position: absolute;
  bottom: 5%;
  /* Posisi dari bawah */
  right: 5%;
  /* Posisi dari kanan */
  /* Ukuran Jam */
  display: flex;
  justify-content: center;
  align-items: center;
  /* Background lingkaran transparan */
  border-radius: 50%;
  visibility: hidden;
  /* Default hidden, nanti JS yang nyalakan */
  z-index: 100;
}

/* --- CSS JAM ANALOG (PERBAIKAN SENTER) --- */
/* 1. WADAH UTAMA JAM */
/* 2. MUKA JAM (CLOCK FACE) */
/* Jam Analog */
.clock {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("images/jam2.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.2), inset 0 0 15px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 54%;
  left: 65%;
  transform: translate(-50%, -50%);
  width: 37.4vw;
  height: 37.1vw;
  z-index: 10;
  visibility: hidden;
}

.clock:before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: #FF0000;
  border-radius: 50%;
  z-index: 10000;
  border: 2px solid white;
}

.clock .hour, .clock .min, .clock .sec {
  position: absolute;
  display: flex;
  justify-content: center;
}

.clock .hour {
  width: 160px;
  height: 160px;
}

.clock .min {
  width: 190px;
  height: 190px;
}

.clock .sec {
  width: 220px;
  height: 220px;
}

.hr, .mn, .sc {
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
}

.hr:before {
  content: '';
  position: absolute;
  width: 11px;
  height: 9.4vw;
  background: #FFFFFF;
  border-radius: 6px 6px 0 0;
  transform: translateY(-90%);
  z-index: 10;
}

.mn:before {
  content: '';
  position: absolute;
  width: 5px;
  height: 14vw;
  background: #FFFFFF;
  border-radius: 6px 6px 0 0;
  transform: translateY(-90%);
  z-index: 11;
}

.sc:before {
  content: '';
  position: absolute;
  width: 4px;
  height: 18.7vw;
  background: #FF0000;
  border-radius: 6px 6px 0 0;
  transform: translateY(-80%);
  z-index: 12;
}

/* Definisi Animasi Kedap-Kedip */
/* Definisi Animasi Kedap-Kedip (Lebih Jelas) */
@keyframes blinkingText {
  0% {
    opacity: 1;
    transform: scale(1.1);
    color: #EBF22A;
    /* Hijau Terang */
    text-shadow: 0 0 25px #E0EDA5;
  }
  
  50% {
    opacity: 0.4;
    /* Meredup */
    transform: scale(1.0);
    color: #FFF;
    /* Putih */
    text-shadow: none;
  }
  
  100% {
    opacity: 1;
    transform: scale(1.1);
    color: #FEFEFE;
    /* Kuning/Oranye Terang (Biar beda dari hijau) */
    text-shadow: 0 0 25px #FFFFFF;
  }
}

/* Terapkan ke class highlight */
.highlighted-prayer {
  /* Warna dasar merah (backup jika animasi gagal) */
  color: #FFFFFF !important;
  font-weight: 900 !important;
  /* PERUBAHAN DISINI: */
  /* Ubah '1s' menjadi '3s' (3 detik) agar pelan & jelas */
  /* Tambahkan 'ease-in-out' agar transisi warnanya mengayun halus */
  animation: blinkingText 1s infinite ease-in-out;
}

/* Tambahkan garis tipis di bawah Tanggal Masehi */
#wb_Text3a {
  border-bottom: 1px solid rgba(248, 223, 33, 0.984);
  /* Warna garis (samar) */
  width: 76%;
  /* Panjang garis 80% dari lebar area */
  margin-bottom: -1px;
  /* Jarak antara garis dan tanggal Hijriah */
  /* Jarak antara teks Masehi dan garis */
  /* Pastikan posisi tetap di tengah */
  display: flex;
  justify-content: center;
  height: ;
}

/* [File: index.css] - Tambahkan di paling bawah */
/* 1. Kelas untuk Transisi Opacity Manual (Dipakai JS untuk Teks Hadist) */
#hadis-display {
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
  /* Default terlihat */
}

/* Kelas bantu untuk menyembunyikan elemen saat transisi */
.fade-out-state {
  opacity: 0 !important;
}

/* 2. Keyframes Animasi Fade In (Dipakai saat ganti Slide) */
@keyframes fadeInEffect {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Kelas yang akan ditempelkan ke elemen saat muncul */
7 {
  animation: fadeInEffect 0.8s ease-out forwards;
}

/* [FILE: index.css] - Tambahkan di paling bawah */

/* --- FLOATING MENU (BURGER) --- */
#fab-menu-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000; /* Paling atas */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#fab-menu-btn {
    background-color: rgba(0, 0, 0, 0.6);
    color: #FFF;
    border: 2px solid #F8EFAA;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

#fab-menu-btn:hover {
    background-color: #F8EFAA;
    color: #000;
    transform: rotate(90deg);
}

#fab-menu-list {
    display: none; /* Tersembunyi default */
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 5px 0;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    overflow: hidden;
}

#fab-menu-list.active {
    display: block;
    animation: fadeInMenu 0.3s ease-out;
}

.fab-item {
    padding: 12px 20px;
    color: #EEE;
    font-family: sans-serif;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.fab-item:last-child {
    border-bottom: none;
}

.fab-item:hover {
    background-color: #333;
    color: #F8EFAA;
}

.fab-item.text-danger {
    color: #ff6b6b;
}

.fab-item.text-danger:hover {
    background-color: #5a0000;
}

@keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}