:root {
    --primary: #0d6efd;
    --success: #198754;
    --warning: #ff9800;
    --danger: #dc3545;
    --muted: #6c757d;
    --bg: #f8f9fa;
    --card: #ffffff;
    --text: #212529;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
}

.header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    padding: 2rem 0;
    margin-bottom: 1.5rem;
}

.header h1 {
    margin: 0;
    font-size: 1.75rem;
}

.subtitle {
    margin: 0.25rem 0 0;
    opacity: 0.9;
}

.overall-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--card);
    border-radius: 0.5rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.status-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    margin-top: 0.35rem;
    flex-shrink: 0;
    background: var(--muted);
}

.status-indicator.operational { background: var(--success); }
.status-indicator.degraded { background: var(--warning); }
.status-indicator.down,
.status-indicator.maintenance { background: var(--danger); }

.muted { color: var(--muted); }
.updated { font-size: 0.875rem; }

.services-list,
.incidents-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li,
.incidents-list li {
    background: var(--card);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.badge.operational { background: #d1e7dd; color: #0f5132; }
.badge.degraded { background: #fff3cd; color: #664d03; }
.badge.down,
.badge.maintenance { background: #f8d7da; color: #842029; }

.hidden { display: none; }

.footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted);
}

.footer a { color: var(--primary); }

.maintenance {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintenance-card {
    background: var(--card);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 0.375rem;
}
