/* ================================
   Base & Layout Styling
   ================================ */

.ic-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.ic-calc-section {
  background: #fff;
  border: 1px solid #ccc;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 5px;
}

.ic-calc-section h2 {
  margin-top: 0;
  color: #2a2a2a;
  font-size: 1.4em;
}

.ic-calc-section p {
  margin-bottom: 15px;
  font-size: 1em;
  color: #555;
}

.ic-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}

.ic-row label {
  margin-right: 5px;
  font-weight: bold;
}

.ic-row span {
  margin: 0 5px;

}

.ic-row input,
.ic-row select {
  margin-right: 5px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 1em;
}

/* Buttons */
.ic-btn {
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  margin-right: 5px;
  font-size: 1em;
}

.ic-btn-calc {
  background-color: #4CAF50;
  color: #fff;
}

.ic-btn-clear {
  background-color: #999;
  color: #fff;
}

/* Result bar */
.ic-result-bar {
  background-color: #4CAF50;
  color: #fff;
  padding: 10px;
  margin-top: 10px;
  border-radius: 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.ic-save-icon {
  font-size: 1em;
  font-weight: normal;
  cursor: pointer;
}

/* Result text */
.ic-result {
  margin-top: 10px;
  font-weight: bold;
  color: #333;
  font-size: 1em;
  line-height: 1.4em;
}

/* Chart container (for the first calculator) */
.ic-chart-container {
  width: 100%;
  max-width: 600px;
  margin: 20px auto 10px auto;
}
.ic-chart-container canvas {
  width: 100%;
  height: 300px;
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* ================================
   Mobile Responsiveness
   ================================ */
@media (max-width: 768px) {
  .ic-container {
    padding: 10px;
  }
  .ic-calc-section {
    padding: 10px;
  }
  .ic-calc-section h2 {
    font-size: 1.3em;
  }
  .ic-calc-section p {
    font-size: 0.95em;
  }
  .ic-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .ic-row input,
  .ic-row select {
    margin: 5px 0;
    width: 100%;
    box-sizing: border-box;
  }
  .ic-btn {
    width: 48%;
    margin: 5px 1%;
    font-size: 1em;
  }
  .ic-result-bar {
    flex-direction: column;
    text-align: center;
  }
  .ic-chart-container {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .ic-btn {
    width: 100%;
    margin: 5px 0;
  }
  .ic-row label,
  .ic-row span {
    font-size: 0.9em;
  }
  .ic-row input,
  .ic-row select {
    font-size: 0.9em;
  }
  .ic-result {
    font-size: 0.95em;
  }
}
