* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', sans-serif; display: flex; min-height: 100vh; background: #ecf0f1; color: #2c3e50; }
.sidebar { background: #34495e; color: white; width: 240px; padding: 30px 20px; display: flex; flex-direction: column; }
.sidebar h2 { font-size: 24px; margin-bottom: 25px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar ul li { margin-bottom: 10px; }
.sidebar a { color: #ecf0f1; text-decoration: none; padding: 10px 15px; display: block; border-radius: 5px; transition: background 0.2s; }
.sidebar a:hover { background: #3d566e; }
.main-content { flex: 1; padding: 40px; background: #f4f6f8; overflow-y: auto; }
h1, h2, h3 { margin-top: 0; }
.status { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; padding: 10px 15px; border-radius: 5px; margin-bottom: 25px; font-weight: 600; }
table { width: 100%; border-collapse: collapse; background: white; box-shadow: 0 2px 6px rgba(0,0,0,0.05); border-radius: 8px; overflow: hidden; margin-top: 20px; }
table th { background: #2c3e50; color: white; padding: 12px; text-align: left; }
table td { padding: 12px; border-bottom: 1px solid #ddd; }
table tr:hover td { background: #f0f4f8; }
form { margin-top: 20px; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
input, select, textarea, button { width: 100%; padding: 10px; margin-top: 8px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; font-size: 15px; }
input:focus, select:focus, textarea:focus { border-color: #2980b9; outline: none; }
button { background: #3498db; color: white; border: none; cursor: pointer; transition: background 0.2s; }
button:hover { background: #2980b9; }

.btn {
    display: inline-block;
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s;
    margin: 5px 0;
    width: 100%;
    text-align: center;
}

.btn:hover { background: #2980b9; }

/* Removed color differences */
.btn.delete,
.btn.edit {
    background: #3498db;
}

.btn.delete:hover,
.btn.edit:hover {
    background: #2980b9;
}
.chart-container { max-height: 50vh; min-height: 200px; background: white; padding: 20px; border-radius: 8px; }
@media (max-width: 768px) { 
    body { flex-direction: column; }
    .sidebar { width: 100%; flex-direction: row; justify-content: space-between; padding: 15px; }
    .sidebar ul { display: flex; gap: 10px; }
    .main-content { padding: 20px; }
}
form.inline-form { 
    display: inline; 
    margin: 0; 
    padding: 0; 
    border: none; 
    background: none; 
}


/* === DASHBOARD ENHANCEMENTS === */

.dashboard-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.dashboard-stats .stat-box {
    flex: 1;
    min-width: 220px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background: linear-gradient(to bottom right, #ffffff, #f0f2f5);
    transition: transform 0.2s;
}

.dashboard-stats .stat-box:hover {
    transform: scale(1.02);
}

.stat-box h3 {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #2c3e50;
}

.stat-box p {
    font-size: 2.5em;
    font-weight: bold;
    margin: 0;
    color: #2980b9;
}

.chart-container {
    width: 100%;
    max-width: 100%;
    height: auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.07);
}

canvas#salesChart {
    width: 100% !important;
    height: 400px !important;
    max-height: 400px;
}

/* Responsive for dashboard */
@media (max-width: 768px) {
    .dashboard-stats {
        flex-direction: column;
    }

    .stat-box {
        margin-bottom: 20px;
    }
}
