.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 16px;
margin-bottom: 1rem;
}

.stat-card {

padding: 16px;
border-radius: 10px;
display: flex;
gap: 12px;
align-items: center;
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.40);
}

.stat-icon {
width: 56px;
height: 56px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
}

.stat-icon.hijau {
background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stat-icon.kuning {
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon.merah {
background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.stat-icon.biru {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-content h3 {
font-size: 13px;
margin: 0 0 4px 0;
font-weight: 600
}

.stat-content p {
font-size: 20px;
margin: 0;
font-weight: 700
}

.chart-container {
padding: 14px;
border-radius: 10px;
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.40)
}

.chart-wrapper {
height: 340px
}

.status-badge {
display: inline-block;
padding: 6px 12px;
border-radius: 14px;
font-weight: 700;
font-size: 13px
}

.status-badge.cepat {
background: #d4edda;
color: #155724
}

.status-badge.lambat {
background: #fff3cd;
color: #856404
}

.status-badge.offline {
background: #f8d7da;
color: #721c24
}

.loading-spinner {
border: 4px solid #f3f3f3;
border-top: 4px solid #667eea;
border-radius: 50%;
width: 28px;
height: 28px;
animation: spin 1s linear infinite;
display: inline-block
}

@keyframes spin {
0% {
transform: rotate(0)
}

100% {
transform: rotate(360deg)
}
}

@media(max-width:768px) {
.chart-wrapper {
height: 260px
}
}
