/* ============================================
   SATYAM ASSOCIATES — Calculator Styles
   ============================================ */

/* ====== CALCULATOR SECTION ====== */
.calculators {
  background: var(--bg-secondary);
}

/* ====== CALCULATOR TABS ====== */
.calc-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 6px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.calc-tab {
  flex: 1;
  padding: 14px 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-align: center;
  cursor: pointer;
  border: none;
  background: none;
}

.calc-tab:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.calc-tab.active {
  background: var(--primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

/* ====== CALCULATOR CONTAINER ====== */
.calc-container {
  display: none;
  animation: fadeInUp 0.4s ease forwards;
}

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

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
}

/* ====== CALCULATOR INPUTS ====== */
.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.calc-input-group {
  position: relative;
}

.calc-input-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.calc-input-group__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

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

.calc-input-group__input {
  width: 160px;
  padding: 8px 12px;
  padding-left: 24px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--primary);
  text-align: right;
  background: var(--bg-secondary);
  transition: all var(--transition-fast);
}

.calc-input-group__input:focus {
  outline: none;
  border-color: var(--secondary);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(197, 150, 46, 0.1);
}

.calc-input-group__prefix {
  position: absolute;
  left: 12px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-tertiary);
  pointer-events: none;
}

.calc-input-group__suffix {
  margin-left: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-tertiary);
}

/* Range Slider */
.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border-light);
  outline: none;
  cursor: pointer;
  position: relative;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(197, 150, 46, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 12px rgba(197, 150, 46, 0.4);
}

.calc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(197, 150, 46, 0.3);
  cursor: pointer;
}

.calc-slider:active::-webkit-slider-thumb {
  transform: scale(1.2);
}

/* Slider track fill */
.calc-slider {
  background: linear-gradient(
    to right,
    var(--secondary) 0%,
    var(--secondary) var(--slider-fill, 50%),
    var(--border-light) var(--slider-fill, 50%),
    var(--border-light) 100%
  );
}

/* ====== CALCULATOR RESULTS ====== */
.calc-results {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-chart-wrapper {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto var(--space-8);
}

.calc-chart-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

.calc-chart-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  width: 100%;
}

.calc-chart-center__label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.calc-chart-center__value {
  font-family: var(--font-body) !important;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
  word-spacing: 2px;
  white-space: nowrap;
}

/* Result cards */
.calc-result-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.calc-result-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.calc-result-card:hover {
  background: var(--bg-tertiary);
}

.calc-result-card--total {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
}

.calc-result-card--total:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.calc-result-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.calc-result-dot--invested {
  background: var(--primary);
}

.calc-result-dot--returns {
  background: var(--secondary);
}

.calc-result-dot--withdrawn {
  background: #D64545;
}

.calc-result-dot--remaining {
  background: var(--accent);
}

.calc-result-card__info {
  flex: 1;
}

.calc-result-card__label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calc-result-card--total .calc-result-card__label {
  color: rgba(255, 255, 255, 0.7);
}

.calc-result-card__value {
  font-family: var(--font-body) !important;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  word-spacing: 5px;
}

.calc-result-card--total .calc-result-card__value {
  color: var(--secondary-light);
  font-size: var(--text-2xl);
  font-weight: 800;
  word-spacing: 5px;
}

/* Disclaimer */
.calc-disclaimer {
  margin-top: var(--space-8);
  padding: var(--space-4) var(--space-5);
  background: rgba(197, 150, 46, 0.06);
  border-left: 3px solid var(--secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: 1.7;
}

/* ====== CALCULATOR CTA ====== */
.calc-cta {
  text-align: center;
  margin-top: var(--space-10);
  padding: var(--space-8);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  color: white;
}

.calc-cta__text {
  font-size: var(--text-lg);
  color: var(--text-inverse-secondary);
  margin-bottom: var(--space-5);
}

.calc-cta__text strong {
  color: var(--secondary-light);
}
