/* ================================
   Value Iteration Widget Styles
   ================================ */

#vi-widget {
  background-color: #fff;
  padding: 30px;
  max-width: 700px;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
  color: #222;
}

/* Section heading inside widget */
#vi-widget h2 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: #111;
}

/* Label + control block */
#vi-widget label {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  font-size: 1rem;
  color: #333;
}

/* Slider value display (like: p = 0.4) */
#vi-widget label span {
  font-weight: 600;
  margin-bottom: 5px;
}

/* Sliders */
#vi-widget input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  border: 1px solid #bbb;
  outline: none;
  margin-top: 4px;
}

#vi-widget input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #007bff;
  border: 2px solid #333;
  cursor: pointer;
  margin-top: -5px;
}

#vi-widget input[type="range"]::-moz-range-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #007bff;
  border: 2px solid #333;
  cursor: pointer;
}

/* Checkbox wrapper
#vi-widget .checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
} */

/* Checkbox itself */
#vi-widget input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  -moz-appearance: checkbox !important;
  appearance: auto !important;
  width: 18px;
  height: 18px;
  border: 2px solid #666;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
}

#vi-widget input[type="checkbox"]:checked::after {
  content: '';
  position: relative;
  top: 2px;
  left: 6px;
  width: 4px;
  height: 10px;
  border: solid #007bff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}


/* Run button */
#vi-widget #run-button {
  background-color: #007bff;
  color: white;
  border: none;
  /* padding: 10px 20px; */
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#vi-widget #run-button:hover {
  background-color: #0056b3;
}

/* Chart styling */
#vi-widget canvas#policyChart {
  display: block;
  max-width: 100%;
  background-color: white;
  margin-top: 30px;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#policyChart,
#valueChart {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  margin-top: 30px;
}
#policyChart.visible,
#valueChart.visible {
  display: block;
  opacity: 1;
}

