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

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

/* LEFT */
.cd-inputs{
  width:60%;
  background:#fff;
  padding:20px;
  border-radius:12px;
  box-shadow:0 5px 15px rgba(0,0,0,0.05);
}

/* RIGHT */
.cd-chart{
  width:40%;
  background:#fff;
  padding:20px;
  border-radius:12px;
  height:420px;
  display:flex;
  justify-content:center;
  align-items:center;
}

/* SLIDER BLOCK */
.slider-group{
  margin-top:20px;
}

.slider-header{
  display:flex;
  justify-content:space-between;
  font-weight:600;
  margin-bottom:5px;
}

.slider-value{
  color:#2e7d32;
}

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

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

/* DROPDOWN */
select{
  width:100%;
  padding:10px;
  margin-top:10px;
  border-radius:6px;
  border:1px solid #ddd;
}

/* RESULTS */
.results{
  margin-top:20px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.box{
  background:#eef3ff;
  padding:12px;
  text-align:center;
  border-radius:8px;
}

.box p{
  margin:0;
  font-size:13px;
}

.box h3{
  margin:5px 0;
  font-size:16px;
}

.table-container{
  margin-top:25px;
  overflow-x:auto;
}

table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}

th, td{
  padding:10px;
  border-bottom:1px solid #eee;
  text-align:center;
}

th{
  background:#f1f4ff;
}

tr:hover{
  background:#fafbff;
}

/* MOBILE */
@media(max-width:768px){
  .top-section{
    flex-direction:column;
  }
  .cd-inputs, .cd-chart{
    width:100%;
  }
  .results{
    grid-template-columns:1fr;
  }
}