body {
  font-family: sans-serif;
  margin: 20px;
}

.chart-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.chart-box {
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 8px;
  min-height: 300px; /* Ensure boxes have some minimum height */
  display: flex; /* Center canvas */
  justify-content: center;
  align-items: center;
}

canvas {
  max-width: 100%;
  max-height: 400px; /* Limit canvas height */
}

label {
  margin-right: 10px;
}

select,
button {
  padding: 8px;
  font-size: 1em;
}

h2 {
  text-align: center;
  grid-column: 1 / -1; /* Span across all columns */
  margin-bottom: 0;
}

#loadingMessage,
#errorMessage {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px;
  font-style: italic;
  color: #555;
}

#errorMessage {
  color: red;
}

#dashboardTitle {
  display: none;
  text-align: center;
  margin: 20px 0;
}

#dashboardTitle a {
  color: #0366d6;
  text-decoration: none;
  font-size: 1.5em;
  font-weight: bold;
}

#dashboardTitle a:hover {
  text-decoration: underline;
}

#lastUpdated {
  display: none;
  text-align: right;
  margin: 10px;
  font-style: italic;
}

#loadingMessage {
  display: none;
}

#errorMessage {
  display: none;
  color: red;
}

#chartContainer {
  display: none;
}

.notes-box {
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.notes-box h3 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
}

.notes-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.note {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 12px;
  border-left: 4px solid #ccc;
  font-size: 0.9em;
}

.note.warning {
  background: #fff3cd;
  border-left-color: #ffc107;
}

.note-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.85em;
  color: #666;
}

.note-icon {
  font-size: 1.2em;
}

.note-date {
  font-style: italic;
}

.note-message {
  line-height: 1.4;
}

.no-notes {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 20px;
  font-size: 0.9em;
}
