* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    color: #64748b;
}

.overall-status {
    text-align: center;
    margin-bottom: 3rem;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 600;
}

.status-indicator.operational {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-indicator.degraded {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-indicator.down {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-indicator.checking {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

.status-indicator.checking .dot {
    animation: pulse 1s infinite;
}

.status-indicator.down .dot {
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.services, .metrics, .incidents {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.services h2, .metrics h2, .incidents h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #f59e0b;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #334155;
}

.service-item:last-child {
    border-bottom: none;
}

.service-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.service-info p {
    font-size: 0.875rem;
    color: #64748b;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.service-status.operational {
    color: #22c55e;
}

.service-status.degraded {
    color: #f59e0b;
}

.service-status.down {
    color: #ef4444;
}

.service-status.checking {
    color: #64748b;
}

.service-status .dot {
    width: 8px;
    height: 8px;
}

.service-status.checking .dot {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.latency {
    font-size: 0.75rem;
    color: #64748b;
    margin-left: 0.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #f59e0b;
}

.metric-label {
    font-size: 0.875rem;
    color: #64748b;
}

.incident-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.incident {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #0f172a;
    border-radius: 8px;
}

.incident-date {
    font-size: 0.875rem;
    color: #64748b;
    min-width: 100px;
}

.incident-title {
    flex: 1;
}

.incident-status {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.incident-status.resolved {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.incident-status.investigating {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

footer {
    text-align: center;
    padding-top: 2rem;
    color: #64748b;
}

footer a {
    color: #f59e0b;
    text-decoration: none;
}

@media (max-width: 600px) {
    .container {
        padding: 2rem 1rem;
    }
    
    header h1 {
        font-size: 1.75rem;
    }
    
    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .incident {
        flex-direction: column;
        align-items: flex-start;
    }
}
