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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    min-height: 100vh;
    line-height: 1.6;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #21262d;
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f0f6fc;
}

h2 {
    font-size: 1rem;
    font-weight: 500;
    color: #8b949e;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.operational {
    background: #238636;
    color: #fff;
}

.status-badge.down {
    background: #da3633;
    color: #fff;
}

section {
    margin-bottom: 40px;
}

.uptime-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.uptime-card {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.uptime-card .label {
    display: block;
    font-size: 0.75rem;
    color: #8b949e;
    margin-bottom: 8px;
}

.uptime-card .value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #3fb950;
}

.uptime-card .value.degraded {
    color: #d29922;
}

.uptime-card .value.bad {
    color: #da3633;
}

.timeline {
    display: flex;
    gap: 1px;
}

.timeline .day {
    flex: 1;
    height: 32px;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    min-width: 0;
}

.timeline .day.up {
    background: #238636;
}

.timeline .day.partial {
    background: #d29922;
}

.timeline .day.down {
    background: #da3633;
}

.timeline .day.none {
    background: #21262d;
}

.timeline .day .tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2428;
    border: 1px solid #30363d;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 4px;
}

.timeline .day:hover .tooltip {
    display: block;
}

.timeline-legend {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    font-size: 0.75rem;
    color: #8b949e;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
}

.legend-dot.up { background: #238636; }
.legend-dot.partial { background: #d29922; }
.legend-dot.down { background: #da3633; }

.incidents-list {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 8px;
    padding: 16px;
}

.incident {
    padding: 12px 0;
    border-bottom: 1px solid #21262d;
}

.incident:last-child {
    border-bottom: none;
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.incident-time {
    font-size: 0.875rem;
    color: #c9d1d9;
}

.incident-status {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
}

.incident-status.resolved {
    background: #238636;
    color: #fff;
}

.incident-status.ongoing {
    background: #da3633;
    color: #fff;
}

.incident-duration {
    font-size: 0.75rem;
    color: #8b949e;
}

.no-incidents {
    color: #8b949e;
    text-align: center;
    padding: 20px 0;
}

footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #21262d;
    font-size: 0.75rem;
    color: #8b949e;
}

@media (max-width: 600px) {
    .uptime-grid {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
