/* ============================================
   Charts Styles
   ============================================ */

.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

.chart-wrapper {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-black);
}

.chart-period-selector {
    display: flex;
    gap: 10px;
}

.period-btn {
    padding: 8px 16px;
    background: var(--color-gray-light);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.period-btn:hover,
.period-btn.active {
    background: var(--color-black);
    color: var(--color-primary);
}

/* Mini Chart for Cards */
.mini-chart {
    height: 60px;
    margin-top: 15px;
}

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

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

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

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

    .chart-wrapper {
        padding: 20px;
    }

    .chart-period-selector {
        flex-wrap: wrap;
    }

    .period-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

