/* Chart.js Custom Styling */
.chartjs-tooltip {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 0.5rem !important;
    box-shadow: var(--shadow) !important;
    font-family: inherit !important;
}

.chartjs-tooltip-title {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.chartjs-tooltip-body {
    color: var(--text-secondary) !important;
}

/* Custom chart container styles */
.chart-container {
    position: relative;
    height: 300px;
    margin: 1rem 0;
}

.chart-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Progress ring styles for custom charts */
.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke: var(--border-color);
    stroke-width: 4;
    fill: transparent;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 0.5s ease-in-out;
}

.progress-ring-circle.animate {
    stroke: var(--primary-color);
}

/* Mini charts for cards */
.mini-chart {
    width: 100%;
    height: 80px;
    margin-top: 0.5rem;
}

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