*{ 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.body {
    background : #f4f7fb;
    display: flex;

}

.container {
    display: contents;
}
.sidebar {
    width: 250px;
    height: 100vh;
    background: linear-gradient(180deg, #0f172a, #1e3a5f);
    color: white;
    padding: 25px 20px;
    position: fixed;
    transition: 0.3s;
    left: 0;
    top: 0;
}

.sidebar.close {
    width: 70px;
    padding: 0;
    overflow: hidden;
    left: -230px
}

.logo{
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 35px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li { 
    margin: 15px 0;
}

.sidebar ul li a { 
    text-decoration: none;
    color: white;
    padding: 10px;
    display: block;
    border-radius: 6px;
    transition: 0.3s;
}

.sidebar ul li a:hover {
    background: #3f5c7a;
}

.menu-group {
    margin-bottom: 15px;
}

.menu-title {
    font-size: 14px;
    color: #696891;
    margin-bottom: 5px;
    font-weight: bolder;
}

.menu-item {
    display: block;
    padding: 4px 10px;
    font-size: 14px;
    color: white;
    text-decoration: none;
    margin-bottom: 2px;
    line-height: 0.25;
}

.menu-item:hover {
    background: #1e293b;
    border-radius: 6px;
    padding-left: 12px;
    transition: 0.2s;
}

.menu-item.active {
    background: #0f172a;
    border-left: 4px solid #b8c1ec;
    font-weight: bold;
}

.logout { 
    position: absolute;
    margin-top: 50px;
}

.logout a{
    color: white;
    text-decoration: none;
}

.main {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
    width: 100%;
    transition: 0.3s;
}

.main.full {
    margin-left: 0;

}

.main.full .form-container{ 
    margin: auto;
}

.header {
    display: flex;
    align-items:center;
    margin-bottom: 25px;
    gap: 10px;
    justify-content: space-between;
}
.button_dash{
    display: flex;
    gap: 5px;
}
.toggleSidebar {
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 15px;
    z-index: 1000;
}

.dash{
    justify-content: space-between;
    padding: 10px;
    display: flexbox;
}

.user {
    font-size: 16px;
    color: #333;
    justify-items: end;
}
.navigasi_kategori{
    display: flex;
    justify-content: space-between;
}
.actions {
    margin-bottom: 20px;
    justify-content: right;
    text-align: right;
}

.btn-primary {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    background: #1e3a5f;
    color: white;
    margin-left: 10px;
}

.btn-primary a {
    color: #f8fafc;
    text-decoration: none;
}

.btn-primary:hover {
    background: #5589c0;
}

.kategori-select {
    margin: 20px 0;
}

.kategori-slct {
    width: 260px;
    height: 45px;
    border-radius: 10px;
    border: 2px solid #d1d5db;
    padding: 0 10px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.kategori-slct:focus {
    outline: none;
    border-color: #1e3a5f;
}

.hidden-info {
    display: none;
}

.info-barang {
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.info-card {
    background: #fffffe;
    border: 2px solid #b8c1ec;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.5);
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.info-card p{
    margin: 0;
    font-size: 14px;
    color: #232946;
}

.info-card span{
    margin-left: 5px;
    font-weight: bold;
    color: #121629;
}

@keyframes fadeIn{
    from{
        opacity: 0;
        transform: translateY(-5px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}
.table-container {
    width: 95%;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s;

}

.main.full .table-container{
    margin: 30px auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-color: #000;
    text-align: center;
    table-layout: fixed;
}

.table-container h3{
    text-align: center;
    margin-bottom: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.table-header th {
    background-color: #f1f2f6;
    text-align: center;
    font-weight: bold;
    border: 1px solid #ddd;
    padding: 10px;
}

.table-row td {
    border: 1px solid #ddd;
    padding: 10px;
    vertical-align: top;
    word-wrap: break-word;
}
.table-peminjaman{
    justify-content: center;
}


.table-header td{
    border: 1px solid #ddd;
    padding: 10px;
    vertical-align: top;
} 

.table tr:nth-child(even){
    background: #f4f7fb;
}

.btn-edit {
    background: #3f5c7a;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
}

.btn-delete {
    background: #c0392b;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
}

.btn-edit:hover {
    opacity: 0.8;
}

.btn-delete:hover {
    opacity: 0.8;
}


.login-container {
    width: 100%;
    max-width: 400px;
}

.login-box{
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    text-align: center;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    margin: 30px auto;
    color: #8e8cc0;
}
.login-box h2 {
    color: #0d47a1;
    margin-bottom: 10px;
}

.login-box p{
    color: #555;
    font-size: 14px;
    margin-bottom: 20px;
}

.input-group {
    text-align: left;
    margin-bottom: 15px;
}

.input-group label {
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #1976d2;
    box-shadow: 0 0 5px rgba(25,118,210,0.5);
}

.button-group {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-group:hover {
    background-color: #0056b3;
}

/* Button Styles */
.btn-tambah {
    background: #2563eb;
    color: white;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-tambah:hover {
    background: #1e40af;
}


/* Form Container Styles */
.form-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-header h2 {
    color: #1e293b;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-header p {
    color: #64748b;
    font-size: 14px;
}

/* Form Styles */
.form-tambah {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}


.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

.notif{
    position: fixed !important;
    top: 80px !important; 
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 50% !important;
    z-index: 9999 !important;
}

/* button */
.action-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    margin-bottom: 15px;
    gap: 200px;
    padding-left: 50px;
    padding-right: 50px;
    align-content: center;
}

.btn-submit, 
.btn-dashboard, 
.btn-index {
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s ease;
}

/* submit button (kanan) */
.btn-submit {
    background-color: #4CAF50;
    color: white;
    margin-right: auto;
}

.btn-submit:hover {
    background-color: #388e3c;
}

/* dashbiard button (kiri) */
.btn-dashboard {
    background-color: #2196F3;
    color: white;
    margin-left: auto;
}

.btn-dashboard:hover {
    background-color: #1565c0;
}

/* Index button */
.btn-index {
    display: inline-block;
    background-color: #555;
    color: white;
}

/* Back Link */
.form-back {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 15px;
    padding-bottom: 5px;
    justify-content: center;
    display: flex;
}

.form-back a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-back a:hover {
    color: #2563eb;
}

/* Success/Error Message */
.form-message {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        margin: 20px;
        padding: 25px;
    }
    
    .form-tambah {
        grid-template-columns: 1fr;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
}
.tombol-submit {
    display: block;
    justify-content: center;
    flex-wrap: wrap;
}
/* button tambah inventaris */
.btn-tambah-inventaris {
    display: block;
    background-color: #061ace;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid rgb(23, 2, 2);
    cursor: pointer;
    transition: 0.3s ease;
    width: 100%;
    height: 50px;
    align-self: center;
}

.body-{
            background: #f1f5f9;
            min-height: 100vh;
            padding: 20px;
            margin-top: 5rem;
        }
        .welcome-header {
            text-align: center;
            color: #1e293b;
            margin-bottom: 30px;
            padding-top: 30px;
            justify-content: center;
        }