/* Form Versioning - Status and Version Display Styles */

/* Form-specific status colors (opaque bg + white text style).
 * See badge-system.css for the shared semantic color mapping.
 * These use a different visual treatment than the pastel badge tokens
 * (solid colors for high-contrast status indicators in grids). */
:root {
    --form-state-draft: #ffc107;
    --form-state-published: #28a745;
    --form-state-broken: #dc3545;
    --form-state-locked: #6c757d;
    --form-state-draft-rgb: 255, 193, 7;
    --form-state-published-rgb: 40, 167, 69;
    --form-state-broken-rgb: 220, 53, 69;
    --form-state-locked-rgb: 108, 117, 125;
}

/* Base badge styling */
.form-status-badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

/* Draft - yellow background with dark text for contrast */
.form-status-badge--draft {
    background-color: var(--form-state-draft);
    color: var(--bs-body-color);
}

/* Published - green background with white text */
.form-status-badge--published {
    background-color: var(--form-state-published);
    color: var(--bs-white);
}

/* Broken - red background with white text */
.form-status-badge--broken {
    background-color: var(--form-state-broken);
    color: var(--bs-white);
}

/* Locked - gray background with white text */
.form-status-badge--locked {
    background-color: var(--form-state-locked);
    color: var(--bs-white);
}

/* Version number display */
.form-version-display {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--bs-gray-700);
    font-variant-numeric: tabular-nums;
}

/* Validation health indicators — reusable across SuperAdmin grids */
.health-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.health-indicator--ok {
    color: var(--bs-success);
}

.health-indicator--warning {
    color: var(--bs-warning);
}

.health-indicator--error {
    color: var(--bs-danger);
}

.health-indicator__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}
