:root {
    --bg-color: #1a1a2e;
    --card-bg: #16213e;
    --text-color: #eee;
    --text-muted: #888;
    --accent: #0f3460;
    --highlight: #e94560;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

h1 {
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.filter-row {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-select {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.9em;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--highlight);
}

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

.chart-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.chart-card h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: var(--text-muted);
}

.chart-subtitle {
    color: var(--text-muted);
    font-size: 0.8em;
    margin: 0 0 12px 0;
    opacity: 0.7;
}

.chart-container {
    position: relative;
    height: 250px;
}

.stats-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px 25px;
    text-align: center;
    min-width: 150px;
}

.stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--highlight);
}

.stat-label {
    font-size: 0.85em;
    color: var(--text-muted);
}

.latest-run {
    background: var(--accent);
    border-radius: 12px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto 30px;
}

.latest-run h2 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
}

.error {
    background: #4a1a1a;
    color: #ff6b6b;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 600px;
    margin: 50px auto;
}

.loading {
    text-align: center;
    padding: 50px;
    color: var(--text-muted);
}

a {
    color: var(--highlight);
}

/* Grouped detail sections */
.detail-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.detail-group {
    flex: 1;
    min-width: 180px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
}

.detail-group h3 {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--highlight);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 5px;
}

.detail-group dl {
    margin: 0;
}

.detail-group dt {
    color: var(--text-muted);
    font-size: 0.85em;
    margin-top: 8px;
}

.detail-group dt:first-of-type {
    margin-top: 0;
}

.detail-group dd {
    margin: 2px 0 0 0;
    font-family: monospace;
    font-size: 0.9em;
}

/* Chart sections */
.chart-section {
    max-width: 1400px;
    margin: 0 auto 30px;
}

.chart-section-header {
    font-size: 1em;
    color: var(--text-muted);
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.chart-section-description {
    color: var(--text-muted);
    font-size: 0.9em;
    margin: -10px 0 15px 0;
}

/* Run count indicator */
.run-count {
    font-size: 0.7em;
    font-weight: normal;
    color: var(--text-muted);
}
