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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0f1117;
    color: #e1e4e8;
    min-height: 100vh;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 0.85rem;
    color: #8b949e;
}

table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 0.9rem;
}

thead th {
    background: #161b22;
    color: #8b949e;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #30363d;
}

tbody tr {
    border-bottom: 1px solid #21262d;
    transition: background 0.15s;
}

tbody tr:hover {
    background: #161b22;
}

td {
    padding: 0.6rem 1rem;
}

.region-name {
    font-weight: 500;
    white-space: nowrap;
}

.region-flag {
    margin-right: 0.4rem;
}

.ad-name {
    font-size: 0.8rem;
    color: #8b949e;
    white-space: nowrap;
}

.status-cell {
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    border-radius: 4px;
    min-width: 90px;
}

.status-available {
    color: #3fb950;
    background: rgba(63, 185, 80, 0.1);
}

.status-no-capacity,
.status-out-of-host-capacity {
    color: #f85149;
    background: rgba(248, 81, 73, 0.08);
}

.status-not-monitored {
    color: #484f58;
}

.status-hardware-not-supported,
.status-error {
    color: #d29922;
    background: rgba(210, 153, 34, 0.08);
}

tr.not-monitored td {
    color: #484f58;
}

.checked-at {
    font-size: 0.8rem;
    color: #8b949e;
    white-space: nowrap;
}

footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #484f58;
}

footer a {
    color: #58a6ff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    body { padding: 1rem; }
    table { font-size: 0.8rem; }
    td, th { padding: 0.4rem 0.5rem; }
}
