/* Health Monitor Component Styles */
.health-monitor {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.health-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.health-overall-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.health-indicator {
    font-size: 1.5rem;
    line-height: 1;
}

.health-refresh-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.health-refresh-btn:hover {
    background: var(--dark-purple);
}

.health-refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.health-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.health-service-card {
    background: var(--content-bg);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--border-color);
    transition: all 0.2s ease;
}

.health-service-card:hover {
    box-shadow: var(--shadow);
}

.health-service-card.healthy {
    border-left-color: #48BB78;
}

.health-service-card.degraded {
    border-left-color: #ECC94B;
}

.health-service-card.unhealthy {
    border-left-color: #F56565;
}

.health-service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.health-service-name {
    font-weight: 600;
    color: var(--text-primary);
}

.health-service-indicator {
    font-size: 1.2rem;
}

.health-service-details {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.health-service-metric {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.health-service-metric-label {
    color: var(--text-secondary);
}

.health-service-metric-value {
    font-weight: 500;
    color: var(--text-primary);
}

.health-timestamp {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.health-error {
    background: #FFF5F5;
    color: #C53030;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #F56565;
    margin-bottom: 1rem;
}

.health-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.health-loading::after {
    content: '...';
    animation: ellipsis 1.5s infinite;
}

@keyframes ellipsis {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

/* Agent Stats Section */
.agent-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.agent-stat-item {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.agent-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.agent-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
}

/* Pulse animation for active status */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
