* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    color: #1a202c;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 700;
}

h2 {
    color: #2d3748;
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Stats Grid */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stat-value {
    font-size: 2.5em;
    font-weight: 700;
    color: #2196F3;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    color: #718096;
    font-size: 0.95em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Charts */
.chart {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.chart h2 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

/* Anomalien */
.anomaly {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 0.95em;
}

.anomaly.warning {
    background: #fff3cd;
    border-color: #ff9800;
}

.anomaly.critical {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.anomaly.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.anomaly strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.05em;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #718096;
}

.loading::after {
    content: "...";
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* Error State */
.error {
    background: #fee;
    border-left: 4px solid #f00;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    color: #c00;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .stat-value {
        font-size: 2em;
    }
    
    .chart {
        padding: 15px;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a202c;
        color: #e2e8f0;
    }
    
    .stat-card, .chart {
        background: #2d3748;
    }
    
    h1, h2 {
        color: #f7fafc;
    }
    
    .stat-label {
        color: #a0aec0;
    }
}
