/**
 * Chart Empty States
 *
 * Styling for empty state messages displayed when charts have no data.
 * Works with both chart-factory.js and unified-risk-dashboard.js.
 */

.chart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    min-height: 150px;
    height: 100%;
}

.chart-empty-icon {
    color: var(--text-muted, #64748b);
    opacity: 0.5;
    margin-bottom: 0.75rem;
}

.chart-empty-icon svg {
    width: 48px;
    height: 48px;
}

.chart-empty-message {
    color: var(--text-secondary, #94a3b8);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 0 0.25rem 0;
}

.chart-empty-hint {
    color: var(--text-muted, #64748b);
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.8;
}

/* Dark mode adjustments */
[data-theme="dark"] .chart-empty-state {
    background: transparent;
}

/* Ensure container handles the empty state properly */
.chart-container {
    position: relative;
    min-height: 150px;
}

.chart-container .chart-empty-state {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Smaller variant for dashboard cards */
.dashboard-chart-sm .chart-empty-state {
    padding: 1rem;
    min-height: 100px;
}

.dashboard-chart-sm .chart-empty-icon svg {
    width: 32px;
    height: 32px;
}

.dashboard-chart-sm .chart-empty-message {
    font-size: 0.8125rem;
}

.dashboard-chart-sm .chart-empty-hint {
    font-size: 0.6875rem;
}
