/* 1. Basic Page and Body Styling */
body {
  background-color: #121212;
  color: #e0e0e0;
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 2. Chart Containers */
#chartContainer,
#avgPriceChangesContainer {
  position: relative;
  width: 100%;
  max-width: 1344px;
  height: 672px; /* Adjust as necessary */
  margin-bottom: 20px;
}

#avgPriceChangesContainer {
  margin-bottom: 2rem;
}
/* Ensure each canvas fills its container */
canvas {
  width: 100% !important;
  height: 100% !important;
}

/* 3. Status Area */
#statusArea {
  max-height: 200px;
  overflow-y: auto;
  background-color: #333;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.6;
  display: none; /* Hidden by default, displayed in development mode */
}

/* Scrollbar styling for status area */
#statusArea::-webkit-scrollbar {
  width: 8px;
}

#statusArea::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

#statusArea::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

#statusArea::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* 4. Sliders Container */
#sliders {
  width: 90%;
  max-width: 1200px;
  margin-bottom: 20px;
  display: none; /* Hidden by default, displayed in development mode */
}

#sliders div {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

#sliders h3 {
  margin-bottom: 10px;
  color: #e0e0e0;
  text-align: center;
}

#sliders label {
  flex: 1;
  font-size: 14px;
  color: #e0e0e0;
}

#sliders input[type="range"] {
  flex: 3;
  margin-left: 10px;
  width: 100%;
}

#sliders div > div {
  margin-bottom: 10px;
}

/* 5. Optional Glassmorphism Style */
.glass {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 20px;
  width: 90%;
  max-width: 1200px;
  margin-bottom: 20px;
}

#avgPercentTable {
  border: 1px solid rgba(255,255,255,0.2);
  color: #e0e0e0;
  margin-bottom: 2rem;
}

#avgPercentTable th, #avgPercentTable td {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px;
  text-align: center;
}

#avgPercentTable tr:hover {
  background-color: rgba(255,255,255,0.1);
  cursor: pointer;
}
