/* Online/Offline Status — Neutral Dark Theme */
:root {
    --primary: #6366F1;
    --green: #22C55E;
    --red: #EF4444;
    --bg: #0E1117;
    --bg-card: rgba(14, 17, 23, 0.85);
    --border: rgba(99, 102, 241, 0.12);
    --text: #E6E8F0;
    --text-sec: #8B92A8;
    --text-muted: #5C6378;
    --radius: 12px;
    --font: 'Inter', -apple-system, sans-serif;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased
}

.app {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    text-align: center
}

.header {
    margin-bottom: 1.5rem
}

.header h1 {
    font-size: 1.15rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--green), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.subtitle {
    font-size: .82rem;
    color: var(--text-sec)
}

.status-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: all .3s
}

.status-card.online {
    border-color: rgba(34, 197, 94, 0.2);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.06)
}

.status-card.offline {
    border-color: rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.06)
}

.status-icon {
    font-size: 3rem;
    margin-bottom: .4rem
}

.status-label {
    font-size: 1.5rem;
    font-weight: 800
}

.status-desc {
    font-size: .82rem;
    color: var(--text-sec);
    margin-top: .2rem
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .4rem;
    margin-bottom: 1rem
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .5rem .3rem;
    display: flex;
    flex-direction: column;
    gap: .1rem
}

.info-label {
    font-size: .62rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase
}

.info-value {
    font-size: .82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums
}

.btn-ping {
    width: 100%;
    padding: .55rem;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), #A78BFA);
    color: white;
    font-family: var(--font);
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    margin-bottom: .5rem
}

.btn-ping:hover {
    transform: translateY(-2px)
}

.ping-result {
    font-size: .78rem;
    color: var(--text-sec);
    min-height: 1.2rem;
    margin-bottom: 1rem
}

.log-section {
    text-align: left
}

.log-section h2 {
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: .5rem
}

.log-list {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    max-height: 200px;
    overflow-y: auto
}

.log-item {
    font-size: .72rem;
    padding: .3rem .5rem;
    border-radius: 6px;
    font-variant-numeric: tabular-nums
}

.log-item.online {
    background: rgba(34, 197, 94, 0.06);
    color: var(--green)
}

.log-item.offline {
    background: rgba(239, 68, 68, 0.06);
    color: var(--red)
}

@media(max-width:480px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}