/* GLOBAL STYLE */
:root {
    --bg: #070a14;
    --panel: #0c1020;
    --border: #2bf0ff;
    --accent: #ff6df9;
    --text: #dffaff;
    --tube-glow: #5dfdff;
    --led-green: #39ff14;
    --led-red: #ff3131;
    --led-yellow: #ffea00;
}

body {
    background: var(--bg);
    margin: 0;
    color: var(--text);
    font-family: "Trebuchet MS", sans-serif;
}

/* HEADER NAVIGATION */
.navbar {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 4px solid var(--border);
    background: var(--panel);
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--accent);
    font-weight: bold;
    transition: 0.2s;
}

.nav-links a:hover {
    color: var(--border);
    text-shadow: 0 0 8px var(--accent);
}

/* PAGE CONTAINER */
.container {
    padding: 30px;
}

/* PANELS */
.panel {
    border: 3px solid var(--border);
    background: var(--panel);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    position: relative;
}

/* PANEL TITLE */
.panel h2 {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

/* CARD */
.card {
    background: #0a0e1a;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    transition: 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

/* STATUS LED */
.status-led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
    top: 12px;
    right: 12px;
    box-shadow: 0 0 10px;
    animation: pulse 1.5s infinite;
}

.green { background: var(--led-green); }
.red { background: var(--led-red); }
.yellow { background: var(--led-yellow); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}

/* ANIMATED TUBES */
.tube {
    width: 100%;
    height: 40px;
    background: repeating-linear-gradient(90deg, #4efcff 0 10px, #affdff 10px 20px);
    border: 3px solid var(--tube-glow);
    border-radius: 20px;
    animation: flow 3s linear infinite;
    margin-top: 10px;
    box-shadow: 0 0 15px var(--tube-glow);
}

@keyframes flow {
    0% { background-position: 0; }
    100% { background-position: 200px; }
}

/* FAKE SCHEMATIC LINES */
.schematic {
    border-top: 2px dashed var(--border);
    margin: 30px 0;
}

/* ICONS */
.card img {
    width: 50px;
    display: block;
    margin-bottom: 10px;
}

/* FOOTER */
.footer {
    padding: 20px;
    text-align: center;
    border-top: 3px solid var(--border);
    background: var(--panel);
    color: var(--accent);
}