.container {
  max-width:1000px;
  margin:auto;
  padding:20px;
}

h2 {
  text-align:center;
}

.top-section {
  display:flex;
  gap:30px;
  flex-wrap:wrap;
}

/* INPUT */
.inputs {
  flex:1;
}

/* TOGGLE */
.toggle {
  display:flex;
  background:#eee;
  border-radius:30px;
  overflow:hidden;
  margin-bottom:20px;
}

.toggle button {
  flex:1;
  padding:10px;
  border:none;
  cursor:pointer;
  background:none;
  font-weight:bold;
}

.toggle button.active {
  background:#00b386;
  color:#fff;
}

label {
  display:block;
  margin-top:20px;
  font-weight:bold;
}

/* SLIDER */
input[type=range] {
  width:100%;
  appearance:none;
  height:6px;
  border-radius:5px;
  background:#ddd;
}

input[type=range]::-webkit-slider-thumb {
  appearance:none;
  width:18px;
  height:18px;
  background:#00b386;
  border-radius:50%;
  cursor:pointer;
}

.value {
  font-size:14px;
  color:#555;
  margin-top:5px;
}

/* CHART */
.chart-box {
  width:260px;
  height:260px;
}

.chart {
  flex:1;
  display:flex;
  justify-content:center;
  align-items:center;
}

/* RESULTS */
.results {
  display:flex;
  gap:15px;
  margin-top:30px;
}

.box {
  flex:1;
  background:#fff;
  padding:15px;
  border-radius:10px;
  text-align:center;
  box-shadow:0 2px 6px rgba(0,0,0,0.1);
}

@media(max-width:768px){
  .results {
    flex-direction:column;
  }
}