* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

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

.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

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

.service-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e0;
    transition: background-color 0.3s ease;
}

.status-indicator.healthy .status-dot {
    background: #48bb78;
}

.status-indicator.unhealthy .status-dot {
    background: #f56565;
}

.status-indicator.checking .status-dot {
    background: #ed8936;
    animation: pulse 1.5s infinite;
}

.status-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
}

.service-description {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.health-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.health-btn:hover {
    background: #3182ce;
}

.health-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

.docs-link {
    color: #4299e1;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 2px solid #4299e1;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.docs-link:hover {
    background: #4299e1;
    color: white;
}

.service-details {
    margin-top: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 6px;
    border-left: 4px solid #4299e1;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    display: none;
}

.service-details.show {
    display: block;
}

.service-details pre {
    white-space: pre-wrap;
    word-break: break-word;
}

footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.api-link {
    margin-bottom: 1rem;
}

.api-link a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.api-link a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.last-updated {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    .container {
        padding: 1rem 0.5rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-actions {
        flex-direction: column;
    }
}