:root{
  --leaf: #2e7d32;
  --moss: #8bc34a;
  --soil: #8d6e63;
  --bg: #ffffff;
  --card-bg: #fbfff9;
  --text: #09301a;
  --muted: #4f5b50;
  --border: #e6efe6;
}

body{
  font-family:'Segoe UI',sans-serif;
  background:var(--bg);
  color:var(--text);
  padding:16px;
}

.container{
  max-width:900px;
  margin:auto;
  background:var(--card-bg);
  padding:20px;
  border-radius:16px;
  border:1px solid var(--border);
  box-shadow:0 8px 20px rgba(46,125,50,0.06);
}

h1{
  text-align:center;
  margin-bottom:20px;
  font-size:1.8rem;
}

.flex-row{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.flex-col{
  flex:1;
  min-width:200px;
}

h3{
  margin-top:0;
  margin-bottom:12px;
  color:var(--leaf);
}

.slider-group{
  margin-bottom:16px;
}

.slider-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:4px;
}

.slider-group label{
  font-weight:600;
}

.slider-group input[type=number]{
  padding:6px 8px;
  border-radius:8px;
  border:1px solid var(--border);
  width:120px;
  font-weight:600;
}

input[type=range]{
  -webkit-appearance:none;
  height:10px;
  width:100%;
  border-radius:999px;
  background:#ecf7ea;
  outline:none;
  margin-top:4px;
}

input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:20px;
  height:20px;
  border-radius:50%;
  background:var(--leaf);
  border:3px solid rgba(255,255,255,0.4);
  box-shadow:0 2px 6px rgba(46,125,50,0.25);
}

input[type=range]::-moz-range-thumb{
  width:20px;
  height:20px;
  border-radius:50%;
  background:var(--leaf);
  border:3px solid rgba(255,255,255,0.4);
}

.tab-container{
  display:flex;
  gap:6px;
  /*margin-top:12px;*/
  margin-bottom:12px;
}

.tab-container input[type="radio"]{display:none;}

.tab-container label{
  flex:1;
  text-align:center;
  padding:6px 0;
  border-radius:10px;
  border:1px solid var(--border);
  background: rgba(46,125,50,0.08);
  font-weight:600;
  cursor:pointer;
  font-size:0.85rem;
  transition:all 0.3s ease;
  user-select:none;
}

.tab-container input[type="radio"]:checked + label{
  background:var(--leaf);
  color:#fff;
  border-color:var(--leaf);
  box-shadow:0 2px 4px rgba(46,125,50,0.3);
}

.output{
  margin-top:20px;
  padding:16px;
  border-radius:12px;
  background:#ffffff;
  box-shadow:0 1px 3px rgba(0,0,0,0.08);
  display:flex;          /* changed from grid */
  gap:20px;
  flex-wrap:wrap;
}

.output-left{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:20px;
}

.output-section h4{
  margin-bottom:8px;
  border-bottom:2px solid var(--border);
  padding-bottom:4px;
  color:var(--leaf);
}

.cost-comparison-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.cost-comparison-row p{
  flex:1;
  margin:4px 0;
}

/* Chart container */
.output-right{
  flex:1;
  display:flex;
  justify-content:center;
  align-items:center;
  min-width:250px;
}

/* Responsive */
@media(max-width:768px){
  .output{
    flex-direction:column;
  }
}