:root {
  --dash-bg: #050505;
  --dash-panel: #111111;
  --accent-primary: #00e5ff; /* Cyan for generic high tech */
  --accent-secondary: #2979ff;
  --alert-red: #ff3d00;
  --alert-amber: #ffb300;
  --ok-green: #00e676;
  --indicator-blue: #2962ff;
  --text-main: #ffffff;
  --text-muted: #888888;
  --font-tech: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --glass-panel: rgba(20, 20, 20, 0.8);
}

body {
  margin: 0;
  padding: 0;
  background-color: #222;
  color: var(--text-main);
  font-family: var(--font-tech);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* 
  Hardware Simulation Container 
  800x480 Resolution Simulation
*/
.hardware-frame {
  width: 800px;
  height: 480px;
  background-color: var(--dash-bg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
  border: 4px solid #333;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

/* Top Status Bar */
.status-bar {
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background: linear-gradient(to bottom, #1a1a1a, transparent);
  z-index: 10;
}

.rtc-clock {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-main);
}

.telltale-strip-top {
  display: flex;
  gap: 15px;
}

/* Main Content Area */
.main-cluster {
  flex: 1;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  padding: 10px 20px 20px 20px;
  gap: 10px;
  position: relative;
}

/* Side Panels */
.side-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 0;
}

/* Center Speedo */
.center-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.speedo-circle {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 4px solid #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1a1a1a 0%, #000 70%);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
  position: relative;
}

.speedo-value {
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.speedo-unit {
  font-size: 18px;
  color: var(--text-muted);
  margin-top: 5px;
}

.gear-display {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent-primary);
  margin-top: 10px;
  border: 1px solid #333;
  padding: 2px 12px;
  border-radius: 4px;
  background: rgba(0,0,0,0.5);
}

/* Gauges */
.gauge-box {
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.gauge-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

.gauge-bar-container {
  height: 10px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.gauge-bar-fill {
  height: 100%;
  background: var(--accent-primary);
  width: 0%;
  transition: width 0.5s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.gauge-bar-fill.red { background-color: var(--alert-red); }
.gauge-bar-fill.green { background-color: var(--ok-green); }
.gauge-bar-fill.amber { background-color: var(--alert-amber); }
.gauge-bar-fill.blue { background-color: var(--accent-secondary); }

.gauge-value-text {
  font-size: 18px;
  font-weight: bold;
  margin-top: 4px;
  text-align: right;
}

/* Vertical Gauge (RPM Style) */
.vertical-gauge {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #111;
  width: 30px;
  border-radius: 15px;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
  border: 1px solid #333;
}

.vertical-fill {
  width: 100%;
  background: linear-gradient(to top, var(--accent-secondary), var(--accent-primary));
  transition: height 0.3s ease;
}

.rpm-container {
  text-align: center;
  height: 180px;
  display: flex;
  flex-direction: row; /* Side by side with text */
  align-items: center;
  gap: 10px;
}

.rpm-text {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-main);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Telltale Icons */
.telltale {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #000;
  font-weight: bold;
  opacity: 0.2; /* Inactive state */
}

.telltale.active {
  opacity: 1;
  box-shadow: 0 0 8px currentColor;
}

.tt-red { background-color: var(--alert-red); color: white; }
.tt-green { background-color: var(--ok-green); color: black; }
.tt-amber { background-color: var(--alert-amber); color: black; }
.tt-blue { background-color: var(--indicator-blue); color: white; }

.telltale-grid-bottom {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

/* Menu / Camera Overlays */
.overlay-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 50;
  display: flex;
  flex-direction: column;
}

.camera-view {
  flex: 1;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.camera-placeholder-text {
  color: #555;
  font-size: 20px;
  position: absolute;
  z-index: 1;
}

.camera-guide-lines {
  position: absolute;
  width: 60%;
  height: 80%;
  border: 2px dashed rgba(255,255,0,0.5);
  border-bottom: none;
  z-index: 2;
  transform: perspective(500px) rotateX(20deg);
}

.menu-list {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-item {
  background: #222;
  padding: 15px 20px;
  border-left: 4px solid transparent;
  font-size: 18px;
  color: #aaa;
  cursor: pointer;
}

.menu-item.selected {
  background: #333;
  border-left-color: var(--accent-primary);
  color: #fff;
}

/* Nav Buttons Simulation */
.hardware-buttons {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  background: #111;
  padding: 15px 30px;
  border-radius: 30px;
  border: 2px solid #333;
}

.hw-btn {
  background: radial-gradient(circle, #444, #222);
  color: #ccc;
  border: 2px solid #555;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: all 0.1s;
  text-transform: uppercase;
  font-weight: bold;
}
.hw-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
  background: #333;
}
.hw-label {
  position: absolute;
  bottom: -25px;
  width: 100px;
  text-align: center;
  font-size: 10px;
  color: #666;
  text-transform: uppercase;
}
.hw-btn:hover { background: #444; }

/* Air Pressure Specifics */
.dual-bar-container {
  display: flex;
  gap: 10px;
}
.vertical-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 120px;
  width: 40px;
}
.vertical-bar-track {
  flex: 1;
  width: 12px;
  background: #222;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.vertical-bar-val {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--accent-primary);
}

/* Camera Overlays */
.cam-overlay-info {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0,0,0,0.6);
  padding: 5px 10px;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  z-index: 10;
}
.cam-warning {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  color: var(--alert-red);
  font-weight: bold;
  background: rgba(0,0,0,0.7);
  padding: 10px 0;
  z-index: 10;
}

/* Utility */
.text-label { font-size: 14px; color: var(--text-muted); }
.text-value { font-size: 20px; font-weight: bold; color: var(--text-main); }
.blink { animation: blinker 1s linear infinite; }

@keyframes blinker {
  50% { opacity: 0; }
}
