.container-barang {
    width: 90%;
    margin: 40px auto;
    font-family: 'Poppins', sans-serif;
}

.judul {
    text-align: center;
    font-weight: 700;
    color: #1a3365;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* ====== MENU BARANG ====== */
.menu-barang {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.btn-menu {
    padding: 10px 25px;
    border-radius: 8px;
    border: 1.5px solid #d0d7e3;
    background-color: #f8f9fb;
    color: #001f3f;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* Animasi hover */
.btn-menu::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(28, 63, 119, 0.1);
    transition: left 0.3s ease;
    border-radius: 8px;
}

.btn-menu:hover::after {
    left: 0;
}

.btn-menu:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(28, 63, 119, 0.2);
}

.btn-menu:active {
    transform: scale(0.96);
    box-shadow: 0 2px 5px rgba(28, 63, 119, 0.15);
}

.btn-menu.active {
    background-color: #1c3f77;
    color: #fff;
    border-color: #1c3f77;
    box-shadow: 0 6px 12px rgba(28, 63, 119, 0.25);
    transform: scale(1.03);
}


.tambah-barang {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.btn-tambah {
    background: #1a3365;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-tambah:hover {
    background: #152b55;
}

/* ====== FILTER SECTION ====== */
.filter-barang {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.search-bar {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-bar input {
    width: 100%;
    padding: 10px 35px 10px 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #f5f7fa;
    font-size: 14px;
}

.search-bar i {
    position: absolute;
    right: 10px;
    top: 10px;
    color: #1a3365;
}

.filter-barang select {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #f5f7fa;
    flex: 1;
    min-width: 150px;
}

/* ====== TABLE SECTION ====== */
.table-barang table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.table-barang th {
    background: #f5f7fa;
    text-transform: uppercase;
    font-size: 13px;
    color: #333;
    padding: 12px;
    text-align: left;
}

.table-barang td {
    border-top: 1px solid #eee;
    padding: 12px;
    font-size: 14px;
}

.btn-filter {
    background-color: #1a3365;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 16px;
}

.btn-filter:hover {
     background: #152b55;
}

.btn-filter i {
    font-size: 18px;
}

#qrContainer svg {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin: auto;
    display: block;
}
.slider-container {
    display: flex;
    gap: 6px;
    overflow-x: auto;
}
.slider-img {
    border-radius: 8px;
    cursor: pointer;
}

#gambarCarousel {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Rasio 1:1 */
.popup-image {
    width: 70vh;
    height: 70vh;
    max-width: 90vw;
    max-height: 90vw;

    object-fit: contain; /* penting agar tidak terpotong */
    background: #fff;
    border-radius: 10px;
}




