body {
    font-family: sans-serif;
    background: #111;
    color: #fff;
    margin: 0;
}

/* Navigation */
nav {
    padding: 12px 20px;
    background: #222;
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #333;
}

nav a {
    color: #aaa;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

nav a.active {
    color: #4db8ff;
    font-weight: 700;
}

/* Status bar */
#status-bar {
    padding: 12px 20px;
    background: #333;
    border-bottom: 1px solid #444;
    font-size: 18px;
}

/* No station message */
#no-station-msg {
    padding: 20px;
    text-align: center;
    font-size: 20px;
    color: #ccc;
}

.hidden { display: none; }

/* Station list */
#station-list {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

/* Station card */
.station {
    background: #1a1a1a;
    border: 1px solid #2b2b2b;
    padding: 14px;
    border-radius: 10px;
    width: 380px;
    display: flex;
    flex-direction: column;
    gap: 10px;

    box-shadow: 0 0 6px rgba(50, 100, 150, 0.25);
}

.station h2 {
    margin: 0;
    font-size: 20px;
    color: #4db8ff;
}

/* ONLINE / OFFLINE */
.state.online  { color: #3cff78; font-weight: bold; }
.state.offline { color: #ff4d4d; font-weight: bold; }

/* -----------------------------------
   Plot（未来的・科学的な色）
----------------------------------- */
.plot {
    width: 100%;
    height: 240px;

    background: #0a0a0a;
    border: 1px solid #1d3a4d;
    box-sizing: border-box;
    position: relative;

    /* グリッド（薄いサイエンスブルー） */
    background-image:
        linear-gradient(rgba(160, 200, 240, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(160, 200, 240, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* uPlot canvas sizing */
.uplot {
    width: 100% !important;
    height: 100% !important;
}

/* 波形の色（細く、科学的ブルー） */
.u-series-1 {
    stroke: #4dc3ff !important;
    stroke-width: 1.1 !important;
}

/* ほのかな光沢 */
.u-series-1 {
    filter: drop-shadow(0 0 3px #4dc3ff);
}

/* 軸の色指定（uPlot が生成する要素に適用） */
.u-axis path,
.u-axis line {
    stroke: #8bbbdc !important;
}

.u-axis text {
    fill: #bcd8f1 !important;
    font-size: 11px;
}

