/* Tide Data Chart Styles - Version 2.11 */
.tdc-container {
    width: 100%;
    max-width: 800px; /* Cap width for larger screens */
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

#tideChart {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important; /* Allow Chart.js to manage height with aspect ratio */
    max-height: 400px;
    display: block;
    box-sizing: border-box;
}

.tdc-error {
    color: #d8000c;
    background-color: #ffd2d2;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    max-width: 100%;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .tdc-container {
        padding: 5px;
    }
    #tideChart {
        max-height: 300px;
    }
}

@media screen and (max-width: 480px) {
    .tdc-container {
        padding: 2px;
    }
    #tideChart {
        max-height: 250px;
    }
}