/* Shared Health Monitor Styles */
.health-monitor {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
}

.overall-status {
    font-size: 1.2em;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 25px;
}

.status-ok {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.endpoints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.endpoint-item {
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.endpoint-ok {
    border-color: #28a745;
    background: #f8fff9;
}

.endpoint-down {
    border-color: #dc3545;
    background: #fff8f8;
}

.endpoint-icon {
    font-weight: bold;
    font-size: 1.1em;
}

.endpoint-ok .endpoint-icon {
    color: #28a745;
}

.endpoint-down .endpoint-icon {
    color: #dc3545;
}

.endpoint-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.endpoint-port {
    font-size: 0.85em;
    color: #999;
    font-family: monospace;
}

.last-checked {
    margin-top: 20px;
    font-size: 0.85em;
    color: #666;
    text-align: center;
    font-style: italic;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .endpoints-grid {
        grid-template-columns: 1fr;
    }
    
    .health-monitor {
        padding: 20px;
    }
}