/* Umum */
.jadwal-sholat {
    max-width: 1080px;
    margin: 20px auto;
    font-family: 'Roboto', sans-serif;
    border-radius: 10px;
    overflow: hidden;
    background: #f9f9f9;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.jadwal-sholat h3 {
    text-align: center;
    background: #28a745;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.jadwal-sholat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    background: #e8f5e9;
}

.waktu-sholat {
    font-size: 18px;
    font-weight: bold;
    color: #2d6a4f;
}

.select-kota {
    position: relative;
    width: 250px;
}

.select-kota select {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill=%23333 xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'><path d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px top 50%;
    background-size: 16px;
    padding-right: 30px;
}

.jadwal-sholat-actions {
    text-align: right;
    margin-bottom: 10px;
}

.jadwal-sholat-actions a {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    color: white;
    transition: background-color 0.2s ease-in-out;
}

.share-whatsapp {
    background: #25D366;
}

.share-facebook {
    background: #1877F2;
}

.share-twitter {
    background: #1DA1F2;
}

.download-pdf {
    background: #6c757d;
}

.share-whatsapp:hover {
    background: #128C7E;
}

.share-facebook:hover {
    background: #0D47A1;
}

.share-twitter:hover {
    background: #09709B;
}

.download-pdf:hover {
    background: #495057;
}

/* Tabel */
.jadwal-sholat table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
    border-radius: 10px;
    overflow: hidden;
}

.jadwal-sholat th,
.jadwal-sholat td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.jadwal-sholat th {
    background: #2d6a4f;
    color: white;
    font-weight: bold;
}

.jadwal-sholat tr:nth-child(even) {
    background: #e9f5e9;
}

.jadwal-sholat tr:hover {
    background: #d4edda;
    transition: background-color 0.2s ease-in-out;
}

/* Responsif */
@media (max-width: 768px) {
    .jadwal-sholat {
        margin: 10px;
        padding: 10px;
    }

    .jadwal-sholat h3 {
        font-size: 1.2em;
        padding: 8px;
    }

    .jadwal-sholat-header {
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
    }

    .waktu-sholat {
        margin-bottom: 10px;
        text-align: center;
        font-size: 16px;
    }

    .select-kota {
        width: 100%;
    }

    .select-kota select {
        font-size: 12px;
        padding: 6px;
    }

    .jadwal-sholat-actions {
        text-align: center;
    }

    .jadwal-sholat-actions a {
        padding: 6px 10px;
        font-size: 12px;
        margin: 5px;
    }

    /* Tabel Responsif (Scroll Horizontal) */
    .jadwal-sholat table {
        display: block;
        width: 100%; /* Lebar tabel harus 100% dari parent */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Lebih halus di iOS */
        border: 0;
    }

    .jadwal-sholat thead {
        display: table; /* Mengembalikan thead ke tampilan tabel */
        width: 100%; /* Lebar header harus 100% */
    }

    .jadwal-sholat tbody {
      display: table; /* Menambahkan style table */
      width: 100%; /* Lebar body tabel harus 100% */
    }

    .jadwal-sholat th,
    .jadwal-sholat td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: center;
        white-space: nowrap; /* Penting */
    }

    /* Menambahkan warna latar belakang pada <th>Tanggal</th> di tampilan responsif */
    .jadwal-sholat th:first-child {
        background-color: #2d6a4f; /* Warna latar belakang yang diinginkan */
        color: white; /* Warna teks agar tetap terlihat */
    }

    .jadwal-sholat th {
        /* Header tetap di atas saat di-scroll vertikal */
        background-color: #2d6a4f;
        color: white;
    }
}

/* Gaya Umum - Awalan: js- (jadwal sholat) */
.js-body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f2f2f2; /* Sesuaikan dengan latar belakang Anda */
}

.js-container {
    max-width: 1080px; /* Sesuaikan dengan lebar konten Anda */
    margin: 10px auto;
    background-color: #fff;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Gaya Dropdown - Awalan: js-dropdown- */
.js-dropdown-container {
    position: relative;
    width: 100%; /* Lebar penuh dalam container */
    max-width: 400px; /* Lebar maksimum untuk dropdown */
    margin: 10px auto; /* Tengahkan dropdown */
}

.js-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: none;
}

.js-dropdown-list.js-dropdown-show {
    display: block;
}

.js-dropdown-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px; /* Sesuaikan dengan jumlah item Anda */
    overflow-y: auto;
}

.js-dropdown-list li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
}

.js-dropdown-list li a:hover {
    background-color: #f0f0f0;
}

.js-dropdown-button {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #2d6a4f;
    cursor: pointer;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
    font-size: 16px; /* Ukuran font yang lebih besar */
}

.js-dropdown-search {
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 1px solid #ccc;
    outline: none;
    box-sizing: border-box;
    font-size: 14px; /* Ukuran font search bar */
}