html{
    scroll-behavior: smooth;
}

body {
    /*font-family: 'Calibri', sans-serif;*/
    /*background: #fafafa;*/
    background: #ffffff;
}

p {
    /*font-family: 'Calibri', sans-serif;*/
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
    color: #999;
}

a, a:hover, a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.navbar {
    padding: 15px 10px;
    background: #434343;
    border: none;
    border-radius: 0;
    margin-bottom: 40px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 180px;
    max-width: 180px;
    font-family: 'Calibri', sans-serif;
    color: #434343;
    transition: all 0.3s;
    margin-left: 10px;
    /*border: 1px solid pink;*/
}

#sidebar .active {
    margin-left: -180px;
}

#sidebar .sidebar-header {
    padding: 20px 10px;
    /*background: #6d7fcc;*/
    border-bottom: 1px solid #ccc;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #ccc;
}

#sidebar ul p {
    color: #434343;
    padding: 0 10px;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block; 
}

#sidebar ul li a:hover{
    color: #4b80fd;
}

#sidebar ul li a .menu{
    width: 10%;
    height: 10%;
    background: #4b80fd;
}


#sidebar ul li .active>a,
a[aria-expanded="true"] {
    color: #4b80fd;
    font-weight: bold;
}

a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

ul ul a {
    font-size: 1em !important;
    padding-left: 30px !important;
    background: #6d7fcc;
}


#sidebar ul li a.log-out{
    color: #ff2020;
    font-size: 1.1em;
}

#sidebar ul li a.log-out:hover{
    cursor: pointer;
    font-weight: bold;
}


/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

#content {
    width: 100%;
    padding: 0 30px;
    min-height: 100vh;
    transition: all 0.3s;
    display: inline-block;
/*    border: 1px solid orange;*/
}

.produk {
    display: inline-block;
    width: 250px;
    height: 320px;
    border: 1px solid #a9a9a9;
    margin: 0 auto 20px 0;
    padding: 10px;
    border-radius: 6px;
    box-sizing: border-box;
    background: #ffffff;
    position: relative;
}

.produk img{
    border-radius: 6px;
}

.produk .produk-title{
    margin-top: 8px;
    font-size: 20px;
    font-weight: 600;
}

.produk .detailProduk{
    /*margin-top: 8px;*/
    width: 45%;
    position: absolute;
    bottom: 10px;
}

.produk .bandingkan{
    position: absolute;
    right: 10px;
    bottom: 10px;
}

.produk:hover{
    box-shadow: 1px 1px 8px #bababa;
}

.produk .action{
    position: absolute;
    top: -20px;
    right: -10px;
}

/* ---------------------------------------------------
    PRODUK - MENU
----------------------------------------------------- */
.menu-title{
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 14px;
}

.menu {
    overflow-x: auto;
}

.produk-menu{
    display: inline-block;
    margin: auto;
    margin-right: auto;
    width: 220px;
    height: 250px;
    border: solid 1px #cccccc;
    border-radius: 5px;
    padding: 8px 8px;
}

.add-menu{
    display: inline-block;
    margin: auto;
    margin-right: 20px;
    min-width: 220px;
    height: 250px;
    border: 1px dashed #cccccc;
    border-radius: 5px;
    padding: 8px 8px;
}

.produk-menu:hover, .add-menu:hover{
    box-shadow: 1px 1px 8px #bababa;
}

.produk-menu img{
    border-radius: 6px;
}

.produk-menu .menu-title{
    font-size: 22px;
    font-weight: 500;
    margin: 0;
}
.produk-menu .menu-desc{
    font-size: 16px;
    font-weight: 300;
}

.produk-lain a{
    padding-left: 50px;
    padding-right: 50px;
}


/* ---------------------------------------------------
    NOTIFICATIONS
----------------------------------------------------- */

.notif{
    z-index: 9999;
    display: inline-block;
    position: fixed;
    margin: 20px;
    padding: 8px 12px;
    background-color: #6d7fcc;
    border-radius: 5px;
    color: white;
    top: 0;
    right: 0;
    box-shadow: 1px 1px 10px #bebebe;
}

.notif-close{
    position: absolute;
    top: 0;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
}

.notif-body{
    margin: 5px 20px 5px 3px;
}



/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */
#sidebarCollapse {
    display: none;
}

@media (max-width: 768px) {
    #sidebar {
        margin-left: -180px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    /*#sidebarCollapse span {
        display: none;
    }*/
    #sidebarCollapse {
        display: block;
    }
}
/* ==========================================================
   CSS MODERN DASHBOARD (SOFT UI / NEUMORPHISM)
   ========================================================== */

/* Latar belakang utama yang sangat terang */
.modern-bg {
    background-color: #f4f7fc;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 30px 30px; /* Memberikan efek titik-titik jaringan yang sangat halus di latar */
}

/* --- SIDEBAR MODERN --- */
.sidebar-modern {
    min-width: 250px;
    max-width: 250px;
    background-color: #1b365d; /* Biru Gelap sesuai gambar */
    color: #fff;
    transition: all 0.4s ease;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    z-index: 1000;
}

/* Profil di Sidebar */
.profile-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    padding: 3px;
    background: linear-gradient(145deg, #183154, #1d3a64);
}

/* Menu Sidebar */
.modern-menu {
    padding: 20px 0;
}

.modern-menu li {
    padding: 5px 20px;
}

.modern-menu li a {
    padding: 12px 20px;
    font-size: 1.05em;
    display: block;
    color: #a0aec0; /* Warna abu-abu terang */
    border-radius: 15px;
    transition: all 0.3s ease;
}

.modern-menu li a .menu-icon {
    width: 30px;
    text-align: center;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

/* Efek Hover (Melayang) pada Menu */
.modern-menu li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px); /* Animasi geser ke kanan sedikit */
}

.modern-menu li a:hover .menu-icon {
    transform: scale(1.2); /* Ikon membesar saat di-hover */
}

/* Menu Aktif (Bentuk Pil dengan bayangan dalam) */
.modern-menu li.active a {
    color: #fff;
    background: linear-gradient(145deg, #2a4b7c, #1f3a63);
    box-shadow:  inset 4px 4px 8px #182e50, inset -4px -4px 8px #224276;
    font-weight: 600;
}

/* Tombol Log Out Glow Merah */
.btn-logout-modern {
    display: inline-block;
    color: #ff4d4d;
    padding: 10px 40px;
    border-radius: 50px;
    border: 1px solid rgba(255, 77, 77, 0.3);
    transition: all 0.3s ease;
}

.btn-logout-modern:hover {
    color: #fff;
    background-color: #ff4d4d;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.5); /* Efek bercahaya merah */
    text-decoration: none;
}

/* --- KONTEN UTAMA --- */
.content-modern {
    width: 100%;
    padding: 20px 40px;
    transition: all 0.3s;
}

/* Animasi Muncul dari Bawah */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- GAYA KARTU SOFT UI / NEUMORPHISM (Gunakan class ini di beranda.php) --- */
.soft-card {
    background: #ffffff;
    border-radius: 20px;
    border: none;
    /* Ini adalah kode rahasia bayangan 3D Soft UI */
    box-shadow: 8px 8px 16px #e6e9ef, -8px -8px 16px #ffffff;
    transition: all 0.3s ease;
    padding: 20px;
    margin-bottom: 20px;
}

/* Animasi saat kartu disentuh kursor */
.soft-card:hover {
    transform: translateY(-8px); /* Kartu terangkat */
    box-shadow: 12px 12px 20px #e6e9ef, -12px -12px 20px #ffffff;
}

/* Gaya Kartu Tambah Produk (Bayangan masuk ke dalam / Inset) */
.soft-card-inset {
    background: #f4f7fc;
    border-radius: 20px;
    border: 2px dashed #cbd5e0;
    box-shadow: inset 5px 5px 10px #e6e9ef, inset -5px -5px 10px #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    color: #a0aec0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.soft-card-inset:hover {
    color: #1b365d;
    border-color: #1b365d;
    background: #ffffff;
}