/* ─── Shared UI State Styles ──────────────────────────────────────────────────
 * Centralized empty, loading, error, and guidance state styling.
 * Used by js/services/ui-states.js — imported on all pages via theme.css or direct link.
 * ────────────────────────────────────────────────────────────────────────────── */

/* ─── Empty State ───────────────────────────────────────────────────────────── */

.ui-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--brand-text-muted, #6c757d);
}

.ui-empty-state > i {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.4;
    display: block;
}

.ui-empty-state > h5 {
    color: var(--brand-text, #333);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ui-empty-state > p {
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ─── Loading State ─────────────────────────────────────────────────────────── */

.ui-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    color: var(--brand-text-muted, #6c757d);
}

.ui-loading-state > p {
    font-size: 0.9rem;
}

/* ─── Error State ───────────────────────────────────────────────────────────── */

.ui-error-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--brand-text-muted, #6c757d);
}

.ui-error-state > i {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    color: var(--brand-danger, #dc3545);
    opacity: 0.6;
    display: block;
}

.ui-error-state > h5 {
    color: var(--brand-text, #333);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ui-error-state > p {
    font-size: 0.9rem;
    max-width: 450px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ─── Inline Guidance ───────────────────────────────────────────────────────── */

.ui-inline-guidance {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border-radius: var(--brand-radius-sm, 6px);
    background: var(--brand-card-bg, #f8f9fa);
    border: 1px solid currentColor;
    opacity: 0.85;
}

.ui-inline-guidance > i {
    flex-shrink: 0;
    font-size: 1rem;
}

/* ─── Grid Compatibility ────────────────────────────────────────────────────── */
/* When inside CSS Grid containers, states span all columns */

.ui-empty-state,
.ui-loading-state,
.ui-error-state {
    grid-column: 1 / -1;
}
