:root {
    --primary-bg: #F3E0D3;
    --dark-bg: #1F1F1F;
    --accent-color: #DFA878;
    --card-bg: #EACFB6;
    --text-dark: #1F1F1F;
    --text-light: #F3E0D3;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: var(--text-dark);
    overflow-x: hidden;
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* --- Sidebar --- */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: var(--dark-bg);
    color: #fff;
    transition: all 0.3s;
    min-height: 100vh;
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: rgba(0,0,0,0.2);
    text-align: center;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#sidebar ul li a {
    padding: 15px 20px;
    font-size: 1rem;
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

#sidebar ul li a:hover, #sidebar ul li.active > a {
    color: var(--accent-color);
    background: rgba(255,255,255,0.05);
    border-left: 4px solid var(--accent-color);
}

#sidebar ul li a i {
    width: 20px;
    text-align: center;
}

/* --- Content --- */
#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
}

.admin-navbar {
    padding: 15px;
    background: #fff;
    border: none;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-toggle {
    background: var(--dark-bg);
    color: white;
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* --- Products Table Styles --- */
.products-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box input {
    border-radius: 20px;
    border: 1px solid #ddd;
    padding: 8px 20px;
    width: 250px;
}

.btn-add-product {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    font-weight: 600;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-add-product:hover {
    background-color: var(--dark-bg);
    color: white;
}

.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.table-custom th {
    border: none;
    color: #888;
    font-weight: 600;
    padding: 15px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.table-custom td {
    background: #fcfcfc;
    border: none;
    padding: 15px;
    vertical-align: middle;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.table-custom tr td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border-left: 1px solid #f0f0f0;
}

.table-custom tr td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-right: 1px solid #f0f0f0;
}

.product-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 15px;
}

.stock-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stock-in { background: #d4edda; color: #155724; }
.stock-low { background: #fff3cd; color: #856404; }
.stock-out { background: #f8d7da; color: #721c24; }

.pagination-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.brand-logo {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
}

@media (max-width: 768px) {
    #sidebar { margin-left: -250px; }
    #sidebar.active { margin-left: 0; }
    .filter-controls { flex-direction: column; align-items: flex-start; }
    .search-box input { width: 100%; }
}
