:root {
    --bg: #0f0f1a;
    --card: #161626;
    --text: #e6e6ff;
    --muted: #8888aa;
    --accent: #00d4aa;
    --accent-dim: #00a884;
    --danger: #ff4d6d;
    --warning: #ffb86c;
    --border: #2a2a40;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(90deg, var(--accent), #00a8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--muted);
    margin-bottom: 1rem;
}

.status-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.status-bar span {
    background: var(--card);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.card.full {
    grid-column: 1 / -1;
}

.card h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: border-color 0.2s;
}

.item:hover {
    border-color: var(--accent-dim);
}

.item-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.item-detail {
    font-size: 0.85rem;
    color: var(--muted);
    font-family: 'SF Mono', monospace;
    word-break: break-all;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
}

.badge.up {
    background: rgba(0, 212, 170, 0.15);
    color: var(--accent);
}

.badge.down {
    background: rgba(255, 77, 109, 0.15);
    color: var(--danger);
}

.badge.warning {
    background: rgba(255, 184, 108, 0.15);
    color: var(--warning);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.site-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.15s, border-color 0.15s;
}

.site-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.site-name {
    font-weight: 600;
}

.site-domain {
    font-size: 0.8rem;
    color: var(--muted);
    font-family: 'SF Mono', monospace;
}

.loading {
    color: var(--muted);
    font-style: italic;
}

footer {
    text-align: center;
}

.btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--accent-dim);
}

@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 1rem;
    }
}
