@charset "utf-8";
/* CSS Document */

:root {
	--primary-color: #0f172a;
	--accent-color: #3b82f6;
	--succes-color: #00796b;
	--text-muted: #64748b;
	--bg-light: #f8fafc;
}

body { 
	font-family: 'Plus Jakarta Sans', sans-serif; 
	color: var(--primary-color);
	background-color: var(--bg-light);
	overflow-x: hidden;
}

/*---------- navbar ------------ */	
.navbar-brand { 
	font-weight: 800; 
	letter-spacing: -1px; 
	color: var(--succes-color) 
}

.cart-icon-wrapper {
	position: relative;
	margin-right: 20px;
	color: var(--succes-color);
	font-size: 1.4rem;
}

.cart-badge {
	position: absolute;
	top: -5px;
	right: -10px;
	background-color: #ffc107;
	color: black;
	font-size: 0.65rem;
	font-weight: bold;
	padding: 2px 5px;
	border-radius: 50%;
}

.user-avatar {
	width: 35px;
	height: 35px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid white;
}

/* Footer Styling sesuai Gambar */
	.footer-main {
		background-color: #f8f9fa;
		padding: 60px 0 20px 0;
		margin-top: 50px;
		border-top: 1px solid #eee;
	}
	.footer-title {
		font-weight: 700;
		font-size: 0.9rem;
		color: #333;
		margin-bottom: 20px;
	}
	.footer-link {
		display: block;
		color: #888;
		text-decoration: none;
		font-size: 0.8rem;
		margin-bottom: 8px;
	}
	.payment-icons img {
		height: 20px;
		margin-right: 10px;
		margin-bottom: 10px;
	}




/* Dashboard Layout */
.wrapper {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

#sidebar {
    min-width: 260px;
    max-width: 260px;
    background: var(--primary-color);
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    height: 100vh;
	display: flex;
    flex-direction: column;
    z-index: 1050;
}

#sidebar .sidebar-header {
    padding: 1.2rem 1rem;
    background: var(--primary-color);
}

#sidebar .sidebar-header small {
    font-size: 0.75rem; /* Management by... dibuat lebih mungil */
}

#sidebar ul p {
    color: var(--text-muted);
    padding: 15px 20px 5px 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0px;	
}

#sidebar ul li a {
    padding: 4px 20px;
    font-size: 0.88rem;
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

#sidebar ul li a i {
    font-size: 1.2rem;
    min-width: 24px;
}    

#sidebar ul li a:hover, #sidebar ul li.active > a {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

#sidebar ul li.active > a {
    border-right: 4px solid var(--accent-color);
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0) 100%);
}

/* --- Penambahan logic Toggle Sidebar --- */
#sidebar.active {
    margin-left: -260px; /* Sembunyikan sidebar ke kiri */
}

/* Sidebar Mini State */
#sidebar.mini {
    width: 80px;
    min-width: 80px;
}

#sidebar.mini .sidebar-header h4, 
#sidebar.mini .sidebar-header small,
#sidebar.mini ul p,
#sidebar.mini ul li a span {
    display: none; /* Sembunyikan teks saat mini */
}

#sidebar.mini .sidebar-header .logo {
	font-size: 0.5rem;
}

.logo-mini {
	font-size: 0.5rem;
}

#sidebar.mini ul li a {
    justify-content: center;
    padding: 15px 0;
}

/* Label Judul di Floating Menu (Opsional) */
.submenu-title {
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-color);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 5px;
}

/* Floating Sub-menu Logic */
.nav-item-dropdown {
    position: relative;
}

.floating-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 220px;
    background: #1e293b; /* Warna sedikit lebih terang dari primary */
    display: none;
    list-style: none;
    padding: 10px 0;
    border-radius: 0 12px 12px 0;
    box-shadow: 10px 0 15px rgba(0,0,0,0.1);
    z-index: 9999;
}

/* Jika menu berada di bagian bawah layar, buat sub-menu muncul ke atas (Bottom-up) */
#sidebar ul li:nth-last-child(-n+1) .floating-submenu {
    top: auto;
    bottom: 0; /* Muncul dari bawah ke atas untuk 3 menu terakhir */
}

/* Munculkan saat Hover */
.nav-item-dropdown:hover > .floating-submenu {
    display: block;
}

/* Link di dalam Floating Menu */
.floating-submenu li a {
    padding: 0px 20px !important;
    font-size: 0.85rem !important;
    white-space: nowrap;
    border-right: none !important;
    background: transparent !important;	
}

.floating-submenu li a:hover {
    background: rgba(255,255,255,0.1) !important;
    color: var(--accent-color) !important;
}

/* Styling icon di dalam floating submenu */
.floating-submenu li a i {
    font-size: 1rem;
    width: 20px;
    margin-right: 10px;
    color: var(--text-muted);
    transition: 0.3s;
}

.floating-submenu li a:hover i {
    color: var(--accent-color);
}


/* Floating Sub-menu Logic - Enhanced to 2 Columns */
.floating-submenu-2 {
    position: absolute;
    left: 100%;
    top: 0;
    display: none; /* Muncul saat hover */
    flex-direction: row; /* Mengatur kolom secara menyamping */
    background: #1e293b;
    padding: 10px;
	border-radius: 0 12px 12px 0;
    box-shadow: 10px 0 15px rgba(0,0,0,0.1);
    z-index: 9999;
    border: 1px solid rgba(255,255,255,0.05);
    min-width: 600px; /* Lebar total 2 kolom */
}

/
/* Munculkan saat Hover dengan Display Grid */
.nav-item-dropdown:hover > .floating-submenu-2 {
    display: flex;
}

/* Container Kolom */
.submenu-column {
    flex: 1; /* Membagi ruang sama rata */
    display: flex;
    flex-direction: column;
    min-width: 240px;
}

/* Garis pembatas antar kolom */
.submenu-column:first-child {
    border-right: 1px solid rgba(255,255,255,0.05);
}

/* Sub Title per Kolom */
.column-title {
    padding: 10px 15px;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent-color); /* Menggunakan variabel blue Anda */
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Item Link */
.submenu-column ul {
    padding: 0px !important;
}

.submenu-column li {
    list-style: none;
    display: block;
}

.submenu-column li a {
    padding: 1px 3px !important;
    font-size: 0.82rem !important;
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 5px;
}

.submenu-column li a:hover {
    background: rgba(255,255,255,0.05) !important;
    color: #fff !important;
    transform: translateX(5px);
}

.submenu-column li a i {
    width: 25px;
    font-size: 1rem;
    color: var(--text-muted);
}

/* Styling Avatar Profile */
.avatar-container {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
}



#content {
    width: calc(100% - 260px);
    padding: 0;
    min-height: 100vh;
    transition: all 0.3s;
    margin-left: 260px;
    background-color: #f8fafc;
}

/* Adjust Content Area */
#content.wide {
    margin-left: 80px;
    width: calc(100% - 80px);
}

#content.active {
    width: 100%;
    margin-left: 0;
}

/* Tombol Toggle Styling */
.btn-toggle {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--primary-color);
    border-radius: 8px;
    padding: 5px 12px;
    transition: all 0.3s;
}

.btn-toggle:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Responsive: Mobile Mode */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -260px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        width: 100%;
        margin-left: 0;
    }
    #content.active {
        margin-left: 0; /* Content tidak bergeser di mobile saat sidebar muncul */
    }
}

.main-container {
    padding: 2rem;
}

    .modal-content {
        transition: all 0.3s ease-in-out;
    }
    .input-group:focus-within {
        border-color: #0d6efd !important;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15) !important;
    }
    .cursor-pointer {
        cursor: pointer;
    }

@media (min-width: 1400px) {
	.modal-xxl { max-width: 1320px; }
}

/* Variasi Warna Premium */	
.btn-purple-row { background-color: rgba(111, 66, 193, 0.1); color: #6f42c1; }
.btn-purple-row:hover { background-color: #6f42c1; color: white; }

.btn-indigo-row { background-color: rgba(102, 16, 242, 0.1); color: #6610f2; }
.btn-indigo-row:hover { background-color: #6610f2; color: white; }

.btn-teal-row { background-color: rgba(32, 201, 151, 0.1); color: #198754; }
.btn-teal-row:hover { background-color: #198754; color: white; }

.btn-pink-row { background-color: rgba(214, 51, 132, 0.1); color: #d63384; }
.btn-pink-row:hover { background-color: #d63384; color: white; }

.btn-orange-row { background-color: rgba(214, 51, 132, 0.1); color: #fd7e14; }
.btn-orange-row:hover { background-color: #fd7e14; color: white; }

.btn-cyan-row { background-color: rgba(214, 51, 132, 0.1); color: #0dcaf0; }
.btn-cyan-row:hover { background-color: #0dcaf0; color: white; }

.btn-yellow-row { background-color: rgba(214, 51, 132, 0.1); color: #ffc107; }
.btn-yellow-row:hover { background-color: #ffc107; color: white; }

/* text-size */
.text-size1 { font-size: 0.7rem !important}
.text-size2 { font-size: 0.75rem !important}
.text-size3 { font-size: 0.8rem !important}
.text-size4 { font-size: 0.85rem !important}
.text-size5 { font-size: 0.9rem !important}
.text-size6 { font-size: 0.95rem !important}
.text-size7 { font-size: 1rem !important}

/* background color */
.bg-purple { background-color: #6f42c1 !important; }
.bg-indigo { background-color: #6610f2 !important; }
.bg-teal { background-color: #20c997 !important; }
.bg-pink { background-color: #d63384 !important; }
.bg-orange { background-color: #fd7e14 !important; }
.bg-cyan { background-color: #0dcaf0 !important; }
.bg-yellow { background-color: #ffc107 !important; }

/* text color */
.text-purple { color: #6f42c1 !important; }
.text-indigo { color: #6610f2 !important; }
.text-teal { color: #20c997 !important; }
.text-pink { color: #d63384 !important; }
.text-orange { color: #fd7e14 !important; }
.text-cyan { color: #0dcaf0 !important; }
.text-yellow { color: #ffc107 !important; }




.product-card-container { background: white; border-radius: 8px; padding: 25px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* Tombol Abu-abu (Belum ada di keranjang) */
.btn-initial-add {
    background-color: #e9ecef;
    color: #6c757d;
    border: none;
    border-radius: 50px;
    padding: 5px 0;
    width: 100%;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}
.btn-initial-add:hover {
    background-color: #dee2e6;
}

/* Wrapper Kontrol Kuantitas (Sudah ada di keranjang) */
.qty-control-wrapper {
    background-color: #D4F4C1; /* Hijau muda sesuai gambar */
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 15px;
    width: 100%;
}

.qty-btn {
    background: none;
    border: none;
    color: #555;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.qty-btn i {
    font-size: 1.5rem;
    color: #6c757d;
}

.qty-number {
    font-weight: bold;
    font-size: 1.2rem;
    color: #005E4D; /* Hijau tua sesuai gambar */
}

.d-none {
    display: none !important;
}



