/* Penambahan untuk style.css */

* {
    box-sizing: border-box; /* Memastikan padding tidak merusak ukuran elemen */
    -webkit-tap-highlight-color: transparent; /* Menghilangkan kotak biru saat tombol di-tap di Android/iOS */
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

#searchInput {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 300px;
    max-width: 100%;
}

.btn-filter {
    padding: 8px 15px;
    border: none;
    background: #ddd;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-filter.active {
    background: #2c3e50;
    color: white;
}

.table-responsive {
    overflow-x: auto; /* Agar tabel bisa di-scroll ke samping di HP */
}

.gamelan-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.gamelan-table th, .gamelan-table td {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.gamelan-table th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
}

.btn-view {
    color: #8b4513;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #8b4513;
    padding: 4px 8px; /* Sedikit lebih kecil agar muat banyak */
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap; /* Teks tidak pindah baris */
    transition: 0.2s;
}

.btn-view:hover {
    background: #8b4513;
    color: white;
}

.btn-group {
    display: flex;
    gap: 5px; /* Jarak antar tombol */
    flex-wrap: wrap; /* Agar tombol turun ke bawah jika layar sempit */
}

/* Style untuk Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    padding-top: 50px;
}

/* Container Carousel */
.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Efek magnet seperti IG */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    max-width: 90%;
    margin: auto;
    height: 80vh;
}

.carousel-container img {
    flex: 0 0 100%; /* Satu gambar memenuhi layar */
    scroll-snap-align: center;
    object-fit: contain;
    padding: 10px;
}

/* Indikator Geser */
.carousel-hint {
    text-align: center;
    color: white;
    margin-top: 10px;
    font-size: 0.8rem;
}

/* Tombol Close */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Hilangkan Scrollbar agar bersih */
.carousel-container::-webkit-scrollbar {
    display: none;
}