/* Container Galeri */
.galeri-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Memberi jarak antar elemen */
    padding: 20px;
}

/* Kotak Galeri */
.galeri-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    width: 250px; /* Ukuran tetap */
    text-align: center;
    margin: 10px; /* Jarak antar item */
}

/* Nama Kategori */
.galeri-item h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Tombol */
.galeri-item .btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
}

.galeri-item .btn:hover {
    background-color: #0056b3;
}

/* === Tampilan Modal Terang, Halus, dan Lembut === */
.modal-content {
    background: #ffffff;
    color: #333;
    border-radius: 12px;
    border: none;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.4s ease-in-out;
}

/* === Header Modal === */
.modal-header {
    background: #f8f9fa;
    color: #333;
    border-bottom: 1px solid #ddd;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.modal-header h5 {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Body Modal === */
.modal-body {
    padding: 20px;
}

/* === Footer Modal === */
.modal-footer {
    border-top: 1px solid #ddd;
    background: #f8f9fa;
}

/* === Input & File Upload === */
.modal input[type="text"],
.modal input[type="file"] {
    background: #f2f2f2;
    border: 1px solid #ccc;
    color: #333;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.05),
                inset -3px -3px 8px rgba(255, 255, 255, 0.6);
}

.modal input[type="text"]:focus,
.modal input[type="file"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0px 0px 10px rgba(0, 123, 255, 0.3);
}

/* === Tombol dengan Efek Halus === */
.modal-footer .btn {
    font-weight: bold;
    text-transform: uppercase;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Tombol Batal */
.modal-footer .btn-secondary {
    background: #e0e0e0;
    border: none;
    color: #333;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.modal-footer .btn-secondary:hover {
    background: #d6d6d6;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
}

/* Tombol Simpan */
.modal-footer .btn-primary {
    background: #007bff;
    border: none;
    color: #fff;
    box-shadow: 0px 4px 10px rgba(0, 123, 255, 0.3);
}

.modal-footer .btn-primary:hover {
    background: #0056b3;
    box-shadow: 0px 0px 12px rgba(0, 123, 255, 0.4);
}

/* === Animasi Halus === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Style Global untuk Tombol === */
.btn-custom {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: none;
    outline: none;
}

/* === Warna Default (Biru) === */
.btn-primary-custom {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 2px 2px 8px rgba(0, 123, 255, 0.3);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #0056b3, #004099);
    box-shadow: 0px 0px 12px rgba(0, 123, 255, 0.5);
}

/* === Warna Sekunder (Abu-abu) === */
.btn-secondary-custom {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    box-shadow: 2px 2px 8px rgba(108, 117, 125, 0.3);
}

.btn-secondary-custom:hover {
    background: linear-gradient(135deg, #495057, #343a40);
    box-shadow: 0px 0px 12px rgba(108, 117, 125, 0.5);
}

/* === Warna Sukses (Hijau) === */
.btn-success-custom {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    box-shadow: 2px 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-success-custom:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    box-shadow: 0px 0px 12px rgba(40, 167, 69, 0.5);
}

/* === Warna Bahaya (Merah) === */
.btn-danger-custom {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 2px 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-danger-custom:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    box-shadow: 0px 0px 12px rgba(220, 53, 69, 0.5);
}

/* === Tombol Download (Kuning) === */
.btn-warning-custom {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: black;
    box-shadow: 2px 2px 8px rgba(255, 193, 7, 0.3);
}

.btn-warning-custom:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
    box-shadow: 0px 0px 12px rgba(255, 193, 7, 0.5);
}

/* === Ukuran Tombol yang Lebih Kecil === */
.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
}

/* === Responsif: Tombol di Mobile Lebih Besar === */
@media (max-width: 768px) {
    .btn-custom {
        font-size: 13px;
        padding: 8px 14px;
        border-radius: 10px;
    }
}

/* === Style Global untuk Tabel === */
.table-container {
    width: 100%;
    overflow-x: auto; /* Responsif agar bisa di-scroll di layar kecil */
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

/* === Header Tabel === */
thead {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

thead th {
    padding: 12px;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
}

/* === Isi Tabel === */
tbody tr {
    transition: all 0.3s ease;
}

tbody td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

/* === Efek Hover pada Baris Tabel === */
tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.02);
    transition: all 0.2s ease-in-out;
}

/* === Tombol dalam Tabel === */
.btn-table {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.btn-view {
    background: #007bff;
    color: white;
}

.btn-edit {
    background: #28a745;
    color: white;
}

.btn-download {
    background: #ffc107;
    color: black;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

/* === Efek Hover pada Tombol === */
.btn-table:hover {
    opacity: 0.8;
}

/* ======== RESPONSIVE TABEL ======== */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto; /* Aktifkan horizontal scroll di layar kecil */
        display: block;
        white-space: nowrap;
    }

    table {
        width: 100%;
        min-width: 600px; /* Jaga ukuran tabel tetap besar */
    }

    th, td {
        padding: 10px;
        font-size: 14px;
    }
}

#pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.page-link {
    padding: 8px 12px;
    margin: 0 5px;
    background: #f8f9fa;
    color: #007bff;
    border-radius: 5px;
    text-decoration: none;
    border: 1px solid #007bff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-link:hover {
    background: #007bff;
    color: white;
}

.page-link.active {
    background: #007bff;
    color: white;
    font-weight: bold;
}

