:root {
    --bg-color: #050a0a;
    --monitor-bg: #0b1515;
    --accent-color: #00f2ff;
    --accent-dim: #007c82;
    --text-color: #e0faff;
    --alert-color: #ff6600;
    --border-style: 2px solid var(--accent-dim);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg-color); color: var(--text-color); font-family: 'IBM Plex Mono', monospace; height: 100vh; overflow: hidden; }

.scanlines { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,0.1) 50%); background-size: 100% 4px; z-index: 10; pointer-events: none; opacity: 0.2; }

.bridge-container { display: flex; flex-direction: column; height: 100%; padding: 10px; border: 4px double var(--accent-dim); }
.bridge-header { display: flex; justify-content: space-between; padding: 5px 10px; border-bottom: var(--border-style); font-size: 0.8rem; font-weight: bold; }

.bridge-main { flex-grow: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 0; overflow: hidden; }
.monitor { background: var(--monitor-bg); border: var(--border-style); display: flex; flex-direction: column; overflow: hidden; min-height: 200px; }

.split-v { display: flex; flex-direction: row; height: 100%; }
.log-deck, .map-deck { flex: 1; display: flex; flex-direction: column; border-right: 1px solid var(--accent-dim); overflow: hidden; }
.map-deck:last-child, .log-deck:last-child { border-right: none; }

.monitor-header { background: var(--accent-dim); color: var(--bg-color); padding: 5px 10px; font-size: 0.9rem; font-weight: bold; display: flex; justify-content: space-between; align-items: center; }
.monitor-content { flex-grow: 1; overflow-y: auto; padding: 5px; font-size: 0.75rem; }

.log-entry { border-bottom: 1px solid rgba(0,242,255,0.05); padding: 3px 0; display: grid; grid-template-columns: 140px 80px 40px 1fr; white-space: nowrap; }
.log-entry span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.map-container { flex-grow: 1; background: radial-gradient(circle, #1a2a2a 0%, #050a0a 100%); position: relative; overflow: hidden; }
canvas { width: 100%; height: 100%; }

.bridge-footer { height: 55px; border-top: var(--border-style); overflow: hidden; display: flex; align-items: center; }
.scrolling-text { white-space: nowrap; animation: scroll 120s linear infinite; opacity: 0.9; font-size: 1.2rem; display: inline-block; padding-left: 100%; padding-right: 50px; }

@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.monitor-flash { animation: flash-pulse 1.5s ease-out; }
@keyframes flash-pulse { 0% { box-shadow: inset 0 0 30px rgba(0, 242, 255, 0); border-color: var(--accent-dim); } 10% { box-shadow: inset 0 0 60px rgba(0, 242, 255, 0.6); border-color: var(--accent-color); } 100% { box-shadow: inset 0 0 30px rgba(0, 242, 255, 0); border-color: var(--accent-dim); } }

.large-font { font-size: 1.2rem; }
.large-font .monitor-header { font-size: 1.2rem; padding: 10px; }
.large-font .log-monitor .monitor-content { font-size: 1.1rem; }
.large-font .log-entry { grid-template-columns: 240px 140px 80px 1fr; line-height: 1.5; white-space: nowrap; }
.large-font .scrolling-text { font-size: 1.8rem; }
.large-font .status-item { font-size: 1.1rem; }
.large-font button, .large-font select { font-size: 0.9rem !important; padding: 5px !important; }

/* Deck specific highlights */
.deck-a-latest { color: var(--alert-color) !important; font-weight: bold; }
.callsign-highlight-a { color: var(--alert-color) !important; font-weight: bold; }
.callsign-highlight-b { color: var(--accent-color) !important; font-weight: bold; }

.split-h { display: flex; flex-direction: column; height: 100%; }
.split-h .map-deck { border-right: none; border-bottom: 1px solid var(--accent-dim); }
.split-h .map-deck:last-child { border-bottom: none; }

.split-h { display: flex; flex-direction: column; height: 100%; }
.split-h .map-deck { border-right: none; border-bottom: 1px solid var(--accent-dim); }
.split-h .map-deck:last-child { border-bottom: none; }
