/* ==========================================================================
   GST-IF8 FIRE ALARM CONTROL PANEL FASCIA STYLES
   Pixel-accurate rendition of the Gulf Security Technology GST-IF8
   ========================================================================== */

:root {
  --gst-cabinet-bg: #6c7176;
  --gst-cabinet-border: #4a4f54;
  --gst-bezel-white: #ffffff;
  --gst-lcd-bg: #ffffff;
  --gst-lcd-text: #0f172a;
  --gst-btn-bg: #ffffff;
  --gst-btn-border: #1e293b;
  --gst-btn-text: #0f172a;
  
  --gst-led-red: #ff2222;
  --gst-led-yellow: #ffb300;
  --gst-led-green: #16db3a;
  
  --gst-led-off-red: #331515;
  --gst-led-off-yellow: #353017;
  --gst-led-off-green: #112d1b;
}

/* Outer Cabinet */
.gst-cabinet {
  position: relative;
  width: 1024px;
  max-width: 100%;
  margin: 0 auto;
  background: var(--gst-cabinet-bg);
  border: 4px solid var(--gst-cabinet-border);
  border-radius: 12px;
  box-shadow: 
    0 18px 45px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4);
  padding: 24px 28px;
  box-sizing: border-box;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #ffffff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   LEFT SECTION: 2-COLUMN LED ANNUNCIATORS
   -------------------------------------------------------------------------- */
.gst-annunciators-col {
  flex: 0 0 250px;
  display: flex;
  gap: 24px;
}

.gst-led-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Major Header Rows (Fire / Fault) with dual stacked LEDs */
.gst-header-led-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.gst-dual-leds {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gst-header-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  line-height: 1;
}

/* Standard Indicator Row: LED + Label */
.gst-indicator-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 24px;
}

.gst-ind-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* Circular LEDs */
.gst-led {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid #1e293b;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.6);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.gst-led.red {
  background: var(--gst-led-off-red);
}
.gst-led.red.active {
  background: var(--gst-led-red);
  box-shadow: 0 0 8px #ff2222, inset 0 1px 1px #fff;
  border-color: #fff;
}

.gst-led.yellow {
  background: var(--gst-led-off-yellow);
}
.gst-led.yellow.active {
  background: var(--gst-led-yellow);
  box-shadow: 0 0 8px #ffb300, inset 0 1px 1px #fff;
  border-color: #fff;
}

.gst-led.green {
  background: var(--gst-led-off-green);
}
.gst-led.green.active {
  background: var(--gst-led-green);
  box-shadow: 0 0 8px #16db3a, inset 0 1px 1px #fff;
  border-color: #fff;
}

/* --------------------------------------------------------------------------
   CENTER SECTION: WHITE BEZEL & HIGH CONTRAST GRAPHIC LCD
   -------------------------------------------------------------------------- */
.gst-center-lcd-bezel {
  flex: 0 0 430px;
  background: #ffffff;
  border: 6px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 10px;
  box-sizing: border-box;
}

.gst-lcd-screen {
  background: #ffffff;
  color: #0f172a;
  border: 2px solid #000000;
  height: 400px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: "Lucida Console", "Consolas", monospace, sans-serif;
  overflow: hidden;
}

/* Top Header Bar */
.gst-lcd-header {
  background: #d8dde3;
  color: #000000;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 8px;
  border-bottom: 1.5px solid #000000;
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.5px;
}

.gst-lcd-header.fire {
  background: #cbd5e1;
}

/* Middle Events List */
.gst-lcd-events-area {
  flex: 1;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.35;
  overflow-y: auto;
  color: #000000;
}

.gst-lcd-ev-line1 {
  font-weight: 700;
  margin-top: 3px;
}

.gst-lcd-ev-line2 {
  color: #1e293b;
  margin-bottom: 6px;
  padding-left: 2px;
}

/* Instructions / Prompts Area */
.gst-lcd-prompts-box {
  border-top: 1.5px solid #000000;
  border-bottom: 1.5px solid #000000;
  padding: 6px 8px;
  font-size: 10.5px;
  line-height: 1.35;
  background: #ffffff;
}

.gst-lcd-prompt-row {
  white-space: nowrap;
}

/* Bottom Event Summary */
.gst-lcd-summary-box {
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.3;
  background: #ffffff;
}

/* Bottom Status Ticker Bar */
.gst-lcd-footer-bar {
  border-top: 1.5px solid #000000;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  background: #ffffff;
  color: #000000;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   RIGHT SECTION: KEYPAD, COMMAND BUTTONS & DIRECTIONAL D-PAD
   -------------------------------------------------------------------------- */
.gst-controls-col {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Top Setup Buttons Row */
.gst-setup-row {
  display: flex;
  justify-content: flex-end;
  gap: 40px;
  padding-right: 14px;
}

.gst-setup-btn {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #0f172a;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  transition: all 0.1s ease;
}

.gst-setup-btn:active {
  transform: translateY(1px);
  background: #e2e8f0;
}

/* Function Keys (F1, F2, F3) */
.gst-function-row {
  display: flex;
  gap: 16px;
  padding-left: 2px;
}

.gst-fn-btn {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #0f172a;
  border-radius: 14px;
  width: 44px;
  height: 24px;
  font-size: 10.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  transition: all 0.1s ease;
}

.gst-fn-btn:active {
  transform: translateY(1px);
  background: #e2e8f0;
}

/* Main Operating Deck: Left Command Column + Right D-Pad/Keypad */
.gst-deck-grid {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

/* Left Commands Column: ACK, SILENCE, EVAC, RESET */
.gst-cmd-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 54px;
}

.gst-cmd-btn {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #0f172a;
  border-radius: 4px;
  width: 52px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  font-size: 9.5px;
  font-weight: 800;
  text-align: center;
  padding: 2px 1px;
  box-sizing: border-box;
  transition: all 0.1s ease;
}

.gst-cmd-btn:active {
  transform: translateY(1px);
  background: #e2e8f0;
}

.gst-cmd-icon {
  font-size: 14px;
  line-height: 1;
  margin-bottom: 2px;
}

.gst-cmd-subtext {
  font-size: 5.5px;
  font-weight: 700;
  color: #475569;
  line-height: 1.1;
  margin-top: 2px;
  text-align: center;
  transform: scale(0.9);
}

/* Right Navigation & Numeric Keypad Column */
.gst-nav-keypad-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* D-Pad Diamond Cluster with Center MUTE */
.gst-dpad-cluster {
  position: relative;
  width: 120px;
  height: 96px;
  margin: 0 auto;
}

.gst-dpad-arrow {
  position: absolute;
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #0f172a;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  transition: all 0.1s ease;
}

.gst-dpad-arrow:active {
  background: #e2e8f0;
}

.gst-dpad-arrow.up {
  top: 0;
  left: 42px;
  width: 36px;
  height: 24px;
  border-radius: 12px 12px 4px 4px;
}

.gst-dpad-arrow.down {
  bottom: 0;
  left: 42px;
  width: 36px;
  height: 24px;
  border-radius: 4px 4px 12px 12px;
}

.gst-dpad-arrow.left {
  top: 36px;
  left: 6px;
  width: 24px;
  height: 26px;
  border-radius: 12px 4px 4px 12px;
}

.gst-dpad-arrow.right {
  top: 36px;
  right: 6px;
  width: 24px;
  height: 26px;
  border-radius: 4px 12px 12px 4px;
}

.gst-dpad-center {
  position: absolute;
  top: 35px;
  left: 36px;
  width: 48px;
  height: 28px;
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #0f172a;
  border-radius: 14px;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  transition: all 0.1s ease;
}

.gst-dpad-center:active {
  background: #e2e8f0;
}

/* CANCEL & ENTER row */
.gst-cancel-enter-row {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
}

.gst-round-btn {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #0f172a;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 7px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  transition: all 0.1s ease;
  line-height: 1;
  text-align: center;
}

.gst-round-btn:active {
  background: #e2e8f0;
  transform: translateY(1px);
}

/* Numeric 3x4 Keypad */
.gst-numeric-grid {
  display: grid;
  grid-template-columns: repeat(3, 32px);
  gap: 8px 12px;
  justify-content: center;
  margin-top: 4px;
}

.gst-num-btn {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #0f172a;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  transition: all 0.1s ease;
  font-family: Arial, sans-serif;
}

.gst-num-btn:active {
  background: #e2e8f0;
  transform: translateY(1px);
}
