.container-subkategori-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-subkategori {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

/* ====== 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;
}

/* ====== MODAL CONTENT ====== */
.modal-content {
    background: #fff;
    border-radius: 15px;
    padding: 30px 40px;
    width: 100%;
    max-width: 600px; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
    margin: 0 20px; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ====== TITLE ====== */
.modal-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #1c3f77;
    margin-bottom: 20px;
}

/* ====== FORM ====== */
.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content label {
    font-weight: 600;
    color: #1c3f77;
    font-size: 14px;
}

.modal-content input, .modal-content select {
    padding: 10px;
    border: 1.5px solid #d0d7e3;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background-color: #fff;
}

.modal-content input:focus, .modal-content select:focus {
    border-color: #1c3f77;
    box-shadow: 0 0 5px rgba(28, 63, 119, 0.2);
}

/* ====== BUTTONS ====== */
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.btn-cancel {
    background: #d32f2f;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn-submit {
    background: #1c3f77;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn-cancel:hover {
    background: #b71c1c;
}

.btn-submit:hover {
    background: #15315b;
}
