/**
 * Compound Interest Calculator - Specific Styles
 */

.compound-interest-calculator .investment-summary {
    margin-top: 20px;
    background-color: #f5f9ff;
    border-radius: 6px;
    padding: 15px;
}

.compound-interest-calculator .summary-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.compound-interest-calculator .summary-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.compound-interest-calculator .pie-chart {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #f0f0f0;
    overflow: hidden;
}

.compound-interest-calculator .pie-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: 50% 50%;
    transition: all 1s ease;
}

.compound-interest-calculator .principal-segment {
    background-color: var(--primary-color);
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%, 50% 50%);
    z-index: 2;
}

.compound-interest-calculator .interest-segment {
    background-color: var(--secondary-color);
    clip-path: polygon(50% 0%, 0% 0%, 0% 100%, 50% 100%, 50% 50%);
    z-index: 1;
}

.compound-interest-calculator .pie-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compound-interest-calculator .legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.compound-interest-calculator .legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.compound-interest-calculator .principal-color {
    background-color: var(--primary-color);
}

.compound-interest-calculator .interest-color {
    background-color: var(--secondary-color);
}

.compound-interest-calculator .legend-label {
    flex: 1;
    font-size: 14px;
    color: var(--light-text);
}

.compound-interest-calculator .legend-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-dark);
    min-width: 60px;
    text-align: right;
}

.compound-interest-calculator .growth-table-section {
    margin-top: 30px;
}

.compound-interest-calculator .growth-table-section h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--primary-dark);
}

.compound-interest-calculator .growth-table {
    width: 100%;
    overflow-x: auto;
}

.compound-interest-calculator .growth-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 800px;
}

.compound-interest-calculator .growth-table th,
.compound-interest-calculator .growth-table td {
    padding: 10px;
    border: 1px solid var(--border-color);
    text-align: right;
}

.compound-interest-calculator .growth-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    text-align: center;
}

.compound-interest-calculator .growth-table tr:hover {
    background-color: #f9f9f9;
}

.compound-interest-calculator .milestone-row {
    background-color: #f5f9ff;
    font-weight: 600;
}

/* Responsive styles */
@media (max-width: 768px) {
    .compound-interest-calculator .summary-chart {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .compound-interest-calculator .pie-legend {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .compound-interest-calculator .pie-chart {
        width: 120px;
        height: 120px;
    }
    
    .compound-interest-calculator .legend-item {
        font-size: 13px;
    }
}