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

body {
    background: #1a1a2e;
    color: #eee;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    min-height: 100vh;
    padding: 20px;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #16213e;
}

h1 { font-size: 28px; color: #4ecca3; }

.status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.status-dot {
    font-size: 24px;
    transition: color 0.3s;
}

.status-dot.online { color: #4ecca3; }
.status-dot.offline { color: #e94560; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.card {
    background: #16213e;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #0f3460;
    transition: all 0.3s;
}

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

.card-label {
    font-size: 12px;
    color: #8899aa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.card-value {
    font-size: 32px;
    font-weight: bold;
    color: #4ecca3;
}

.card-unit {
    font-size: 12px;
    color: #667788;
    margin-top: 5px;
}

.card.ok .card-value { color: #4ecca3; }
.card.warn .card-value { color: #ffc93c; }
.card.err .card-value { color: #e94560; }

/* Прогресс-бар */
.progress-container {
    width: 100%;
    height: 30px;
    background: #0f3460;
    border-radius: 15px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4ecca3, #2ecc71);
    width: 0%;
    transition: width 0.5s, background 0.5s;
}

.progress-bar.warn { background: linear-gradient(90deg, #ffc93c, #f39c12); }
.progress-bar.err { background: linear-gradient(90deg, #e94560, #c0392b); }

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #8899aa;
}

/* Лог */
pre#log {
    background: #0f172a;
    padding: 15px;
    border-radius: 5px;
    font-size: 12px;
    color: #8899aa;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
}

footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #16213e;
    font-size: 12px;
    color: #667788;
}