/* HealthCheck.css - styles for the /HealthCheck diagnostics page (web host only).
   Web-only, like FooterNav.css, so it lives here rather than in FCApp.Shared.
   Linked from FCApp.Web/Components/App.razor - bump the ?v= there after editing. */
/* Page shell — mirrors the gradient + centred column the other web pages use. */
.fc-hc {
    min-height: 60vh;
    background: linear-gradient(to bottom, var(--color-surface-info-bg) 0%, var(--color-surface-subtle) 100%);
    padding: var(--space-4) var(--space-2) var(--space-6);
    box-sizing: border-box;
}
.fc-hc-inner { max-width: 760px; margin: 0 auto; width: 100%; }

.fc-hc-head {
    display: flex; flex-wrap: wrap; gap: var(--space-2);
    align-items: center; justify-content: space-between;
    margin-bottom: var(--space-3);
}
.fc-hc-title {
    margin: 0; font-family: var(--font-heading);
    font-size: 28px; font-weight: 800; letter-spacing: -1px;
    color: var(--color-text-primary);
}
.fc-hc-actions { display: flex; align-items: center; gap: var(--space-2); }
.fc-hc-updated { font-family: var(--font-body); font-size: 14px; color: var(--color-text-muted); }
.fc-hc-refresh.mud-button-root {
    text-transform: none; border-radius: var(--radius-full, 28px);
    background-color: var(--color-brand-primary); color: var(--color-surface-default);
    font-weight: 600; padding: 8px 20px;
}

/* Cards — same white surface, radius and hairline as the rest of the app. */
.fc-hc-card {
    background: var(--color-surface-default);
    border-radius: var(--radius-lg, 16px);
    box-shadow: inset 0 0 0 1px var(--color-border);
    padding: var(--space-3);
    margin-bottom: var(--space-2);
}
.fc-hc-loading { color: var(--color-text-muted); font-family: var(--font-body); }

.fc-hc-status { display: flex; align-items: flex-start; gap: var(--space-2); }
.fc-hc-dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.fc-hc-status-label { font-family: var(--font-heading); font-size: 20px; font-weight: 800; letter-spacing: 0.4px; }
.fc-hc-status-desc { font-family: var(--font-body); font-size: 16px; line-height: 24px; color: var(--color-text-secondary); margin-top: 2px; }

/* Status colours reuse the brand/semantic tokens rather than introducing new ones. */
.fc-hc-status--healthy   .fc-hc-dot { background: #1B8A3A; }
.fc-hc-status--healthy   .fc-hc-status-label { color: #1B8A3A; }
.fc-hc-status--degraded  .fc-hc-dot { background: #8A5A00; }
.fc-hc-status--degraded  .fc-hc-status-label { color: #8A5A00; }
.fc-hc-status--unhealthy .fc-hc-dot { background: var(--color-brand-accent); }
.fc-hc-status--unhealthy .fc-hc-status-label { color: var(--color-brand-accent); }

.fc-hc-sub {
    margin: 0 0 var(--space-2); font-family: var(--font-heading);
    font-size: 20px; font-weight: 700; color: var(--color-text-primary);
}
.fc-hc-table { width: 100%; border-collapse: collapse; font-family: var(--font-body); font-size: 16px; }
.fc-hc-table th, .fc-hc-table td { text-align: left; padding: 10px 0; vertical-align: top; }
.fc-hc-table tr + tr > * { border-top: 1px solid var(--color-border); }
.fc-hc-table th { font-weight: 700; color: var(--color-text-primary); width: 46%; }
.fc-hc-table td { color: var(--color-text-secondary); overflow-wrap: anywhere; }

.fc-hc-note { font-family: var(--font-body); font-size: 14px; color: var(--color-text-muted); margin: var(--space-1) 0 0; }
.fc-hc-note code {
    background: var(--color-surface-subtle); padding: 2px 6px;
    border-radius: var(--radius-sm, 8px); font-size: 13px;
}

@media (max-width: 600px) {
    .fc-hc-title { font-size: 24px; }
    .fc-hc-head { flex-direction: column; align-items: flex-start; }
    .fc-hc-table th { width: 50%; }
}
