/* ============================================================================
 * EIS (Electronic Instrument System) — Airbus-style PFD + ND.
 * Standalone styles; does not depend on main.css / mobile.css.
 * ============================================================================ */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #000;
    color: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
    overflow: hidden;
}

#eis {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

/* ===== FMA bar (top) ====================================================== */
.fma-bar {
    display: flex;
    align-items: stretch;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    border-bottom: 2px solid #2a2a2a;
    min-height: 64px;
    padding: 4px 12px;
    font-family: 'Share Tech Mono', 'Consolas', monospace;
    letter-spacing: 0.04em;
}

.fma-cell {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 4px 8px;
}

.fma-cell .fma-active {
    font-size: 22px;
    font-weight: 700;
    color: #22cc66;        /* active mode = green */
    line-height: 1.1;
}

.fma-cell .fma-active.fma-athr-active { color: #ffffff; }
.fma-cell .fma-active.fma-srs         { color: #ffe600; }

.fma-cell .fma-armed {
    font-size: 14px;
    color: #22ddff;        /* armed mode = cyan */
    min-height: 16px;
    line-height: 1.1;
}

.fma-sep {
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, #444 30%, #444 70%, transparent 100%);
    margin: 0 6px;
}

.fma-athr-cell .fma-active { color: #cccccc; }
.fma-athr-cell .fma-active.fma-athr-active { color: #22cc66; }

.ap-cell {
    flex: 0 0 auto;
    gap: 4px;
    flex-direction: row;
}

.ap-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    background: #1f1f1f;
    color: #777;
    border: 1px solid #333;
    letter-spacing: 0.06em;
}

.ap-pill.on  { color: #22cc66; border-color: #22cc66; background: rgba(34, 204, 102, 0.08); }
.ap-pill.arm { color: #22ddff; border-color: #22ddff; background: rgba(34, 221, 255, 0.08); }

.td-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(224, 64, 251, 0.18);
    color: #e040fb;
    border: 1px solid #e040fb;
    margin-left: 4px;
}

.fma-offline {
    justify-content: center;
    align-items: center;
    color: #aaa;
    gap: 10px;
}
.fma-offline .material-icons { color: #f87171; }

#eis.srs-alert .fma-bar { box-shadow: inset 0 0 0 2px rgba(255, 230, 0, 0.5); }

/* ===== Two-screen layout ================================================== */
.screens {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 8px;
    min-height: 0; /* allow flex children to shrink */
    background: radial-gradient(ellipse at center, #050505 0%, #000000 100%);
}

.screen {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border: 1px solid #222;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(34, 221, 255, 0.06) inset;
    overflow: hidden;
}

.screen svg { width: 100%; height: 100%; display: block; }

.screen-label {
    position: absolute;
    top: 8px;
    left: 12px;
    font-family: 'Share Tech Mono', 'Consolas', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #555;
    pointer-events: none;
}

.pfd-wrap { flex: 0 0 46%; }
.nd-wrap  { flex: 1 1 auto; }

@media (max-width: 1100px) {
    .screens { flex-direction: column; }
    .pfd-wrap, .nd-wrap { flex: 1 1 auto; }
}

/* ===== Footer ============================================================= */
.eis-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    background: #0a0a0a;
    border-top: 1px solid #222;
    font-family: 'Share Tech Mono', 'Consolas', monospace;
    font-size: 13px;
    color: #888;
    letter-spacing: 0.06em;
}

.eis-footer a {
    color: #22ddff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.eis-footer .material-icons { font-size: 18px; }
.eis-footer .footer-sep { color: #444; }
.eis-footer .footer-clock { margin-left: auto; color: #ffe600; }

.eis-footer .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #555;
    box-shadow: 0 0 6px currentColor;
    margin-right: 4px;
}
.eis-footer .dot.on   { background: #22cc66; color: #22cc66; }
.eis-footer .dot.warn { background: #ffe600; color: #ffe600; }
.eis-footer .dot.off  { background: #ff5050; color: #ff5050; }
