.compound-calculator {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    background: #fcfcfc;
}

.compound-calculator h1 {
    font-size: 24px;
    margin-top: 0;
    color: #333;
}

.compound-calculator .input-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    margin-bottom: 20px;
}

.compound-calculator .input-row {
    flex: 1 1 calc(50% - 30px);
    min-width: 200px;
}

.compound-calculator .input-row label {
    display: inline-block;
    width: 140px;
    font-weight: bold;
}

.compound-calculator .input-row input,
.compound-calculator .input-row select {
    width: 120px;
    padding: 5px;
}

.compound-calculator .buttons {
    text-align: center;
    margin-bottom: 20px;
}

.compound-calculator .buttons button {
    padding: 8px 20px;
    margin: 0 10px;
    background: #007cba;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.compound-calculator .buttons button:hover {
    background: #005a87;
}

.compound-calculator .buttons button#clear-btn {
    background: #ccc;
    color: #333;
}

.compound-calculator .buttons button#clear-btn:hover {
    background: #aaa;
}

/* Results */
#results {
    margin-top: 25px;
    border-top: 2px solid #eee;
    padding-top: 20px;
}

.result-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 25px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

.future-value {
    flex: 2;
}

.future-value .label {
    font-size: 16px;
    color: #555;
    display: block;
}

.future-value .amount {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
}

.stats {
    flex: 1;
    display: flex;
    gap: 30px;
    align-items: center;
}

.stat {
    text-align: center;
}

.stat .stat-label {
    display: block;
    font-size: 14px;
    color: #777;
}

.stat .stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
}

.chart-container {
    margin: 20px 0;
    text-align: center;
}

#growth-chart {
    max-width: 100%;
    height: auto;
}

.table-container {
    margin-top: 20px;
}

.table-container h3 {
    margin-bottom: 10px;
}

#yearly-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#yearly-table th,
#yearly-table td {
    border: 1px solid #ddd;
    padding: 6px 10px;
    text-align: right;
}

#yearly-table th {
    background: #f2f2f2;
    text-align: center;
}

#yearly-table td:first-child {
    text-align: center;
}

#yearly-table tr:nth-child(even) {
    background: #fafafa;
}