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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #334155;
}

h1 { font-size: 1.5rem; color: #38bdf8; }

.stats { display: flex; gap: 12px; }

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge.online { background: #065f46; color: #34d399; }
.badge.degraded { background: #78350f; color: #fbbf24; }
.badge.offline { background: #7f1d1d; color: #f87171; }
.badge.total { background: #1e3a5f; color: #93c5fd; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th {
    text-align: left;
    padding: 10px 8px;
    background: #1e293b;
    color: #94a3b8;
    font-weight: 600;
    border-bottom: 2px solid #334155;
}

td {
    padding: 8px;
    border-bottom: 1px solid #1e293b;
}

tr:hover { background: #1e293b; }

.row-online td:first-child { border-left: 3px solid #34d399; }
.row-degraded td:first-child { border-left: 3px solid #fbbf24; }
.row-offline td:first-child { border-left: 3px solid #f87171; }

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.dot.online { background: #34d399; }
.dot.degraded { background: #fbbf24; }
.dot.offline { background: #f87171; }

.dot.tunnel-connected { background: #34d399; }
.dot.tunnel-disconnected { background: #f87171; }
.dot.tunnel-unknown { background: #64748b; }

.btn-connect {
    display: inline-block;
    padding: 4px 10px;
    background: #1d4ed8;
    color: #e2e8f0;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}

.btn-connect:hover { background: #2563eb; }

.empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 1.1rem;
}

footer {
    margin-top: 32px;
    text-align: center;
    color: #475569;
    font-size: 0.8rem;
}
