/* wpChartBuilder Frontend Styles */

.wpchart-container {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    font-family: inherit;
}

.wpchart-canvas {
    min-height: 300px;
    width: 100%;
}

.wpchart-caption {
    text-align: center;
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    line-height: 1.5;
}

/* ApexCharts Overrides for better styling */
.wpchart-container .apexcharts-canvas {
    margin: 0 auto;
}

.wpchart-container .apexcharts-tooltip {
    font-family: inherit;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.wpchart-container .apexcharts-tooltip-title {
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.wpchart-container .apexcharts-xaxis-label,
.wpchart-container .apexcharts-yaxis-label {
    font-family: inherit;
}

/* Responsive */
@media (max-width: 600px) {
    .wpchart-canvas {
        min-height: 250px;
    }

    .wpchart-caption {
        font-size: 11px;
        padding: 10px;
    }
}

/* Print Styles */
@media print {
    .wpchart-container {
        page-break-inside: avoid;
    }

    .wpchart-canvas {
        min-height: auto;
    }
}
