/* ── Compound Interest Calculator Specific Styles ───────────────────────
   Loaded after shared/styles.css for overrides and additions.
   ──────────────────────────────────────────────────────────────────── */

/* ── Future Value Banner ─────────────────────────────────────────── */

.compound-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-gradient-dark) 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
}

.compound-banner-label {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 6px;
}

.compound-banner-value {
    font-size: 2.4rem;
    font-weight: bold;
}

.compound-banner-subtitle {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 6px;
}

/* ── Breakdown Table ─────────────────────────────────────────────── */

.breakdown-table-wrapper {
    overflow-x: auto;
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.breakdown-table thead th {
    background: var(--surface-card);
    padding: 10px 12px;
    text-align: right;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid var(--border-light);
}

.breakdown-table thead th:first-child {
    text-align: center;
}

.breakdown-table tbody td {
    padding: 8px 12px;
    text-align: right;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.breakdown-table tbody td:first-child {
    text-align: center;
    font-weight: 600;
    color: var(--color-primary);
}

.breakdown-table tbody tr:hover {
    background: var(--color-light-tint, #f2f9ef);
}

/* ── Collapsible Section Toggle ──────────────────────────────────── */

.section-toggle {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 28px;
}

.section-toggle::after {
    content: '\25B2';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7em;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.section-toggle.collapsed::after {
    transform: translateY(-50%) rotate(180deg);
}

.collapsed {
    display: none;
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .compound-banner-value {
        font-size: 1.8rem;
    }

    .breakdown-table {
        font-size: 0.82rem;
    }

    .breakdown-table thead th,
    .breakdown-table tbody td {
        padding: 6px 8px;
    }
}
