/* EOQ Visualization Styles - matching HTML version */
.eoq-container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.eoq-title {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 2em;
  font-weight: normal;
}

.eoq-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.eoq-control-group {
  display: flex;
  flex-direction: column;
}

.eoq-controls label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.eoq-controls input[type="range"] {
  width: 100%;
  margin: 5px 0;
  height: 6px;
  border-radius: 3px;
  background: #ddd;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.eoq-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.eoq-controls input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.eoq-value-display {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-top: 5px;
  font-weight: 600;
  background: white;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.eoq-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.eoq-checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  cursor: pointer;
}

.eoq-chart-container {
  width: 100%;
  height: 400px;
  border: 1px solid #ddd;
  border-radius: 8px;
  position: relative;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eoq-info-box {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 15px;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 200px;
}

/* ObservableJS specific overrides */
.eoq-container .observablehq svg {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  width: 100%;
  height: 100%;
}

.eoq-container .grid line {
  stroke: #e0e0e0;
  stroke-opacity: 0.7;
}

.eoq-container .line {
  fill: none;
  stroke: #2563eb;
  stroke-width: 2;
}

.eoq-container .title {
  font-size: 16px;
  font-weight: 600;
  text-anchor: middle;
  fill: #333;
}

.eoq-container .axis-label {
  font-size: 14px;
  text-anchor: middle;
  fill: #666;
}

.eoq-container .axis {
  font-size: 12px;
}

.eoq-container .domain {
  stroke: #666;
}

.eoq-container .tick line {
  stroke: #666;
}

.eoq-container .tick text {
  fill: #666;
  font-size: 12px;
}

/* Responsive design */
@media (max-width: 768px) {
  .eoq-controls {
    grid-template-columns: 1fr;
    padding: 15px;
  }
  
  .eoq-chart-container {
    height: 300px;
  }
  
  .eoq-info-box {
    position: static;
    margin-top: 15px;
    max-width: none;
  }
}
