/* Chart Styling */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Custom tooltip styling */
.chart-tooltip {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1000;
}

/* Legend styling */
.chart-legend {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    margin-right: 5px;
}

/* Specific chart customizations */
#net-worth-chart {
    margin-bottom: 10px;
}

#cost-breakdown-chart {
    margin-bottom: 10px;
}

#tax-impact-chart {
    margin-bottom: 10px;
}

#sensitivity-chart {
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chart-container {
        height: 250px;
    }
}

/* Animation for charts */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.chart-container canvas {
    animation: fadeIn 0.5s ease-in-out;
}

/* Custom styling for chart axes */
.chart-axis-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* Styling for chart data points */
.chart-data-point {
    cursor: pointer;
    transition: all 0.2s;
}

.chart-data-point:hover {
    transform: scale(1.2);
}
