/* CSS per il frontend di ANIEF Statistiche */

.anief-statistiche-chart-container-frontend {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative; /* Needed for canvas to fill parent correctly */
    max-height: 500px; /* Limit the maximum height of chart containers */
}

.anief-statistiche-chart-container-frontend canvas {
    max-height: 100%;
    width: 100% !important; /* Ensure canvas fills width and respects max-height */
    height: 100% !important;
}

.anief-stat-shortcode-box {
    margin: 12px auto 0;
    max-width: 800px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
}

.anief-stat-shortcode-box code {
    display: inline-block;
    padding: 2px 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    user-select: all;
}

.anief-shortcode-message {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #1a7f37;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.anief-shortcode-message.is-visible {
    opacity: 1;
}

.anief-shortcode-message.is-error {
    color: #b91c1c;
}
