:root {
    --primary-bg: #F3E0D3; /* Light Peach/Beige */
    --dark-bg: #1F1F1F;     /* Dark Grey/Black */
    --accent-color: #DFA878; /* Coffee Gold/Orange */
    --card-bg: #EACFB6;     /* Slightly darker beige for cards */
    --text-dark: #1F1F1F;
    --text-light: #F3E0D3;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa; /* Lighter background for dashboard readability */
    color: var(--text-dark);
    overflow-x: hidden;
}

/* --- Layout --- */
.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 p {
    color: #fff;
    padding: 10px;
}

#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;
}

/* --- Topbar --- */
.admin-navbar {
    padding: 15px;
    background: #fff;
    border: none;
    border-radius: 15px;
    margin-bottom: 40px;
    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;
}

/* --- Stats Cards --- */
.stat-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.bg-peach { background-color: rgba(243, 224, 211, 0.5); color: #d35400; }
.bg-blue { background-color: rgba(52, 152, 219, 0.1); color: #3498db; }
.bg-green { background-color: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.bg-purple { background-color: rgba(155, 89, 182, 0.1); color: #9b59b6; }

.stat-text h3 {
    font-weight: 700;
    margin: 0;
    font-size: 1.8rem;
    color: var(--dark-bg);
}

.stat-text p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

/* --- Recent Orders Table --- */
.recent-orders {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.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;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-completed { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

.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;
    }
}
