* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
body { display: flex; min-height: 100vh; background-color: #f4f6f9; color: #2c3e50; }

.sidebar { width: 240px; background: #1a252f; color: #fff; padding: 24px 20px; flex-shrink: 0; }
.sidebar h2 { margin-bottom: 30px; color: #e67e22; font-size: 22px; }
.sidebar ul { list-style: none; }
.sidebar ul li a { color: #a0aec0; text-decoration: none; display: block; padding: 12px 16px; border-radius: 6px; margin-bottom: 8px; font-weight: 500; }
.sidebar ul li a.active, .sidebar ul li a:hover { background: #2c3e50; color: #fff; }

.main-content { flex: 1; padding: 30px; width: 100%; overflow-x: hidden; }
header h1 { font-size: 24px; margin-bottom: 24px; color: #1a252f; }

.tab-content { display: none; }
.tab-content.active { display: block; }

.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); border-left: 4px solid #e67e22; }
.card h3 { font-size: 13px; color: #718096; text-transform: uppercase; margin-bottom: 8px; }
.card p { font-size: 24px; font-weight: bold; }

.chart-container { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

/* Table Styles */
.table-container { background: #fff; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th, td { padding: 12px 16px; border-bottom: 1px solid #edf2f7; }
th { background: #f8fafc; font-weight: 600; color: #4a5568; }

.badge { padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; }
.badge.warn { background: #fed7d7; color: #9b2c2c; }
.badge.in { background: #c6f6d5; color: #22543d; }
.badge.out { background: #feebc8; color: #744210; }

@media (max-width: 768px) {
    body { flex-direction: column; }
    .sidebar { width: 100%; padding: 16px; }
    .sidebar ul { display: flex; overflow-x: auto; gap: 10px; }
    .sidebar ul li a { margin-bottom: 0; white-space: nowrap; }
    .main-content { padding: 16px; }
}