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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    padding: 40px 0;
    border-bottom: 1px solid #e2e8f0;
    background: white;
    margin: 0 -20px 40px -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.tagline {
    color: #64748b;
    font-size: 1.1rem;
}

.overall-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 24px;
    background: #f1f5f9;
    border-radius: 12px;
    border-left: 4px solid #10b981;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.operational {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.status-indicator.degraded {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.status-indicator.down {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.status-text {
    font-weight: 600;
    font-size: 1.1rem;
}

main {
    flex: 1;
}

section {
    margin-bottom: 40px;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1e293b;
}

.service-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item:hover {
    background: #f8fafc;
}

.service-info {
    display: flex;
    flex-direction: column;
}

.service-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
}

.service-description {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 4px;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.response-time {
    font-size: 0.9rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
    min-width: 60px;
    text-align: center;
}

.uptime-chart {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-container {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px dashed #cbd5e1;
}

.chart-loading {
    color: #64748b;
    font-style: italic;
}

.uptime-bars {
    display: flex;
    gap: 2px;
    height: 60px;
    align-items: end;
}

.uptime-bar {
    width: 4px;
    background: #10b981;
    border-radius: 2px;
    transition: background-color 0.2s;
}

.uptime-bar.degraded {
    background: #f59e0b;
}

.uptime-bar.down {
    background: #ef4444;
}

.incidents {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.no-incidents {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.no-incidents p {
    color: #15803d;
    font-weight: 500;
}

.incident-item {
    padding: 16px;
    border-left: 4px solid #ef4444;
    background: #fef2f2;
    border-radius: 8px;
    margin-bottom: 12px;
}

.incident-item.resolved {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.incident-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.incident-time {
    color: #64748b;
    font-size: 0.9rem;
}

footer {
    border-top: 1px solid #e2e8f0;
    padding: 24px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: #64748b;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    header {
        margin: 0 -16px 24px -16px;
        padding: 24px 16px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .overall-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .service-status {
        width: 100%;
        justify-content: space-between;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .footer-links {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.75rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .service-item {
        padding: 16px;
    }
    
    .uptime-chart,
    .incidents {
        padding: 16px;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

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