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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    min-height: 100vh;
}

header {
    background: #161b22;
    border-bottom: 1px solid #30363d;
    padding: 16px 24px;
}

header h1 {
    font-size: 20px;
    font-weight: 600;
    color: #f0f6fc;
}

.subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #8b949e;
    margin-left: 8px;
}

.status-bar {
    margin-top: 8px;
    font-size: 13px;
    color: #8b949e;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3fb950;
    display: inline-block;
}

.status-dot.error { background: #f85149; }

.sep { color: #30363d; }

main {
    padding: 20px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 16px;
}

.card-header {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8b949e;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.value {
    font-size: 18px;
    font-weight: 700;
    color: #f0f6fc;
}

.bar-container {
    width: 100%;
    height: 10px;
    background: #21262d;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
    background: #58a6ff;
}

.cpu .bar { background: linear-gradient(90deg, #3fb950, #58a6ff); }
.memory .bar { background: linear-gradient(90deg, #d29922, #e3b341); }
.swap .bar { background: linear-gradient(90deg, #f85149, #ff7b72); }
.disk .bar { background: linear-gradient(90deg, #bc8cff, #d2a8ff); }

.card-detail {
    font-size: 12px;
    color: #8b949e;
    margin-top: 4px;
}

.card-detail .highlight {
    color: #f0f6fc;
    font-weight: 600;
}

.core-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.core-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #8b949e;
}

.core-bar-s {
    width: 40px;
    height: 6px;
    background: #21262d;
    border-radius: 3px;
    overflow: hidden;
}

.core-bar-s-fill {
    height: 100%;
    background: #58a6ff;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.net-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.net-label {
    font-size: 12px;
    color: #8b949e;
    width: 32px;
}

.net-val {
    font-size: 14px;
    font-weight: 600;
    color: #f0f6fc;
    width: 80px;
    text-align: right;
}

.net-bar-container {
    flex: 1;
    height: 8px;
    background: #21262d;
    border-radius: 4px;
    overflow: hidden;
}

.net-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.rx-bar { background: linear-gradient(90deg, #3fb950, #58a6ff); }
.tx-bar { background: linear-gradient(90deg, #d29922, #e3b341); }

.info-table {
    width: 100%;
    font-size: 13px;
}

.info-table td {
    padding: 4px 0;
    border-bottom: 1px solid #21262d;
}

.info-table td:first-child {
    color: #8b949e;
    width: 80px;
}

.info-table td:last-child {
    color: #f0f6fc;
    text-align: right;
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
    header h1 { font-size: 16px; }
}
