body {
    font-family: sans-serif;
    margin: 20px;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: #333;
    text-align: center;
}

.controls {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex; /* For better alignment of controls */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 15px; /* Spacing between control items */
    align-items: center;
}

.controls label {
    /* margin-right: 10px; */ /* Replaced by gap */
}

.controls select, .controls input, .controls button {
    /* margin-right: 15px; */ /* Replaced by gap */
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.controls button {
    background-color: #5cb85c;
    color: white;
    cursor: pointer;
    border: none; /* Remove default button border if any */
}
.controls button:hover {
    background-color: #4cae4c;
}


#circadianCanvas {
    border: 1px solid #ccc;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.legend {
    margin-top: 20px;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 500px; /* Constrain width for better layout */
}

.legend p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.legend span {
    display: inline-block;
    width: 20px;
    height: 10px;
    margin-right: 10px;
    border: 1px solid #ccc;
}

.legend .optimal-zone-legend {
    background-color: rgba(0, 0, 255, 0.15); /* Light blue, semi-transparent */
    border: 1px dashed #0000CD; /* Medium blue dashed border */
    height: 15px; /* Make it a bit thicker to resemble a zone */
}

.info-text {
    margin-top: 25px;
    padding: 15px;
    background-color: #e9f5ff; /* Light blue background */
    border: 1px solid #cce0ff; /* Softer blue border */
    border-radius: 8px;
    max-width: 800px;
    font-size: 0.95em;
    line-height: 1.6;
}
.info-text h2 {
    margin-top: 0;
    color: #0056b3; /* Darker blue for heading */
}
.info-text ul {
    padding-left: 20px;
}
.info-text strong {
    color: #004085;
}