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

body {
    font-family: system-ui, sans-serif;
    background: black;
    min-height: 100vh;
    padding: 10px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

h1 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.test-case {
    background: white;
    /* border-radius: 12px; */
    padding: 15px;
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.test-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

.status-badge {
    padding: 5px 15px;
    /* border-radius: 20px; */
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
}

.status-pass {
    background: #4caf50;
    color: white;
}

.status-fail {
    background: #f44336;
    color: white;
}

.status-warning {
    background: #ff9800;
    color: white;
}

.test-details {
    margin: 15px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: #f5f5f5;
    margin: 5px 0;
    /* border-radius: 5px; */
}

.detail-row:nth-child(even) {
    background: #ebebeb;
}

.detail-label {
    font-weight: 600;
    color: #555;
}

.detail-value {
    color: #333;
    font-family: 'Nimbus Mono PS', 'Courier New', monospace;
}

.comparison-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.comparison-title {
    font-weight: bold;
    color: #666;
    margin-bottom: 10px;
}

.coefficients-grid {
    display: grid;
    gap: 5px;
    font-size: 0.85em;
    margin: 10px 0;
    overflow-x: auto;
}

.coef-header {
    font-weight: bold;
    padding: 5px;
    background: #e0e0e0;
    text-align: center;
    font-size: 0.85em;
}

.coef-cell {
    padding: 5px;
    background: #f9f9f9;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
}

.performance-summary {
    background: white;
    /* border-radius: 12px; */
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.performance-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.performance-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.perf-metric {
    text-align: center;
    padding: 15px;
    background: darkblue;
    /* border-radius: 10px; */
    color: white;
}

.perf-label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.perf-value {
    font-size: 2em;
    font-weight: bold;
}

.perf-unit {
    font-size: 0.8em;
    opacity: 0.8;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    /* border-radius: 5px; */
    margin: 10px 0;
    border-left: 4px solid #f44336;
}

.info-box {
    background: #e3f2fd;
    color: #1565c0;
    padding: 15px;
    /* border-radius: 8px; */
    margin: 20px 0;
    border-left: 10px solid #2196f3;
}

.loading {
    text-align: center;
    color: white;
    font-size: 1.2em;
    margin: 50px 0;
}

canvas {
    margin-top: 15px;
    border: 1px solid #ddd;
    /* border-radius: 5px; */
    width: 100%;
    height: 200px;
}
