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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}

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

header h1 {
    font-size: 1.8rem;
    color: #f0f6fc;
    margin-bottom: 4px;
}

header p {
    font-size: 0.85rem;
    color: #8b949e;
}

h2 {
    font-size: 1.1rem;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

/* Overall status banner */
.status-banner {
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 1.1rem;
}

.status-banner.all-up {
    background: #0d1f0d;
    border: 1px solid #238636;
    color: #3fb950;
}

.status-banner.has-issues {
    background: #2d1b00;
    border: 1px solid #d29922;
    color: #e3b341;
}

.status-banner.major-outage {
    background: #2d0000;
    border: 1px solid #da3633;
    color: #f85149;
}

/* Incidents */
#incidents-section {
    margin-bottom: 24px;
}

#incidents-section.hidden {
    display: none;
}

.incident-card {
    background: #2d1b00;
    border: 1px solid #d29922;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.incident-card .incident-title {
    font-weight: 600;
    color: #e3b341;
}

.incident-card .incident-meta {
    font-size: 0.8rem;
    color: #8b949e;
    margin-top: 4px;
}

/* Categories */
.category {
    margin-bottom: 24px;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Service cards */
.service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 12px 16px;
}

.service-card .service-name {
    font-weight: 500;
    color: #f0f6fc;
}

.service-card .service-host {
    font-size: 0.8rem;
    color: #8b949e;
    margin-left: 8px;
}

.service-card .status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

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

.status-dot.up { background: #3fb950; }
.status-dot.down { background: #f85149; }
.status-dot.degraded { background: #d29922; }

.status-text.up { color: #3fb950; }
.status-text.down { color: #f85149; }
.status-text.degraded { color: #d29922; }

/* Uptime bars */
#uptime-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.uptime-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.uptime-label {
    width: 140px;
    font-size: 0.85rem;
    color: #c9d1d9;
    flex-shrink: 0;
    text-align: right;
}

.uptime-bar {
    flex: 1;
    height: 20px;
    display: flex;
    gap: 1px;
    border-radius: 3px;
    overflow: hidden;
}

.uptime-segment {
    flex: 1;
    min-width: 2px;
}

.uptime-segment.up { background: #238636; }
.uptime-segment.down { background: #da3633; }
.uptime-segment.degraded { background: #d29922; }
.uptime-segment.unknown { background: #30363d; }

.uptime-percent {
    width: 50px;
    font-size: 0.8rem;
    color: #8b949e;
    text-align: right;
}

/* Empty state */
.empty-state {
    text-align: center;
    color: #8b949e;
    padding: 40px;
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid #21262d;
    font-size: 0.8rem;
    color: #484f58;
}

/* Responsive */
@media (max-width: 600px) {
    body { padding: 12px; }
    .uptime-label { width: 100px; font-size: 0.75rem; }
    .service-card { padding: 10px 12px; }
}
