/**
 * Investment Calculator - Specific Styles
 */

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

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

.investment-calculator .breakdown-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.investment-calculator .breakdown-segment {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.investment-calculator .segment-label {
    font-size: 14px;
    color: var(--light-text);
}

.investment-calculator .segment-bar {
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.investment-calculator .segment-fill {
    height: 100%;
    width: 0;
    transition: width 1s ease;
}

.investment-calculator .principal-fill {
    background-color: var(--primary-color);
}

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

.investment-calculator .segment-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-dark);
    text-align: right;
}

.investment-calculator .investment-growth-table {
    margin-top: 30px;
}

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

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

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

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

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

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

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

.investment-calculator .investment-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.investment-calculator .summary-item {
    flex: 1 0 45%;
    min-width: 200px;
    background-color: #f5f9ff;
    border-radius: 6px;
    padding: 15px;
}

.investment-calculator .summary-label {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 5px;
}

.investment-calculator .summary-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Responsive styles */
@media (max-width: 768px) {
    .investment-calculator .summary-item {
        flex: 1 0 100%;
    }
}

@media (max-width: 480px) {
    .investment-calculator .segment-value {
        font-size: 14px;
    }
    
    .investment-calculator .summary-value {
        font-size: 16px;
    }
}