* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
    margin: 0;
    background: #f4f6f9;
}

/* NAVBAR */
.navbar {
    background: #1f2937;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.navbar ul li a {
    color: #d1d5db;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
}

.navbar ul li a:hover {
    background: #374151;
    color: #fff;
}

.navbar ul li.right {
    margin-left: auto;
}

/* MAIN CONTAINER */
.container {
    padding: 25px;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

.card h3 {
    margin: 0;
    color: #374151;
}

.card .value {
    font-size: 22px;
    font-weight: bold;
    margin-top: 10px;
}

/* TABLES */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

th {
    background: #f9fafb;
    text-align: left;
}

tr:hover {
    background: #f3f4f6;
}

/* BUTTONS */
.btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.btn-primary { background: #2563eb; color: white; }
.btn-danger { background: #dc2626; color: white; }
.btn-success { background: #16a34a; color: white; }

/* FORMS */
input, select {
    padding: 10px;
    width: 100%;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* ALERTS */
.low {
    color: #dc2626;
    font-weight: bold;
}
.chart-container {
    max-width: 700px;      /* control width */
    margin: 30px auto;     /* center horizontally */
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

.chart-container canvas {
    width: 100% !important;
    height: 320px !important;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}
/* Footer */
footer {
    text-align:center;
    padding:15px;
    margin-top:20px;
    background:#2c3e50;
    color:#fff;
    border-radius:5px;
}