/* Investment Calculator Styles (Scoped to .investment-calculator) */

.investment-calculator {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Container */
.investment-calculator .calculator-container {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 20px;
  max-width: 800px;
  width: 100%;
  color: #1f2937 !important; /* High contrast for all child text */
}

/* Inputs */
.investment-calculator .input-container {
  flex: 1;
  margin-right: 30px;
  max-width: 400px;
}

.investment-calculator .input-container h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #111827 !important; /* Darker for accessibility */
  font-weight: 600;
}

.investment-calculator label {
  display: block;
  margin-bottom: 8px;
  color: #1f2937 !important;
}

.investment-calculator input {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
  color: #111827 !important;
}

/* Buttons */
.investment-calculator button {
  padding: 10px 20px;
  background-color: #005bbb;
  color: #ffffff !important;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.investment-calculator button:hover {
  background-color: #004a8c;
}

/* CLEAR button – improved contrast */
.investment-calculator .clear-btn {
    background-color: #b36200 !important; /* darker orange for contrast */
    color: #ffffff !important;
}

.investment-calculator .clear-btn:hover {
  background-color: #a56300 !important;
}

/* Output Section */
.investment-calculator .output-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.investment-calculator .circle-chart {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  text-align: center;
}

.investment-calculator #progressCircle {
  transition: stroke-dashoffset 0.5s ease;
}

/* Output value in center */
.investment-calculator #futureValue {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  color: #111827 !important; /* Improved contrast */
  font-weight: bold;
}

/* Financial info section */
.investment-calculator .financial-info {
  margin-top: 30px;
  text-align: center;
  font-size: 18px;
  color: #1f2937 !important;
}

.investment-calculator .financial-info p {
  margin: 5px 0;
}

/* Labels in financial summary */
.investment-calculator .financial-info strong {
  font-weight: bold;
  color: #005bbb;
}

.investment-calculator .financial-info span {
  font-weight: bold;
  color: #111827 !important; /* fallback contrast */
}

/* Specific colored values */
.investment-calculator .financial-info p:nth-child(2) span {
  color: #b66a00 !important; /* darker than #f39c12 for contrast */
}

.investment-calculator .financial-info p:nth-child(3) span {
  color: #1b7f32 !important; /* darker green for contrast */
}

/* Mobile view adjustments */
@media (max-width: 768px) {
  .investment-calculator .calculator-container {
    flex-direction: column;
    padding: 15px;
  }

  .investment-calculator .input-container {
    margin-bottom: 20px;
  }

  .investment-calculator .output-container {
    margin-top: 20px;
  }

  .investment-calculator .circle-chart {
    margin-bottom: 20px;
  }
}
