/* =========================================
   TEMA 8 (LUXURY ANALOG - OBSIDIAN & GOLD)
   Desain Premium Mewah Elegan
   ========================================= */

/* 1. EFEK GELAP PADA BACKGROUND (Agar Warna Emas Menyala) */
body.theme-8 .overlay {
    background: linear-gradient(135deg, rgba(10, 15, 26, 0.95) 0%, rgba(2, 6, 23, 0.98) 100%) !important;
    z-index: -1;
}

body.theme-8 .content {
    padding: 2vh 2vw 8vh 2vw !important;
}

/* 2. HEADER MEWAH (Kaca Gelap dengan Lis Emas) */
body.theme-8 .top-bar-modern {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(10, 15, 26, 0.95)) !important;
    border-bottom: 3px solid #d4af37 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 -1px 5px rgba(212, 175, 55, 0.3) !important;
    border-radius: 0 0 20px 20px !important;
}

body.theme-8 #masjid-name {
    color: #e2e8f0 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 3px;
}

body.theme-8 #masjid-address { color: #94a3b8 !important; }

body.theme-8 #current-date, body.theme-8 #hijri-date {
    color: #d4af37 !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}

body.theme-8 .header-divider {
    background: linear-gradient(to bottom, transparent, #d4af37, transparent) !important;
    width: 1px;
}

/* 3. JAM DIGITAL & ANALOG BERDAMPINGAN (Efek 3D Bezel & Jarum Melayang) */

/* Membuat container menjadi sejajar (kiri-kanan) */
body.theme-8 .clock-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6vw !important; /* Mengatur jarak antara jam digital dan analog */
}

/* Memunculkan jam digital dan menyesuaikan warnanya agar senada dengan tema emas */
body.theme-8 #digital-clock {
    display: block !important;
    font-size: clamp(6rem, 14vw, 16rem) !important; /* Sedikit dikecilkan agar seimbang dengan analog */
    color: #d4af37 !important; /* Warna emas */
    text-shadow: 3px 5px 15px rgba(0,0,0,0.9) !important;
}

body.theme-8 .analog-clock {
    display: block !important;
    margin: 0 !important; /* Direset karena posisi sudah diatur oleh flexbox container */
}

.analog-clock {
    display: none;
    position: relative;
    width: 42vh; /* Sedikit disesuaikan ukurannya agar berdampingan rapi */
    height: 42vh;
    border-radius: 50%;
    /* Wajah jam berwarna gelap radial */
    background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
    /* Bezel 3D Lapis 3 (Dalam Gelap, Tengah Emas, Luar Glowing) */
    box-shadow:
        0 0 40px rgba(0,0,0,0.9),
        inset 0 0 30px rgba(0,0,0,0.9),
        0 0 0 8px #0f172a,
        0 0 0 12px #d4af37,
        0 0 20px 12px rgba(212, 175, 55, 0.3);
}

/* Base style jarum jam */
.analog-clock .hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    border-radius: 50px;
    z-index: 5;
    /* Efek melayang di atas wajah jam */
    box-shadow: 2px 5px 10px rgba(0,0,0,0.7);
    /* Transisi agar jarum terlihat smooth seperti mesin jam mahal */
    transition: transform 0.05s cubic-bezier(0.4, 2.08, 0.55, 0.44);
}

/* Jarum Jam (Silver Putih) */
.analog-clock .hour-hand {
    width: 8px;
    height: 28%;
    background: linear-gradient(to top, #94a3b8, #ffffff);
    margin-left: -4px;
}

/* Jarum Menit (Emas Mengkilap) */
.analog-clock .minute-hand {
    width: 5px;
    height: 40%;
    background: linear-gradient(to top, #d4af37, #fde047);
    margin-left: -2.5px;
}

/* Jarum Detik (Merah Tajam dengan Ekor) */
.analog-clock .second-hand {
    width: 2px;
    height: 45%;
    background: #ef4444;
    margin-left: -1px;
    z-index: 6;
}
.analog-clock .second-hand::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: 0;
    width: 100%;
    height: 15%;
    background: #ef4444;
    border-radius: 50px;
}

/* Titik Poros Tengah (3D Metallic) */
.analog-clock .center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    background: radial-gradient(circle, #fde047 0%, #d4af37 60%, #854d0e 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.8);
    border: 2px solid #0f172a;
}

/* Font Angka Jam Klasik Mewah */
.analog-clock .numbers {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.analog-clock .numbers span {
    position: absolute;
    font-size: clamp(1.2rem, 3vh, 2.5rem);
    font-weight: bold;
    color: #d4af37;
    transform: translate(-50%, -50%);
    text-shadow: 1px 2px 5px rgba(0,0,0,0.8);
    font-family: 'Times New Roman', Times, serif;
}

/* Posisi presisi angka di wajah jam */
.analog-clock .numbers span:nth-child(1) { top: 12%; left: 50%; } /* 12 */
.analog-clock .numbers span:nth-child(2) { top: 18%; left: 69%; } /* 1 */
.analog-clock .numbers span:nth-child(3) { top: 31%; left: 82%; } /* 2 */
.analog-clock .numbers span:nth-child(4) { top: 50%; left: 88%; } /* 3 */
.analog-clock .numbers span:nth-child(5) { top: 69%; left: 82%; } /* 4 */
.analog-clock .numbers span:nth-child(6) { top: 82%; left: 69%; } /* 5 */
.analog-clock .numbers span:nth-child(7) { top: 88%; left: 50%; } /* 6 */
.analog-clock .numbers span:nth-child(8) { top: 82%; left: 31%; } /* 7 */
.analog-clock .numbers span:nth-child(9) { top: 69%; left: 18%; } /* 8 */
.analog-clock .numbers span:nth-child(10) { top: 50%; left: 12%; } /* 9 */
.analog-clock .numbers span:nth-child(11) { top: 31%; left: 18%; } /* 10 */
.analog-clock .numbers span:nth-child(12) { top: 18%; left: 31%; } /* 11 */


/* 4. GRID JADWAL SHALAT (Smooth & Focus) */
body.theme-8 .prayer-grid {
    background: rgba(10, 15, 26, 0.85) !important;
    border: none !important;
    border-top: 2px solid #d4af37 !important;
    border-bottom: 2px solid #d4af37 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7) !important;
    border-radius: 15px !important;
    backdrop-filter: blur(10px);
    padding: 5px 0 !important;
}

body.theme-8 .prayer-card {
    border-right: 1px dashed rgba(212, 175, 55, 0.3) !important;
    transition: all 0.3s ease;
}
body.theme-8 .prayer-card:last-child { border-right: none !important; }

body.theme-8 .prayer-card h4 {
    color: #cbd5e1 !important;
    letter-spacing: 1px;
    font-weight: 600;
}
body.theme-8 .prayer-card p {
    color: #f8fafc !important;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.8);
}

/* Penanda Shalat Aktif yang Sangat Menonjol */
body.theme-8 .active-prayer {
    background: linear-gradient(135deg, #d4af37 0%, #b48a1c 100%) !important;
    border-radius: 10px;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    border: 1px solid #fde047 !important;
    margin: 0 5px;
}

body.theme-8 .active-prayer h4 { color: #020617 !important; font-weight: 900; }
body.theme-8 .active-prayer p { color: #020617 !important; font-weight: 900; text-shadow: none; }
body.theme-8 .active-prayer .countdown { color: #854d0e !important; text-shadow: none; font-size: clamp(1rem, 1.5vw, 1.5rem); }


/* 5. SLIDE INFORMASI KEUANGAN & INFO LAINNYA */
body.theme-8 #slide-2 > div,
body.theme-8 #slide-3 > div,
body.theme-8 #slide-4 > div {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(2, 6, 23, 0.95) 100%) !important;
    border: none !important;
    border-top: 4px solid #d4af37 !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8) !important;
    color: #f8fafc !important;
    border-radius: 15px;
}

body.theme-8 #slide-2 h2, body.theme-8 #slide-3 h2, body.theme-8 #slide-4 h2 {
    color: #d4af37 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Penyesuaian Warna Teks Di Laporan Keuangan (Untuk Latar Gelap) */
body.theme-8 table td, body.theme-8 table th { border-bottom-color: rgba(212, 175, 55, 0.2) !important; }
body.theme-8 #kas-awal { color: #cbd5e1 !important; }
body.theme-8 #kas-masuk { color: #34d399 !important; } /* Hijau terang */
body.theme-8 #kas-keluar { color: #f87171 !important; } /* Merah terang */
body.theme-8 #kas-total { color: #d4af37 !important; font-weight: bold; } /* Emas */

body.theme-8 li, body.theme-8 #nama-khatib, body.theme-8 #nama-imam, body.theme-8 #nama-muadzin, body.theme-8 strong {
    color: #e2e8f0 !important;
}


/* 6. FOOTER RUNNING TEXT */
body.theme-8 footer {
    background: linear-gradient(to right, #020617, #0f172a, #020617) !important;
    border-top: 3px solid #d4af37 !important;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.8);
}

body.theme-8 #running-text {
    color: #d4af37 !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}