body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f6f8;
    color: #333;
    margin: 0;
    padding: 20px;
}
h1 {
    text-align: center;
    color: #1a3b5c;
}
.filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filters label {
    font-weight: bold;
}
.filters select, .filters input, .filters button {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.filters button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
.filters button:hover {
    background-color: #0056b3;
}
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 20px;
}
.full-width-chart {
    grid-column: 1 / -1; /* Make this item span all columns in the grid row */
}
.chart-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.fixed-height-chart {
    min-height: 450px;
}
.table-container {
    overflow-x: auto;
}
.styled-table { /* Style to mimic Plotly table */
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.styled-table th, .styled-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}
.styled-table th {
    background-color: #a0dce8; /* Matches Plotly header color */
    color: black;
    font-size: 12px;
}
.styled-table td {
    background-color: #f0f8ff; /* Matches Plotly cell color */
}
.loading-overlay, .error-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 1.2em;
    color: #888;
}
.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-size: 1.5em;
}