/* Default styles for all screens */
.dash-graph {
    width: 100%;
    max-width: 800px;
    height: 800px;
    box-sizing: border-box;
}

/* Adjustments for medium screens (e.g., iPads, ~768px-1024px) */
@media (max-width: 1024px) {
    .dash-graph {
        max-width: 100%; /* Full width on iPad */
        height: 600px; /* Reduced height for better fit */
    }
    .dash-row {
        flex-direction: column; /* Stack graphs vertically */
        align-items: center;
    }
    .dash-graph-container {
        width: 90% !important; /* Slightly narrower containers */
        padding: 5px;
    }
}

/* Adjustments for small screens (e.g., iPhones, ~320px-428px) */
@media (max-width: 768px) {
    .dash-graph {
        max-width: 100%;
        height: 400px; /* Further reduced height */
    }
    .dash-graph-container {
        width: 100% !important;
        padding: 2px;
    }
    .dash-dropdown {
        width: 100%;
        font-size: 14px;
    }
    .dash-slider {
        width: 90%;
    }
}

/* Custom classes for layout */
.dash-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.dash-graph-container {
    width: 50%;
    padding: 10px;
    box-sizing: border-box;
}