/* ================================================= */
/* TEMA BARU: NUANSA ISLAMI MODERN (BIRU TUA & EMAS) */
/* ================================================= */

/* -- Variabel Warna (Untuk kemudahan mengubah tema nanti) -- */
:root {
    --warna-background-utama: #0a192f; /* Biru Sangat Tua */
    --warna-overlay: rgba(10, 25, 47, 0.8); /* Overlay Biru Tua Transparan */
    --warna-aksen-emas: #4ce03e; /* Warna Emas untuk Judul & Aksen */
    --warna-teks-utama: #e6f1ff; /* Putih Kebiruan (lebih lembut dari putih murni) */
    --warna-teks-sekunder: #ffffff; /* Abu-abu Kebiruan untuk sub-teks */
    --font-utama: 'Poppins', sans-serif;
    --font-angka: 'Orbitron', sans-serif;
}

/* -- Pengaturan Dasar -- */
body {
    margin: 0;
    font-family: var(--font-utama);
    color: var(--warna-teks-utama);
    background-color: var(--warna-background-utama);
    overflow: hidden;
}

#app-container {
    background-image: url('bg-baru.jpg'); /* <-- Ganti nama file background Anda di sini */
    background-size: cover;
    background-position: center;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* -- Header -- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: rgba(0, 0, 0, 0.4); /* Header tetap gelap agar kontras */
    border-bottom: 1px solid rgba(212, 175, 55, 0.3); /* Garis batas emas tipis */
}
.identitas-masjid {
    display: flex;
    align-items: center;
}
#logo-masjid {
    height: 80px;
    margin-right: 10px;
}
#nama-masjid {
    font-size: 2.0em;
    margin: 0;
    text-shadow: 1px 1px 3px #000;
    color: var(--warna-aksen-emas); /* Menggunakan warna Emas */
}
#alamat-masjid {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
    color: #F5B041;
}
.info-waktu {
    text-align: right;
}
.jam-digital {
    font-family: var(--font-angka);
    font-size: 3.0em;
    color:#ffffff;
    text-shadow: 1px 1px 3px #000;
}
#tanggal-lengkap {
    font-size: 1.3em; /* Sedikit diperbesar agar lebih jelas */
    color: var(--warna-teks-sekunder);
    font-weight: 600;
}

#tanggal-lengkap .separator {
    opacity: 0.5;
    margin: 0 10px; /* Jarak antara tanggal masehi dan hijriah */
}

#tanggal-masehi, #tanggal-hijriah {
    font-size: 1.2em;
    font-style: italic;
    color: var(--warna-teks-sekunder);
}

/* -- Konten Utama -- */
main {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: 30px;
    padding: 20px 40px;
}
#konten-kiri {
    flex: 6;
    position: relative;
    display: flex;
}


#konten-kanan {
    flex: 4;                                   /* Mengatur agar kolom kanan mengambil 4 bagian ruang */
    border-radius: 15px;                       /* Membuat sudut menjadi tumpul */
    background-color: var(--warna-overlay);    /* Warna latar sesuai tema */
    border: 1px solid rgba(212, 175, 55, 0.5); /* Garis tepi Emas */
    padding: 30px;                             /* Jarak tepi di dalam kotak */
    box-sizing: border-box;                    /* Memastikan padding tidak menambah ukuran kotak */
    text-align: center;                        /* Konten di dalamnya otomatis rata tengah */
    overflow-y: auto;                          /* Menambahkan scroll jika kontennya sangat panjang */
}

#konten-kanan h3 { 
    font-size: 2em; 
    color: var(--warna-aksen-emas); 
    margin-top: 0; }
#konten-kanan p { 
    font-size: 1.4em; 
    line-height: 1.6; }
#konten-kanan img { 
    max-width: 80%; 
    height: auto; 
    border-radius: 10px; 
    margin-top: 15px; }

#video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -- Slide Konten -- */
#slide-container {
    width: 100%;
    height: 100%;
    position: relative;
}
.slide-item {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--warna-overlay);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.5); /* Border Emas */
    box-sizing: border-box;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.7s ease, transform 0.7s ease;
    visibility: hidden;
}
.slide-item.active {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}
.slide-item h2 {
    text-align: center;
    font-size: 2.0em;
    font-weight: bold;
    margin-top: 0;
    color: var(--warna-aksen-emas); /* Warna Emas */
}
.info-kas-slide { 
    display: flex; 
    justify-content: space-around; 
    text-align: center; 
    font-weight: bold;
    font-size: 1.5em; 
    margin-top: 50px; }
.info-kas-slide h3 { 
    font-size: 1.0em; 
    font-weight: bold;
    color: var(--warna-aksen-emas); 
    margin-top: 10px; }
.list-agenda-slide { 
    list-style: none; 
    padding: 0; 
    font-size: 1.5em;
    color:#ffffff;
    font-weight: bold;
}
.list-agenda-slide li { 
    padding: 15px; 
    border-bottom: 1px dashed rgba(212, 175, 55, 0.4); }
    
.list-agenda-slide small { 
    color: #F5B041; }
    
.custom-content {
    font-size: 1.8em;
    line-height: 1.6;
    text-align: center;
    margin-top: 40px;
    padding: 0 20px;
}

/* -- Jadwal Sholat -- */

#jadwal-sholat-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--warna-overlay);
    padding: 5px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.waktu-item {
    text-align: center;
    padding: 5px 10px; /* Tambahkan padding horizontal */
    /*border-top: 5px solid transparent;*/
    transition: background-color 0.3s ease; /* Efek hover halus */
    border-radius: 8px;
}
.waktu-item:not(:first-child) {
    border-left: 1px solid rgba(212, 175, 55, 0.3); /* Separator Emas Transparan */
}
/*.waktu-item:hover {*/
/*    background-color: rgba(255, 255, 255, 0.05);*/
/*    border-radius: 8px;*/
/*}*/
.waktu-item:hover {
    background-color: inherit; /* Mencegah warna berubah saat di-hover */
    transform: scale(1.03); /* Beri efek sedikit membesar saat di-hover */
    transition: transform 0.2s ease;
}

.waktu-item p {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
    color: var(--warna-aksen-emas); /* Warna Emas */
}
.waktu-item h4 {
    margin: 5px 0 0 0;
    font-size: 3.0em;
    font-family: var(--font-angka);
}
/* -- Tambahan Baru: Aksen Warna Unik Jadwal Sholat -- */
/* Subuh - Biru Fajar */
.waktu-item:nth-child(1) { background-color: #2471A3; }
.waktu-item:nth-child(1) p, .waktu-item:nth-child(1) h4 { color: #FFFFFF; }

/* Syuruq - Oranye Pudar */
.waktu-item:nth-child(2) { background-color: #F5B041; }
.waktu-item:nth-child(2) p, .waktu-item:nth-child(2) h4 { color: #FFFFFF; }

/* Dzuhur - Tosca Cerah */
.waktu-item:nth-child(3) { background-color: #48C9B0; }
.waktu-item:nth-child(3) p, .waktu-item:nth-child(3) h4 { color: #FFFFFF; }

/* Ashar - Oranye Terang */
.waktu-item:nth-child(4) { background-color: #F39C12; }
.waktu-item:nth-child(4) p, .waktu-item:nth-child(4) h4 { color: #FFFFFF; }

/* Maghrib - Ungu Senja */
.waktu-item:nth-child(5) { background-color: #A569BD; }
.waktu-item:nth-child(5) p, .waktu-item:nth-child(5) h4 { color: #FFFFFF; }

/* Isya - Biru Malam */
.waktu-item:nth-child(6) { background-color: #5DADE2; }
.waktu-item:nth-child(6) p, .waktu-item:nth-child(6) h4 { color: #FFFFFF; }


.footer {
    background-color: #000; /* Dibuat hitam pekat agar kontras */
    padding: 0 10px; /* Hapus padding atas-bawah yang tidak perlu */
}

/* Teks Berjalan (Running Text) */
.running-text-container {
    padding: 5px 0; /* Atur tinggi container running text */
    width: 100%;
    background-color: var(--warna-overlay);
    overflow: hidden;
    white-space: nowrap;
}

#running-text-content {
    display: inline-block;
    padding-left: 100%;
    font-size: 2.5em; /* Ukuran font disesuaikan agar tidak terlalu besar */
    font-weight: bold;
    color: #4ce03e; /* Menggunakan warna hijau terang sesuai kode Anda */
    animation: marquee 50s linear infinite;
}

@keyframes marquee {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Styling untuk watermark */
.footer-bottom {
    position: absolute;
    bottom: 5px;
    left: 10px;
    font-size: 15px;
    /* color: rgba(255, 255, 255, 0.4); */
    /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); */
    color: #ffffff
}

/* -- Notifikasi Overlay -- */
.notifikasi-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.95); /* Overlay Biru Tua Pekat */
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 9999;
}
.notifikasi-box h1 {
    font-size: 8em;
    margin: 0;
    text-transform: uppercase;
    color: var(--warna-aksen-emas);
}
.notifikasi-box p {
    font-size: 2em;
}
/* Tambahkan ini di akhir file style.css */
#konten-kanan {
    flex: 4;
    border-radius: 15px;
    background-color: var(--warna-overlay);
    border: 1px solid rgba(212, 175, 55, 0.5); /* Border Emas */
    padding: 30px;
    box-sizing: border-box;
    text-align: center; /* Konten rata tengah */
    overflow-y: auto; /* Bisa di-scroll jika kontennya panjang */
}

/* Gaya default untuk konten di dalamnya */
#konten-kanan h3 {
    font-size: 2em;
    color: var(--warna-aksen-emas);
    margin-top: 0;
}
#konten-kanan p {
    font-size: 1.4em;
    line-height: 1.6;
}
#konten-kanan img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    margin-top: 15px;
}
/* -- Gaya untuk Widget Petugas Jumat -- */
/* -- Gaya Final untuk Widget Petugas Jumat & Animasi Scroll -- */
.widget-petugas-jumat {
    display: flex;
    flex-direction: column; /* Mengatur tata letak vertikal */
    height: 100%;
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
}

.widget-petugas-jumat > small { /* Gaya untuk tanggal di atas */
    font-size: 1.2em;
    color: var(--warna-teks-sekunder);
    flex-shrink: 0; /* Mencegah tanggal ikut ter-scroll */
    margin-bottom: 15px;
}

/* Wrapper yang menjadi "panggung" scroll */
.widget-petugas-jumat .scroll-wrapper {
    flex-grow: 1; /* Mengisi sisa ruang yang tersedia */
    overflow: hidden; /* WAJIB: Menyembunyikan konten yang keluar */
    position: relative;
}

/* Konten yang akan bergerak di dalam wrapper */
.widget-petugas-jumat .scroll-content {
    position: absolute;
    width: 100%;
    animation: scrollUp 15s linear infinite; /* Durasi animasi 15 detik */
}

/* Animasi berhenti saat di-hover */
.widget-petugas-jumat .scroll-wrapper:hover .scroll-content {
    animation-play-state: paused;
}

.petugas-item {
    margin-bottom: 25px; /* Jarak antar petugas */
}
.petugas-item small {
    font-size: 1.3em;
}
.petugas-item p {
    font-size: 1.9em;
    font-weight: 600;
    margin: 5px 0 0 0;
}

/* Definisi animasi (pastikan hanya ada satu @keyframes scrollUp) */
@keyframes scrollUp {
    0%   { transform: translateY(0%); }
    20%  { transform: translateY(0%); } /* Diam di awal */
    80%  { transform: translateY(-100%); } /* Bergerak ke atas */
    100% { transform: translateY(-100%); } /* Diam di akhir */
}
/* -- Status Pemutar Murottal -- */
#murottal-status {
    position: fixed;
    bottom: 15px; /* Posisinya di kiri bawah */
    left: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--warna-aksen-emas);
    padding: 8px 15px;
    border-radius: 8px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.5s, transform 0.5s;
}
#murottal-status.hidden {
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
}
#murottal-status.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}
#murottal-status span {
    font-size: 0.9em;
    color: var(--warna-teks-sekunder);
}
#murottal-status strong {
    font-size: 1.1em;
    color: var(--warna-aksen-emas);
}
/* -- Gaya Baru untuk Deskripsi Agenda di Slide -- */
.agenda-deskripsi {
    font-size: 0.8em; /* Ukuran font lebih kecil dari info utama */
    font-style: italic;
    color: var(--warna-teks-sekunder);
    margin-top: 8px;  /* Beri sedikit jarak dari baris di atasnya */
    margin-bottom: 0;
    font-weight: normal; /* Pastikan tidak ikut tebal */
    line-height: 1.4;
}