/* bumbu_ahay/assets/css/style-global.css */
:root {
    --primary-color: #2c3e50;
    --accent-color: #e67e22; /* Warna khas bumbu/rempah */
    --bg-light: #f4f7f6;
    --text-dark: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    margin: 0;
    color: var(--text-dark);
}



.wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden; /* Mencegah scroll horizontal saat sidebar tersembunyi */
}

/* Sidebar Styling */
.sidebar {
    width: 250px;
    min-width: 250px;
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Animasi halus */
    z-index: 1000;
}

/* Kondisi Sidebar Tertutup/Kecil */
.sidebar.collapsed {
    margin-left: -250px; /* Menyembunyikan sidebar ke kiri */
}

/* Update Tombol Toggle Hamburger dengan Efek Transparansi */
#sidebarToggle {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background-color: white;
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1100;
    cursor: pointer;
    
    /* Efek Memudar Default */
    opacity: 0.5; /* 50% transparan */
    transition: all 0.4s ease; /* Transisi halus untuk semua perubahan */
}

/* Efek saat kursor berada di atas tombol (Hover) */
#sidebarToggle:hover {
    opacity: 1; /* Terlihat kuat (100% solid) */
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25); /* Bayangan lebih kuat saat hover */
}

@media print {
    #sidebarToggle, .sidebar, .no-print {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}
/* Agar ada sedikit ruang di konten utama agar tidak tertutup tombol saat sidebar tertutup */
main {
    padding-top: 20px;
}

/* Overlay saat sidebar terbuka di layar kecil */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: none;
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar .logo {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #34495e;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
}

.sidebar nav ul li a {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    padding: 12px;
    border-radius: 5px;
    transition: 0.3s;
}

.sidebar nav ul li a:hover {
    background-color: #34495e;
    color: white;
}

/* Content Area */
.content {
    flex: 1;
    padding: 30px;
}

/* Tabel Styling untuk Output Informasi Stok */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: var(--primary-color);
    color: white;
}

tr:hover {
    background-color: #f9f9f9;
}