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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #1a1a1a;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 16px;
    color: #666;
}

.overall-status {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

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

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

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

.status-dot.checking {
    background: #6b7280;
    animation: pulse 2s infinite;
}

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

.status-text {
    font-size: 20px;
    font-weight: 600;
}

.last-updated {
    font-size: 14px;
    color: #666;
}

.services {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.services h2,
.uptime-stats h2,
.recent-incidents h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.service-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.service-name {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
}

.service-url {
    font-size: 13px;
    color: #999;
}

.service-metrics {
    display: flex;
    gap: 20px;
    align-items: center;
}

.metric {
    text-align: right;
}

.metric-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.metric-value.good {
    color: #10b981;
}

.metric-value.warning {
    color: #f59e0b;
}

.metric-value.bad {
    color: #ef4444;
}

.uptime-stats {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.uptime-bar {
    margin-bottom: 20px;
}

.uptime-service-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.uptime-visual {
    display: flex;
    gap: 2px;
    height: 40px;
    margin-bottom: 8px;
}

.uptime-block {
    flex: 1;
    background: #10b981;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

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

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

.uptime-block:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    margin-bottom: 4px;
    z-index: 10;
}

.uptime-percentage {
    font-size: 14px;
    color: #666;
}

.uptime-percentage strong {
    color: #10b981;
    font-weight: 600;
}

.recent-incidents {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.incident-item:last-child {
    margin-bottom: 0;
}

.incident-time {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.incident-message {
    font-size: 14px;
    color: #1a1a1a;
}

.no-incidents {
    text-align: center;
    color: #999;
    padding: 20px;
    font-size: 14px;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

footer p {
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .overall-status {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .service-metrics {
        width: 100%;
        justify-content: space-between;
    }
}
