/*
 * File Path: assets/css/admin/dashboard/dashboard-health.css
 * Dashboard -- Health score bar, status indicators, system status table,
 * release pipeline list, health bar color modifiers.
 * Component of mbs-admin-dashboard.css (R-014).
 */

/* ── Health score ─────────────────────────────────────────────────────────── */
.mbs-health-bar-wrap {
    background: #f0f0f1;
    border-radius: 4px;
    height: 12px;
    margin-bottom: 8px;
    overflow: hidden;
}

.mbs-health-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--wp-admin-theme-color, var(--mbs-status-info));
    transition: width 0.4s ease;
}

.mbs-health-summary {
    font-size: 13px;
    color: #646970;
    margin-bottom: 12px;
}

.mbs-health-drill {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
}

.mbs-health-drill li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f1;
    gap: 8px;
}

.mbs-health-drill li:last-child { border-bottom: none; }

/* ── Status indicators ────────────────────────────────────────────────────── */
.mbs-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.mbs-status-green   { color: var(--mbs-status-ok); }
.mbs-status-amber   { color: #dba617; }
.mbs-status-red     { color: var(--mbs-status-err); }
.mbs-status-gray    { color: #8c8f94; }

.mbs-dot-green  { background: var(--mbs-status-ok); }
.mbs-dot-amber  { background: #dba617; }
.mbs-dot-red    { background: var(--mbs-status-err); }
.mbs-dot-gray   { background: #8c8f94; }

/* ── System status table ──────────────────────────────────────────────────── */
.mbs-status-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.mbs-status-table td {
    padding: 6px 4px;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: middle;
}

.mbs-status-table tr:last-child td {
    border-bottom: none;
}

.mbs-status-table .mbs-status-label {
    color: #646970;
    width: 40%;
}

/* ── Release pipeline ─────────────────────────────────────────────────────── */
.mbs-pipeline-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
}

.mbs-pipeline-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f1;
}

.mbs-pipeline-list li:last-child { border-bottom: none; }

.mbs-pipeline-date {
    font-size: 11px;
    color: #646970;
    white-space: nowrap;
    min-width: 80px;
}


/* ── Health bar fill color modifiers ─────────────────────────────────────── */
.mbs-health-bar-fill--green  { background: var(--mbs-status-ok); }
.mbs-health-bar-fill--amber  { background: #dba617; }
.mbs-health-bar-fill--red    { background: #646970; }

