@import url("../calculators-common.css");
@import url("../tables.css");

/* Result Grid */
.calc-result-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .calc-result-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Input Wrappers (Icon position) */
.calc-input-wrapper {
  position: relative;
}

.calc-input-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.calc-input-icon-left {
  left: 0.75rem;
}
.calc-input-icon-right {
  right: 0.75rem;
}

/* Adjusted Input Padding */
.calc-input-pad-left {
  padding-left: 2rem !important;
}
.calc-input-pad-right {
  padding-right: 2rem !important;
}

/* Inner Container */
.calc-inner-container {
  margin-left: auto;
  margin-right: auto;
  padding: 0.25rem;
}

/* Summary Cards Container */
.summary-cards-container {
  display: grid;
  gap: 0.5rem;
  height: fit-content;
}

/* Summary Card Icon */
.summary-card-icon {
  font-size: 1.875rem; /* 3xl */
  line-height: 2.25rem;
}

/* Breakdown Title */
.breakdown-title {
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.125rem; /* text-lg */
  color: #1f2937; /* gray-800 */
}

.dark .breakdown-title {
  color: #e5e7eb; /* gray-200 */
}

/* Result Table Text Utilities */
.table-text-medium {
  font-weight: 500;
}

.table-text-bold {
  font-weight: 700;
}

/* Summary Cards */
.summary-principal {
  border-left: 4px solid #3b82f6 !important;
}
.summary-text-principal {
  color: #3b82f6 !important;
}

.summary-maturity {
  border-left: 4px solid #10b981 !important;
}
.summary-text-maturity {
  color: #10b981 !important;
}

.summary-interest {
  border-left: 4px solid #a855f7 !important;
}
.summary-text-interest {
  color: #a855f7 !important;
}

/* Charts */
.chart-section {
  width: 100%;
  min-height: 300px;
  background-color: var(--card-bg);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.chart-title {
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

/* Label Row */
.calc-label-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* Grids */
.calc-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem; /* gap-5 */
}
@media (min-width: 768px) {
  .calc-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Submit Container */
.calc-submit-container {
  padding-top: 0.5rem;
  text-align: center;
}

.calc-btn-half {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .calc-btn-half {
    width: 50%;
    margin: 0 auto;
  }
}

/* Table Text Colors */
.text-green-semantic {
  color: #16a34a; /* green-600 */
}
.dark .text-green-semantic {
  color: #4ade80; /* green-400 */
}

.text-red-semantic {
  color: #dc2626; /* red-600 */
}
.dark .text-red-semantic {
  color: #f87171; /* red-400 */
}
