body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #f8f9fa;
  color: #333;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.calculator, .chart-container {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  flex: 1;
  min-width: 320px;
  max-width: 600px;
}

.toggle-title {
  color: #007bff;
}

.input-group {
  margin-bottom: 15px;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

button {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background-color: #28a745;
  color: white;
  transition: background 0.3s ease;
  cursor: pointer;
}

button:hover {
  background-color: #218838;
}

.results {
  margin-top: 20px;
  font-size: 1.1rem;
}

.results p {
  background: #e9f7ef;
  padding: 10px 15px;
  margin: 10px 0;
  border-left: 4px solid #28a745;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
}

.accordion .toggle-title {
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #dce7f1;
  padding: 16px 20px;
  margin-top: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: #007bff;
  transition: all 0.3s ease;
}

.accordion .toggle-title:hover {
  background-color: #f0f8ff;
  box-shadow: 0 6px 14px rgba(0, 123, 255, 0.1);
}

.accordion-content {
  display: none;
  transition: max-height 0.3s ease;
  overflow: hidden;
}

.accordion-header.active + .accordion-content {
  display: block;
}

.toggle-icon {
  font-size: 20px;
  color: #007bff;
  transition: transform 0.3s ease;
}

.toggle-title.open .toggle-icon {
  transform: rotate(45deg);
}

.toggle-content {
  display: none;
  padding: 18px 20px 10px 20px;
  background: #f9fbfc;
  border: 1px solid #e0e8f0;
  border-radius: 12px 12px 12px 12px;
  margin-bottom: 10px;
  animation: smoothDrop 0.3s ease-in-out;
}

.toggle-content.active {
  display: block;
}

@keyframes smoothDrop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.chart-container canvas {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 15px;
  }

  .calculator, .chart-container {
    width: 100%;
  }
}


.chart-container ul {
  padding-left: 20px;
  list-style-type: disc;
  color: #333;
  margin-top: 10px;
}
.chart-container h3 {
font-family: Roboto;
    font-size: 20px;
    font-weight: 600;
    margin-top: 30px;
}

.breakdown {
  margin-top: 30px;
}

.breakdown h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.breakdown p:first-of-type {
  font-style: italic;
  margin-bottom: 15px;
  color: #666;
}