html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f4f4;
}

#chart-container {
  width: 100%;
  height: 100%;
  position: relative;
}

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

#chart-toggle-panel {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: move;
  z-index: 999;
  min-width: 230px;
  max-height: 90vh;
  overflow-y: auto;
  color: #333;
}

#chart-toggle-panel h4 {
  margin: 10px 0 5px;
  font-size: 16px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 3px;
}

#chart-toggle-panel .drag-handle {
  cursor: move;
  background: #ddd;
  padding: 6px 10px;
  border-radius: 10px 10px 0 0;
  font-weight: bold;
}

.chart-toggle-group {
  margin-bottom: 10px;
}

label {
  display: block;
  margin: 3px 0;
  font-size: 14px;
}

input[type="checkbox"] {
  margin-right: 6px;
}

.date-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

#start-date, #stop-date {
  width: 100%;
}

input[type="date"] {
  padding: 5px;
  font-size: 14px;
}

#panel-title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  text-decoration: underline;
  margin-bottom: 15px;
}

.toggle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #eee;
  padding: 5px 8px;
  border-radius: 6px;
  margin-top: 5px;
}

.toggle-header:hover {
  background: #ddd;
}

.toggle-header span {
  font-size: 16px;
  font-weight: bold;
}

.toggle-header button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #444;
}

.chart-toggle-group.collapsed {
  display: none;
}

.control-buttons {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.control-buttons button {
  flex: 1;
  padding: 8px;
  background: #555;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.control-buttons button:hover {
  background: #777;
}
