/* =========================================
   TEMA 5 (NUANSA HIJAU NAHDLATUL ULAMA)
   Layout: Berbasis Theme 2 (Jadwal di Kiri)
   ========================================= */

body.theme-5 .content {
    display: grid !important;
    grid-template-columns: 30vw 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 2vw;
    row-gap: 3vh !important;
    padding: 2vh 2vw 11vh 2vw !important;
    height: 100vh;
    box-sizing: border-box;
    overflow: hidden !important;
    background: transparent !important;
}

body.theme-5 .top-bar-modern {
    grid-column: 1 / 3;
    grid-row: 1;
    margin: 0 !important;
    width: 100% !important;
    background: rgba(0, 98, 39, 0.9) !important; /* Hijau NU */
    border-bottom: 4px solid #FFD700 !important; /* Emas NU */
    border-radius: 15px;
}

body.theme-5 #masjid-name { color: #ffffff !important; }
body.theme-5 #masjid-address { color: #e0e0e0 !important; }
body.theme-5 #hijri-date, body.theme-5 #current-date { color: #FFD700 !important; }

/* TAMBAHAN: Memastikan jam di kanan atas berwarna putih bersih */
body.theme-5 #current-time,
body.theme-5 #clock,
body.theme-5 .time,
body.theme-5 #jam {
    color: #ffffff !important;
}

body.theme-5 .prayer-grid {
    grid-column: 1;
    grid-row: 2;
    flex-direction: column !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    justify-content: space-between !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    background: rgba(0, 75, 30, 0.8) !important;
    border: 2px solid #FFD700 !important;
}

body.theme-5 #slideshow-container {
    grid-column: 2;
    grid-row: 2;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    margin: 0 !important;
}

body.theme-5 .tv-slide {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    box-sizing: border-box !important;
}

body.theme-5 #slide-2 > div,
body.theme-5 #slide-3 > div,
body.theme-5 #slide-4 > div {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background: rgba(0, 50, 20, 0.9) !important; /* Hijau lebih pekat agar teks putih menonjol */
    border: 2px solid #FFD700 !important;
    border-radius: 15px !important;
    padding: 3vh 3vw !important;
}

body.theme-5 .clock-container {
    height: 100% !important;
}

body.theme-5 .prayer-card {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0 1.5vw !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: transparent !important;
}

body.theme-5 .prayer-card:last-child {
    border-bottom: none !important;
}

body.theme-5 .active-prayer {
    border-right: none !important;
    border-bottom: 2px solid #FFD700 !important;
    background: #1b5e20 !important; /* Hijau lebih terang sedikit untuk aktif */
    box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.2);
}

body.theme-5 .active-prayer h4, body.theme-5 .active-prayer p {
    color: #FFD700 !important;
}

body.theme-5 .prayer-card h4 {
    font-size: clamp(1rem, 1.5vw, 1.8rem) !important;
    margin: 0 !important;
    text-align: left;
    flex: 1;
    color: #ffffff !important;
}

body.theme-5 .prayer-card p {
    font-size: clamp(1.5rem, 2.5vw, 2.8rem) !important;
    margin: 0 !important;
    color: #FFD700 !important;
}

body.theme-5 .countdown {
    font-size: clamp(1rem, 1.2vw, 1.5rem) !important;
    margin: 0 0 0 1vw !important;
    color: #ffffff !important;
}

body.theme-5 #digital-clock {
    font-size: clamp(6rem, 14vw, 16rem) !important;
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

/* =========================================
   PERBAIKAN KONTEN SLIDESHOW (HIGH CONTRAST)
   ========================================= */

body.theme-5 .tv-slide h2 {
    color: #FFD700 !important;
    border-bottom: 3px solid #FFD700 !important;
    font-weight: 900 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 3vh !important;
}

/* Laporan Keuangan (Slide 2) */
body.theme-5 .tv-slide table th {
    color: #FFD700 !important;
    font-weight: bold !important;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3) !important;
}

body.theme-5 .tv-slide table td {
    color: #ffffff !important;
    font-weight: bold !important;
    font-size: 1.1em !important;
}

body.theme-5 #kas-awal, body.theme-5 #kas-total {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px #000;
}

body.theme-5 #kas-masuk {
    color: #00ff88 !important; /* Hijau Stabilo agar terbaca di background hijau */
}

body.theme-5 #kas-keluar {
    color: #ff6b6b !important; /* Merah terang */
}

/* Info Kegiatan (Slide 3) */
body.theme-5 #slide-3 ul li {
    color: #ffffff !important;
    font-size: 1.1em !important;
    margin-bottom: 2vh !important;
    font-weight: bold !important;
    border-left: 5px solid #FFD700;
    padding-left: 15px;
    background: rgba(255,255,255,0.05);
}

body.theme-5 #slide-3 ul li span {
    color: #ffffff !important;
}

/* Petugas Jumat (Slide 4) */
body.theme-5 #slide-4 strong {
    color: #ffffff !important; /* Label seperti KHATIB: jadi Putih */
    font-weight: 900 !important;
}

body.theme-5 #slide-4 span[id^="nama-"] {
    color: #FFD700 !important; /* Nama petugas tetap Emas */
    font-weight: 900 !important;
    text-transform: uppercase;
}

body.theme-5 #slide-4 div[style*="dashed"] {
    border-bottom: 2px dashed rgba(255, 215, 0, 0.5) !important;
}

/* Footer */
body.theme-5 footer {
    background: #004b1e !important;
    border-top: 4px solid #FFD700 !important;
}

body.theme-5 #mini-clock {
    color: #ffffff !important;
}