body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.system-status {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    color: #333;
}

.system-status-offline {
    border: 2px solid #dc3545;
}

.system-status-online {
    border: 2px solid #28a745;
}

.sensor-filters {
    width: 100%;
    max-width: 1600px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
}

.sensor-filter {
    background: #fff;
    border-radius: 8px;
    padding: 10px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
}

.toggle-all {
    background: #007bff;
    color: #fff;
}

.sensor-filter input {
    accent-color: #007bff;
}

.time-filter {
    gap: 10px;
}

.time-filter select {
    border: 1px solid #cbd3da;
    border-radius: 6px;
    background: #fff;
    padding: 6px 28px 6px 8px;
    font-size: 14px;
    color: #333;
}

.chart-card {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 1600px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.chart-container {
    position: relative;
    height: 380px;
}

.chart-empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 18px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .chart-card {
        grid-template-columns: 1fr;
    }
}

.current {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    width: auto;
    max-width: 100%;
    flex-wrap: wrap;
}

.tile {
    flex: 0 1 auto;
    min-width: 180px;
    background: #f4f6f9;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.tile .name { color: #666; font-size: 14px; }
.tile .value { font-size: 28px; font-weight: bold; margin: 8px 0; white-space: nowrap; }
.tile .time { color: #999; font-size: 12px; }

[hidden] {
    display: none !important;
}