/* =========================================
   TEMA 3 (OPTIMIZED PREMIUM - MODERN DASHBOARD)
   Pembaruan: Presisi Simetris Slide & Jadwal
   ========================================= */

body.theme-3 .content {
    display: grid !important;
    grid-template-columns: 1fr 35vw;
    grid-template-rows: 15vh 1fr;
    column-gap: 3vw;
    row-gap: 2vh;
    padding: 2vh 3vw 12vh 3vw !important;
    height: 100vh;
    box-sizing: border-box;
    /* Gradient disederhanakan agar lebih ringan di GPU TV */
    background: #0f172a;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    /* --- DITAMBAHKAN AGAR BACKGROUND IMAGE MUNCUL --- */
    background: transparent !important;
    overflow: hidden;
}

/* Header: Tanpa backdrop-filter untuk menghindari lag pada TV */
body.theme-3 .top-bar-modern {
    grid-column: 1 / 3;
    grid-row: 1;
    height: 100% !important;
    background: #1e293b !important; /* Solid color lebih ringan dari blur */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 4px solid #00ff88 !important;
    border-radius: 20px;
    margin: 0 !important;
    padding: 0 2vw !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box;
}

body.theme-3 #masjid-name { color: #ffffff !important; font-weight: 900 !important; letter-spacing: 1px; }
body.theme-3 #masjid-address { color: #e2e8f0 !important; } /* Lebih terang */
body.theme-3 #hijri-date, body.theme-3 #current-date { color: #00ff88 !important; }

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

/* =========================================
   JADWAL SHALAT: BRIGHT & VISIBLE
   ========================================= */
body.theme-3 .prayer-grid {
    grid-column: 2;
    grid-row: 2;
    flex-direction: column !important;
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px !important;
    padding: 1vh 1vw !important;
    height: 100% !important; /* Tinggi penuh grid row 2 */
    display: flex !important;
    justify-content: space-around !important;
    box-sizing: border-box;
    margin: 0 !important;
}

body.theme-3 .prayer-card {
    border: none !important;
    background: rgba(255, 255, 255, 0.05);
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 1.5vw !important;
    margin: 0.3vh 0;
    border-radius: 15px;
    flex: 1 !important;
}

body.theme-3 .prayer-card h4 {
    color: #f8fafc !important; /* Lebih terang untuk keterbacaan TV */
    font-size: clamp(0.8rem, 1.2vw, 1.4rem) !important;
    font-weight: 700;
    text-transform: uppercase;
}

/* PERBAIKAN: Angka Jadwal Sholat Warna Terang */
body.theme-3 .prayer-card p {
    color: #00ffff !important;
    font-size: clamp(1.4rem, 2.5vw, 3.2rem) !important;
    font-weight: 900;
    /* Shadow disederhanakan agar tidak berat */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

body.theme-3 .active-prayer {
    background: linear-gradient(135deg, #059669 0%, #0066ff 100%) !important;
    box-shadow: 0 4px 10px rgba(0, 255, 136, 0.3);
    z-index: 50;
    border: 1px solid rgba(255,255,255,0.3) !important;
}

body.theme-3 .active-prayer p {
    color: #ffffff !important;
}

/* =========================================
   SLIDESHOW: PUSAT KONTEN
   ========================================= */
body.theme-3 #slideshow-container {
    grid-column: 1;
    grid-row: 2;
    background: transparent !important;
    height: 100% !important; /* Pastikan container induk setinggi grid */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
    margin: 0 !important;
}

/* Slide 1: Jam */
body.theme-3 #digital-clock {
    font-size: clamp(5rem, 13vw, 15rem) !important;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Slide 2, 3, & 4: Optimized for Precise Symmetry */
/* DIUBAH: Width & Height menjadi 100% agar sejajar presisi dengan jadwal di kanan */
body.theme-3 #slide-2 > div,
body.theme-3 #slide-3 > div,
body.theme-3 #slide-4 > div {
    width: 100% !important; /* Lebar penuh grid column 1 */
    height: 100% !important; /* Tinggi penuh grid row 2 */
    background: #1e293b !important;
    border-radius: 25px !important; /* Disamakan dengan border-radius .prayer-grid */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 3vh 3vw !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    margin: 0 !important;
}

/* Warna Tulisan Slideshow (Laporan Keuangan, Info & Petugas Jumat) */
body.theme-3 .tv-slide h2 {
    color: #00ff88 !important;
    font-size: clamp(1.5rem, 2.5vw, 3rem) !important;
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
    padding-bottom: 1vh;
    margin-bottom: 2vh;
}

body.theme-3 .tv-slide table td {
    color: #f1f5f9 !important;
}

body.theme-3 .tv-slide table th {
    color: #ffffff !important;
}

body.theme-3 #kas-awal {
    color: #ffffff !important;
}

body.theme-3 #kas-masuk {
    color: #00ff88 !important;
}

body.theme-3 #kas-keluar {
    color: #ff5f5f !important;
}

body.theme-3 #kas-total {
    color: #ffffff !important;
    font-weight: 900 !important;
}

body.theme-3 .tv-slide ul li {
    color: #f1f5f9 !important;
}

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

/* Penyesuaian khusus untuk Slide 4 (Petugas Jumat) */
body.theme-3 #slide-4 strong {
    color: #f1f5f9 !important;
}

body.theme-3 #slide-4 span[id^="nama-"] {
    color: #00ff88 !important;
}

body.theme-3 #slide-4 > div > div > div {
    border-bottom: 2px dashed rgba(255, 255, 255, 0.2) !important;
}

/* Footer: Modern Dark */
body.theme-3 footer {
    background: #0f172a !important;
    border-top: 4px solid #00ff88 !important;
    z-index: 1000;
}

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