:root {
    --bg: #0a0a0f;
    --bg-alt: #0d0d14;
    --card: #13131a;
    --card-hover: #161620;
    --border: #1e1e2a;
    --border-hover: #2e2e42;
    --text: #e8e8f0;
    --text-muted: #7878a0;
    --accent: #4f8ef7;
    --green: #22c55e;
    --red: #ef4444;
    --radius: 12px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 40px 20px;
}

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

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

h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.status-summary {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
}

.header-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.api-links {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.last-updated {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

.api-links a {
    color: var(--accent);
    text-decoration: none;
}

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

.group {
    margin-bottom: 40px;
}

.group-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.node-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background-color: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.node-row {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    background-color: var(--card);
    transition: background-color 0.2s;
    gap: 12px;
}

.node-row-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.history-bar {
    display: flex;
    gap: 2px;
    height: 10px;
    width: 100%;
}

.history-tick {
    flex: 1;
    height: 100%;
    border-radius: 2px;
    min-width: 4px;
}

.history-tick--up {
    background-color: var(--green);
    opacity: 0.6;
}

.history-tick--down {
    background-color: var(--red);
}

.history-tick:hover {
    opacity: 1;
    transform: scaleY(1.3);
}

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

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

.status-dot--up {
    background-color: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.status-dot--down {
    background-color: var(--red);
    box-shadow: 0 0 8px var(--red);
}

.node-name {
    font-weight: 500;
}

.node-host {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.node-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.latency {
    font-family: monospace;
}

.uptime {
    background-color: rgba(79, 142, 247, 0.1);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

footer {
    margin-top: 60px;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
