/* --- PALET WARNA & TIPOGRAFI --- */
:root {
    --deep-navy: #003354;
    --light-sky: #CBEFFF;
    --teal-green: #148F87;
    --warm-yellow: #FFB606;
    --charcoal-gray: #4A5568;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --primary-blue: #0A2240;
    --border-grey: #E2E8F0;
    --text-muted: #64748B;
    --star-gold: #F59E0B;
    --card-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #E2E8F0;
    color: var(--charcoal-gray);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    line-height: 1.6;
}

/* Container HP (Mobile Viewport) */
.app-container {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-light);
    position: relative;
    overflow-x: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    min-height: 100vh;
}

/* --- QURAN VIEW STYLES --- */
#quran-view {
    padding-bottom: 30px;
    background-color: var(--bg-light);
    min-height: 100vh;
}

.app-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-light);
}

.header-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--deep-navy);
    flex-grow: 1;
    text-align: left;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--deep-navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-bar {
    display: flex;
    border-bottom: 1px solid var(--border-grey);
    background-color: var(--bg-light);
}

.tab-item {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
}

.tab-item.active {
    color: var(--teal-green);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 15%;
    width: 70%;
    height: 3px;
    background-color: var(--teal-green);
    border-radius: 3px 3px 0 0;
}

.content-area {
    padding: 16px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.list-item {
    display: flex;
    align-items: center;
    background-color: var(--white);
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    border: 1px solid var(--border-grey);
    box-shadow: var(--card-shadow);
    transition: background 0.2s;
}

.list-item:hover {
    background-color: var(--bg-light);
}

.number-badge {
    width: 36px;
    height: 36px;
    background-color: var(--light-sky);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--deep-navy);
    margin-right: 14px;
    flex-shrink: 0;
}

.meta-info {
    flex-grow: 1;
}

.surah-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--deep-navy);
}

.surah-details {
    font-size: 12px;
    color: var(--charcoal-gray);
    margin-top: 2px;
}

.arabic-text {
    font-family: 'Amiri', serif;
    font-size: 20px;
    font-weight: bold;
    color: var(--teal-green);
    direction: rtl;
}

/* --- DETAIL SCREEN MUSHAF --- */
.detail-screen {
    position: fixed; /* Ubah ke fixed agar mengunci viewport layar mobile */
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100vh; /* Memenuhi tinggi layar penuh */
    background-color: var(--bg-light);
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.detail-screen.active {
    display: flex;
}

.surah-banner {
    background-color: var(--deep-navy);
    color: var(--white);
    padding: 20px;
    border-radius: 16px;
    margin: 16px 16px 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--card-shadow);
}
.banner-info p {
    font-size: 13px;
    color: var(--light-sky);
    margin-bottom: 4px;
}

.banner-info h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--warm-yellow);
    margin-bottom: 8px;
}

.banner-arabic {
    font-family: 'Amiri', serif;
    font-size: 32px;
    color: var(--white);
}

.bismillah-card {
    background-color: var(--white);
    text-align: center;
    padding: 16px;
    margin: 0 16px 16px 16px;
    border-radius: 12px;
    font-family: 'Amiri', serif;
    font-size: 24px;
    color: var(--primary-blue);
    border: 1px solid var(--border-grey);
    box-shadow: var(--card-shadow);
}

.mushaf-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 0 95px 0; /* Beri padding bawah agar tidak tertutup bottom-nav */
    -webkit-overflow-scrolling: touch;
}

.ayat-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-grey);
    box-shadow: var(--card-shadow);
}

.ayat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ayat-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--star-gold);
}

.ayat-arabic {
    font-family: 'Amiri', serif;
    font-size: 26px;
    color: var(--primary-blue);
    text-align: right;
    direction: rtl;
    line-height: 2.2;
    margin-bottom: 12px;
}

.ayat-latin {
    font-size: 13px;
    color: var(--teal-green);
    font-style: italic;
    margin-bottom: 8px;
    line-height: 1.5;
}

.ayat-terjemahan {
    font-size: 13px;
    color: var(--charcoal-gray);
    line-height: 1.6;
}

.loading {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 14px;
}

/* --- BOTTOM NAVIGATION BAR FIXED STYLES --- */
/* --- BOTTOM NAVIGATION BAR (MENYESUAIKAN INDEX.HTML) --- */
 .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 480px;
            height: 75px;
            background-color: var(--white);
            border-top: 1px solid rgba(0, 51, 84, 0.08);
            display: flex;
            justify-content: space-around;
            align-items: center;
            z-index: 999;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
        }
        .nav-link {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: #94A3B8;
            font-size: 11px;
            font-weight: 600;
            gap: 4px;
            width: 20%;
        }

        .nav-link.active { color: var(--deep-navy); }
        .nav-link i { font-size: 20px; }


/* Jaga agar list alquran bagian paling bawah tidak terpotong navbar */
#quran-view {
    padding-bottom: 95px !important; 

#mushaf-ayat-dinamis {
    padding: 0 16px;
}
}

