/* file: /health/css/health.css */
:root {
    --status-operational: #28a745;
    --status-degraded: #ffc107;
    --status-outage: #dc3545;
    --status-unknown: #6c757d;
    --color-surface: #ffffff;
    --color-border: #e0e0e0;
    --color-text-primary: #212529;
    --color-text-secondary: #6c757d;
    --border-radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
}

.bnl-health-page .page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.bnl-health-page .page-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

#health-status-container {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    min-height: 200px;
}

.health-component {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.health-component:last-child {
    border-bottom: none;
}

.health-component .component-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.health-component .component-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.status-indicator {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    color: #fff;
    font-size: 0.9rem;
}

.status-indicator.operational { background-color: var(--status-operational); }
.status-indicator.degraded { background-color: var(--status-degraded); color: var(--color-text-primary); }
.status-indicator.outage { background-color: var(--status-outage); }
.status-indicator.unknown { background-color: var(--status-unknown); }


.status-legend {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
}
.status-legend h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.status-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.status-legend li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.status-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}
.status-icon.operational { background-color: var(--status-operational); }
.status-icon.degraded { background-color: var(--status-degraded); }
.status-icon.outage { background-color: var(--status-outage); }
.status-icon.unknown { background-color: var(--status-unknown); }

.bnl-health-page .last-updated {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
    color: var(--color-text-secondary);
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-radius: 50%;
    border-top-color: #333;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
