/* Compound Calculator Specific Styles */

/* Effective Rate Display */
.effective-rate-container {
  grid-column: 1 / -1;
  padding: 10px;
  background: var(--bg-primary);
  border: 1px solid var(--accent-primary);
  border-radius: 8px;
  margin-top: 10px;
  text-align: center;
}

#effectiveRateDisplay {
  color: var(--accent-primary);
  font-weight: bold;
}

.info-btn {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  cursor: pointer;
  font-size: 12px;
}

.info-btn:hover {
  background: var(--accent-hover);
}

/* Outcome Section - Navy/Gold Theme */
.piggy-box {
  background: linear-gradient(135deg, #181c40 0%, #2a3052 100%);
  color: #ffffff;
  border: 3px solid #d8bd7d;
  position: relative;
}

[data-theme="dark"] .piggy-box {
  background: linear-gradient(135deg, #1f2447 0%, #2a3052 100%);
  border: 2px solid #d8bd7d;
}

.piggy-box h3 {
  color: #d8bd7d;
}

.outcome-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.outcome-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(216, 189, 125, 0.2);
}

.outcome-row span {
  color: rgba(255,255,255,0.9);
}

.outcome-row .value {
  color: #d8bd7d;
  font-weight: bold;
}

.outcome-row .final-balance {
  color: #d8bd7d;
  font-size: 1.2em;
  text-shadow: 0 0 10px rgba(216, 189, 125, 0.3);
}

/* Chart Container */
canvas {
  max-width: 100%;
  height: auto;
  background: var(--bg-primary);
  border-radius: 8px;
  padding: 10px;
}

[data-theme="dark"] .calc-section canvas {
  border: 3px solid #d8bd7d;
}

/* Button Container */
.button-container {
  grid-column: 1 / -1;
  text-align: center;
}

/* Add borders to all calculator sections */
.calc-section {
  border: 3px solid #d8bd7d;
}

[data-theme="light"] .calc-section {
  border: none;
}

/* Hero Section Override for Compound */
.hero {
  background: linear-gradient(135deg, #181c40 0%, #2a3052 100%);
  color: #d8bd7d;
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
}

[data-theme="light"] .hero {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero p {
  opacity: 0.95;
}

/* Table Styles with Gold Accents */
[data-theme="dark"] .calc-section table {
  border: 3px solid #d8bd7d;
  border-radius: 8px;
  overflow: hidden;
}

[data-theme="dark"] table th {
  background: #141631;
  color: #d8bd7d;
  font-weight: bold;
  border-bottom: 2px solid #d8bd7d;
}

[data-theme="dark"] table td {
  color: #ffffff;
  border-bottom: 1px solid rgba(216, 189, 125, 0.2);
}

/* Total row styling */
[data-theme="dark"] table tr:last-child {
  border-top: 2px solid #d8bd7d;
  background: rgba(216, 189, 125, 0.1);
}

[data-theme="dark"] table tr:last-child td {
  font-weight: bold;
  color: #d8bd7d;
  border-bottom: none;
  padding: 15px 10px;
}

[data-theme="dark"] table tr:last-child td:last-child {
  font-size: 1.3em;
  color: #d8bd7d;
  text-shadow: 0 0 10px rgba(216, 189, 125, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .outcome-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}