/* ===== CHARTS ===== */
.trend-chart-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-top: 20px;
}
.trend-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.trend-chart-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}
.trend-chart-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.trend-chart-container {
    position: relative;
    width: 100%;
    height: 220px;
}
.trend-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}
.trend-chart-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.trend-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.trend-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.trend-chart-tooltip {
    position: absolute;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.78rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    pointer-events: none;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.15s ease;
    min-width: 120px;
}
.trend-chart-tooltip.visible { opacity: 1; }
.trend-tooltip-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.trend-tooltip-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0;
}
.trend-tooltip-label {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Export button styles */
.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}
.export-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.export-btn svg {
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .trend-chart-container { height: 180px; }
    .trend-chart-card { padding: 16px; }
    .trend-chart-legend { gap: 10px; }
}
