* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body, html { min-height: 100vh; overflow-x: hidden; color: white; background-color: #000; }

body { background-image: url('ABA.png'); background-size: cover; background-position: center center; background-attachment: fixed; background-repeat: no-repeat; }

.overlay { min-height: 100vh; background: rgba(0, 10, 20, 0.6); display: flex; flex-direction: column; padding: 20px; padding-bottom: 110px; position: relative; }
.blue { color: #00d4ff !important; font-weight: bold; text-shadow: 0 0 10px rgba(0, 212, 255, 0.5); }

header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 40px; }
#btn-fullscreen, #btn-settings { background: transparent; border: 1px solid #00d4ff; color: #00d4ff; padding: 3px 8px; border-radius: 5px; font-size: 0.6rem; cursor: pointer; font-weight: bold; margin-top: 5px; display: inline-block; margin-right: 5px;}
#btn-settings { border-color: #ffeb3b; color: #ffeb3b; }

.search-box { display: flex; gap: 5px; background: rgba(255,255,255,0.1); padding: 5px; border-radius: 10px; border: 1px solid rgba(0, 212, 255, 0.3); }
#input-kota { background: transparent; border: none; color: white; padding: 5px 10px; font-size: 0.8rem; outline: none; width: 140px; }
#btn-cari { background: #00d4ff; border: none; color: #001a33; padding: 5px 15px; border-radius: 7px; font-weight: bold; cursor: pointer; }

#tanggal-container { text-align: right; }
.tgl-besar { font-size: 1.1rem; font-weight: bold; }
.tgl-item { font-size: 0.85rem; display: block; margin-top: 2px; }

.countdown-card { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(15px); padding: 25px; border-radius: 30px; border: 1px solid rgba(0, 212, 255, 0.3); text-align: center; margin: 20px auto; width: 100%; max-width: 600px; }
#timer { font-size: 3.5rem; font-weight: bold; letter-spacing: 2px; }

.info-tambahan { font-size: 0.9rem; opacity: 0.9; margin: 10px 0; }
.hari-raya-box { background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.4); padding: 6px 18px; border-radius: 50px; display: inline-block; margin-top: 10px; }

.progress-bar { background: rgba(255,255,255,0.1); height: 8px; border-radius: 10px; margin-top: 15px; overflow: hidden; }
.progress { width: 0%; background: #00d4ff; height: 100%; transition: width 1s linear; }

/* TOMBOL AKSI (Kalender & Kiblat) */
.action-buttons { display: flex; justify-content: center; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.btn-action { background: rgba(0, 212, 255, 0.15); border: 1px solid #00d4ff; color: #00d4ff; padding: 10px 20px; border-radius: 50px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.btn-action:hover { background: #00d4ff; color: #000; }
.btn-kiblat { border-color: #ffeb3b; color: #ffeb3b; background: rgba(255, 235, 59, 0.1); }
.btn-kiblat:hover { background: #ffeb3b; color: #000; }

.btn-stop { background: rgba(255, 0, 0, 0.2); border: 1px solid #ff4d4d; color: #ff4d4d; padding: 10px 25px; border-radius: 50px; cursor: pointer; margin-top: 10px; font-weight: bold; margin-left: 5px; }
.btn-tutup { background: #ff4d4d; color: white; border: none; padding: 10px 25px; border-radius: 5px; cursor: pointer; font-weight: bold; margin-top: 20px; width: 100%; }

.jadwal-grid { display: flex; justify-content: center; gap: 10px; margin-top: auto; flex-wrap: wrap; margin-bottom: 20px; }
.card-glass { background: rgba(255, 255, 255, 0.07); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 15px; padding: 15px; width: 160px; text-align: center; transition: 0.3s; }
.card-glass.active { border: 2px solid #00d4ff; background: rgba(0, 212, 255, 0.1); transform: translateY(-5px); }

.audio-control { display: flex; gap: 5px; margin-top: 8px; justify-content: center; align-items: center; }
.pilih-adzan { background: rgba(0, 0, 0, 0.5); border: 1px solid #00d4ff; color: #00d4ff; border-radius: 5px; padding: 4px; font-size: 0.75rem; outline: none; cursor: pointer; }
.pilih-adzan option { background: #001a33; color: white; }
.btn-play { background: #00d4ff; color: #000; border: none; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; font-size: 0.7rem; font-weight: bold; display: flex; justify-content: center; align-items: center; }

.running-text { position: absolute; bottom: 45px; left: 0; width: 100%; background: rgba(0, 212, 255, 0.15); color: #00d4ff; padding: 8px 0; font-size: 0.95rem; font-weight: bold; border-top: 1px solid rgba(0, 212, 255, 0.4); overflow: hidden; white-space: nowrap; }
.teks-berjalan { display: inline-block; animation: jalanTerus 35s linear infinite; }
@keyframes jalanTerus { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

.app-footer { position: absolute; bottom: 0; left: 0; width: 100%; text-align: center; padding: 12px 0; font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); background: rgba(0, 5, 15, 0.9); z-index: 50; }

#modal-kalender, #modal-settings, #modal-kiblat { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal-content { background: #0a0f1a; border: 1px solid #00d4ff; padding: 25px; border-radius: 20px; width: 95%; max-width: 850px; text-align: center; }

/* DESAIN KOMPAS KIBLAT */
.kompas-container { display: flex; justify-content: center; margin: 20px 0; }
.kompas-bulat { width: 220px; height: 220px; border: 3px solid #ffeb3b; border-radius: 50%; position: relative; background: rgba(0, 0, 0, 0.6); box-shadow: 0 0 20px rgba(255, 235, 59, 0.2); }
.arah { position: absolute; font-weight: bold; color: white; font-size: 1.2rem; }
.jarum-kiblat { position: absolute; width: 4px; height: 100%; left: 50%; margin-left: -2px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; transform-origin: center center; transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1); }
.jarum-icon { font-size: 2.5rem; transform: translateY(-15px); text-shadow: 0 0 15px #ffeb3b; }
.jarum-garis { width: 4px; height: 40%; background: #ffeb3b; box-shadow: 0 0 10px #ffeb3b; }

.table-wrapper { overflow-x: auto; margin-top: 15px; max-height: 400px; border-radius: 10px; }
.table-kalender { width: 100%; border-collapse: collapse; color: white; font-size: 0.85rem; min-width: 650px; }
.table-kalender th { background: #00d4ff; color: #000; padding: 12px; position: sticky; top: 0; }
.table-kalender td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.hari-ini { background: rgba(0, 212, 255, 0.2) !important; border-left: 5px solid #00d4ff; font-weight: bold; }

.setting-item { background: rgba(255,255,255,0.05); padding: 20px; border-radius: 10px; border: 1px solid rgba(0,212,255,0.2); margin-top: 15px; text-align: center; }
.input-waktu { background: rgba(0,0,0,0.5); border: 1px solid #00d4ff; color: white; padding: 8px 10px; border-radius: 5px; outline: none; margin-top: 5px; font-size: 1rem; }
.btn-simulasi { background: #00d4ff; color: #000; border: none; padding: 9px 15px; border-radius: 5px; font-weight: bold; cursor: pointer; margin-left: 5px; }

@media (max-width: 768px) { header { display: flex; flex-direction: column; text-align: center; gap: 10px; } #tanggal-container { text-align: center; } #timer { font-size: 2.8rem; } .card-glass { width: calc(50% - 10px); } }