.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    height: 100%;
    max-height: calc(100vh - 24px);
    display: flex;
    flex-direction: column;
}

.controls {
    margin: 20px 0;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.sensor-toggle {
    margin: 5px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 8px;
    background-color: white;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.sensor-toggle:hover {
    background-color: #eee;
}

.sensor-toggle input {
    margin-right: 8px;
}

.legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border-radius: 2px;
}

.time-controls {
    margin: 15px 0;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.button-group {
    display: inline-block;
    margin-right: 20px;
}

.button-group button {
    margin: 0 5px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.button-group button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.chart-container {
    position: relative;
    flex: 1;
    min-height: 0;
    margin-top: 12px;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#sensorChart {
    width: 100%;
    height: 100%;
}

.chart-controls-info {
    color: #666;
    font-size: 0.9em;
    margin-left: 12px;
    user-select: none;
}
