/* ==========================================================================
   TURBO GRANA - FINANCIAL CALCULATORS STYLES
   ========================================================================== */

.calculators-hub-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.calculators-hub-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.calculators-hub-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

.calculator-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.calc-tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.calc-tab-btn:hover {
  border-color: var(--emerald-green);
  color: var(--emerald-green);
}

.calc-tab-btn.active {
  background: var(--emerald-green);
  color: white;
  border-color: var(--emerald-green);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Calculator Card Container */
.calculator-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 2.25rem;
  margin-bottom: 2.5rem;
}

.calc-panel {
  display: none;
}

.calc-panel.active {
  display: block;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

/* Form inputs */
.calc-form-group {
  margin-bottom: 1.25rem;
}

.calc-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 0.4rem;
}

.calc-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.calc-input-prefix {
  position: absolute;
  left: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.calc-input {
  width: 100%;
  padding: 0.75rem 0.85rem 0.75rem 2.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.calc-input:focus {
  border-color: var(--emerald-green);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.calc-input-no-prefix {
  padding-left: 0.85rem;
}

.calc-select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  background-color: #ffffff;
}

.calc-slider {
  width: 100%;
  margin-top: 0.5rem;
  accent-color: var(--emerald-green);
}

.btn-calculate {
  background: var(--emerald-green);
  color: white;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  width: 100%;
  cursor: pointer;
  margin-top: 0.75rem;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
  transition: var(--transition);
}

.btn-calculate:hover {
  background: var(--emerald-light);
  transform: translateY(-2px);
}

/* Results Display */
.calc-results-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.results-header {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.result-highlight-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.result-highlight-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.result-highlight-val {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--emerald-light);
}

.result-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
}

/* Simple visual chart container */
.visual-bar-chart {
  margin-top: 1rem;
}

.bar-progress-container {
  height: 24px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
}

.bar-invested {
  background: #0284c7;
  height: 100%;
  transition: width 0.5s ease;
}

.bar-interest {
  background: var(--emerald-green);
  height: 100%;
  transition: width 0.5s ease;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .calculator-card {
    padding: 1.25rem;
  }
}
