/* Base setup */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333333;
}

/* App container */
#root, .app-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Flex layout helpers */
.flex-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Make graphs responsive */
.graph-container {
    width: 100%;
    min-height: 400px;
}

/* Responsive text */
h1, h2, h3, p, label {
    font-size: clamp(16px, 2vw, 24px);
}

/* Responsive dropdowns, inputs, tables */
.dcc-dropdown, .dash-table-container, .dcc-input {
    width: 100%;
    min-width: 300px;
}

/* Button styling */
.button {
    background-color: #007BFF;
    border: none;
    color: white;
    padding: 12px 20px;
    font-size: clamp(14px, 1.5vw, 18px);
    border-radius: 5px;
    cursor: pointer;
}

.button:hover {
    background-color: #0056b3;
}

/* Responsive Tabs */
.dash-tabs {
    font-size: clamp(14px, 1.5vw, 20px);
}

.dash-tab {
    padding: 10px;
}

/* Remove scrollbars unless needed */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-thumb {
    background-color: #cccccc;
    border-radius: 4px;
}

/* Heatmaps and figures should stay tight */
.plotly-graph-div {
    max-width: 100%;
    height: auto;
}
