/* ==========================================================================
   ESSER BY HONEYWELL (IQ8CONTROL / FLEXES) FIRE ALARM PANEL FASCIA STYLES
   Pixel-accurate rendition of the German DIN/EN54 ESSER FACP
   ========================================================================== */

:root {
  --esser-cabinet-bg: #38404a;
  --esser-cabinet-border: #232930;
  --esser-section-border: #4d5663;
  
  --esser-card-red: #c93b3b;
  --esser-card-red-border: #a12323;
  --esser-card-yellow: #d4a017;
  --esser-card-yellow-border: #b0840d;
  
  --esser-led-red: #ff2222;
  --esser-led-yellow: #ffb800;
  --esser-led-green: #10e045;
  
  --esser-led-off-red: #241010;
  --esser-led-off-yellow: #26220e;
  --esser-led-off-green: #0a1f11;
  
  --esser-lcd-bg: #dce5df;
  --esser-lcd-text: #0a120e;
  --esser-btn-crescent: #8c98a8;
  --esser-btn-round: #98a5b5;
  --esser-btn-white: #e9eef2;
}

/* Outer Cabinet */
.esser-cabinet {
  position: relative;
  width: 1040px;
  max-width: 100%;
  margin: 0 auto;
  background: var(--esser-cabinet-bg);
  border: 4px solid var(--esser-cabinet-border);
  border-radius: 6px;
  box-shadow: 
    0 18px 50px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4);
  padding: 18px 22px;
  box-sizing: border-box;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #ffffff;
  display: flex;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   LEFT SECTION: 2-COLUMN ZONE ANNUNCIATOR MATRIX (48 ZONES)
   -------------------------------------------------------------------------- */
.esser-zone-matrix-section {
  flex: 0 0 300px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--esser-section-border);
  border-radius: 4px;
  padding: 6px 8px;
  box-sizing: border-box;
  display: flex;
  gap: 8px;
}

.esser-zone-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Column Header Card */
.esser-zone-header-card {
  background: #ffffff;
  color: #1a202c;
  border-radius: 2px;
  padding: 3px 2px;
  margin-bottom: 6px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.esser-zh-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #0f172a;
}

.esser-zh-sub {
  font-size: 7.5px;
  font-weight: 700;
  color: #64748b;
  margin-top: 1px;
}

/* 24 Zone Rows List */
.esser-zone-rows {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.esser-zone-row {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 14px;
}

.esser-zone-led-pair {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.esser-zled {
  width: 6px;
  height: 10px;
  border-radius: 1px;
  border: 0.5px solid #111;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.5);
  transition: all 0.15s ease;
}

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

.esser-zled.yellow {
  background: var(--esser-led-off-yellow);
}
.esser-zled.yellow.active {
  background: var(--esser-led-yellow);
  box-shadow: 0 0 6px #ffb800, inset 0 1px 1px #fff;
  border-color: #fff;
}

.esser-zone-strip {
  flex: 1;
  height: 10px;
  background: #e2e8f0;
  border-radius: 1px;
  font-size: 7.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 10px;
  padding: 0 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.15);
}

/* --------------------------------------------------------------------------
   CENTER & RIGHT MAIN OPERATING SECTION
   -------------------------------------------------------------------------- */
.esser-main-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   TOP STATUS CARDS: FEUER | VORALARM | STÖRUNG | ABSCHALTUNG
   -------------------------------------------------------------------------- */
.esser-top-cards-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.esser-status-card {
  flex: 1;
  border-radius: 4px;
  padding: 6px 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 8px;
  font-weight: 700;
}

/* Red Feuer Card */
.esser-status-card.feuer {
  background: var(--esser-card-red);
  border: 1.5px solid var(--esser-card-red-border);
  color: #ffffff;
}

/* Orange/Red Voralarm Card */
.esser-status-card.voralarm {
  background: #b54938;
  border: 1.5px solid #8e2b1d;
  color: #ffffff;
}

/* Yellow Störung Card */
.esser-status-card.stoerung {
  background: var(--esser-card-yellow);
  border: 1.5px solid var(--esser-card-yellow-border);
  color: #1e293b;
}

/* Yellow/Gray Abschaltung Card */
.esser-status-card.abschaltung {
  background: #c2992b;
  border: 1.5px solid #9e7a17;
  color: #1e293b;
}

.esser-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.25);
  padding-bottom: 4px;
}

.esser-card-badge {
  background: #ffffff;
  color: #0f172a;
  border-radius: 2px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.esser-card-icon {
  font-size: 14px;
  line-height: 1;
}

.esser-card-sub-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.esser-sub-row {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.esser-sub-box {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.2);
}

.esser-sub-box.active-red {
  background: #ff2222;
  box-shadow: 0 0 6px #ff2222;
  border-color: #ffffff;
}

.esser-sub-box.active-yellow {
  background: #ffea00;
  box-shadow: 0 0 6px #ffea00;
  border-color: #ffffff;
}

.esser-sub-box.active-green {
  background: #10e045;
  box-shadow: 0 0 6px #10e045;
  border-color: #ffffff;
}

/* --------------------------------------------------------------------------
   MIDDLE & LOWER WORKBENCH SECTION: LCD + CONTROLS + FAR-RIGHT BUTTONS
   -------------------------------------------------------------------------- */
.esser-deck-split {
  display: flex;
  gap: 24px;
}

.esser-center-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   GRAPHIC LCD DISPLAY WITH SOFTKEYS
   -------------------------------------------------------------------------- */
.esser-lcd-wrapper {
  background: #000000;
  border: 3px solid #232930;
  border-radius: 6px;
  padding: 4px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.8), 0 2px 4px rgba(255,255,255,0.1);
}

.esser-lcd-display {
  background: var(--esser-lcd-bg);
  color: var(--esser-lcd-text);
  border: 1px solid #718096;
  border-radius: 3px;
  height: 145px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 8px;
  font-family: "Courier New", Courier, monospace, sans-serif;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.15);
}

/* Event Boxes Inside LCD */
.esser-lcd-event-box {
  border: 1px solid #1a202c;
  background: rgba(255, 255, 255, 0.4);
  padding: 4px 6px;
  font-size: 11px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.esser-lcd-ev-header {
  font-weight: 800;
  display: flex;
  justify-content: space-between;
}

.esser-lcd-ev-loc {
  font-size: 10px;
  font-weight: 700;
  color: #1a202c;
}

/* Bottom 4 Softkey Tabs inside LCD */
.esser-lcd-softkeys-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.esser-lcd-tab {
  flex: 1;
  border: 1px solid #1a202c;
  background: rgba(255, 255, 255, 0.7);
  color: #0f172a;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.esser-lcd-tab.active {
  background: #cbd5e1;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.25);
}

/* Crescent Buttons directly underneath LCD */
.esser-crescent-softkeys-row {
  display: flex;
  justify-content: space-around;
  padding: 0 16px;
  margin-top: -6px;
}

.esser-crescent-btn {
  background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
  border: 1.5px solid #1e293b;
  border-radius: 4px 4px 18px 18px;
  width: 48px;
  height: 20px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: all 0.1s ease;
}

.esser-crescent-btn:active {
  transform: translateY(1px);
  background: #475569;
}

/* --------------------------------------------------------------------------
   LOWER CONTROLS: DIAMOND D-PAD | NUMERIC KEYPAD | CRESCENT GROUPS
   -------------------------------------------------------------------------- */
.esser-keypad-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  margin-top: 4px;
}

/* Left Vertical Pillar of Crescent Buttons */
.esser-vert-crescent-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 75px;
}

.esser-crescent-pill-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.esser-crescent-pill {
  background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
  border: 1.5px solid #1e293b;
  border-radius: 14px 14px 4px 4px;
  width: 46px;
  height: 18px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  transition: all 0.1s ease;
}

.esser-crescent-pill:active {
  background: #475569;
}

.esser-crescent-pill.inverted {
  border-radius: 4px 4px 14px 14px;
}

.esser-pill-label {
  font-size: 7.5px;
  font-weight: 700;
  color: #cbd5e1;
  text-align: center;
  line-height: 1;
}

/* Diamond Directional Arrow Cluster */
.esser-dpad-diamond {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 8px;
}

.esser-dpad-btn {
  position: absolute;
  background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
  border: 1.5px solid #1e293b;
  color: #ffffff;
  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;
}

.esser-dpad-btn:active {
  background: #475569;
}

.esser-dpad-btn.up {
  top: 0;
  left: 28px;
  width: 24px;
  height: 20px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  border-radius: 2px;
}

.esser-dpad-btn.down {
  bottom: 0;
  left: 28px;
  width: 24px;
  height: 20px;
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  border-radius: 2px;
}

.esser-dpad-btn.left {
  top: 28px;
  left: 0;
  width: 20px;
  height: 24px;
  clip-path: polygon(0% 50%, 100% 0%, 100% 100%);
  border-radius: 2px;
}

.esser-dpad-btn.right {
  top: 28px;
  right: 0;
  width: 20px;
  height: 24px;
  clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
  border-radius: 2px;
}

.esser-dpad-btn.center {
  top: 26px;
  left: 26px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  font-size: 8px;
}

/* Circular Numeric Keypad Grid */
.esser-numeric-grid {
  display: grid;
  grid-template-columns: repeat(3, 26px);
  gap: 8px 10px;
  justify-content: center;
}

.esser-num-circle {
  background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
  border: 1.5px solid #1e293b;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  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;
}

.esser-num-circle:active {
  background: #475569;
  transform: translateY(1px);
}

/* --------------------------------------------------------------------------
   FAR-RIGHT COLUMN: LOGO + KEY SWITCH + 6 OPERATING BUTTONS
   -------------------------------------------------------------------------- */
.esser-right-pillar {
  flex: 0 0 135px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* ESSER by Honeywell Branding */
.esser-brand-box {
  text-align: center;
  padding-bottom: 2px;
}

.esser-brand-logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #ffffff;
  line-height: 1;
}

.esser-brand-sub {
  font-size: 7.5px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.2px;
  margin-top: 2px;
}

/* Key Switch Module */
.esser-keyswitch-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-bottom: 4px;
}

.esser-ks-labels {
  display: flex;
  justify-content: space-between;
  width: 60px;
  font-size: 6.5px;
  font-weight: 800;
  color: #cbd5e1;
}

.esser-ks-barrel {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, #cbd5e1 30%, #64748b 90%);
  border: 2px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  transition: transform 0.25s ease;
}

.esser-ks-barrel.pos-frei,
.esser-ks-barrel.pos-access {
  transform: rotate(45deg);
}

.esser-ks-slot {
  width: 4px;
  height: 18px;
  background: #0f172a;
  border-radius: 1px;
}

/* 6 White Operational Pill Buttons */
.esser-op-buttons-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.esser-op-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.esser-op-pill-btn {
  background: #ffffff;
  border: 1.5px solid #1e293b;
  border-radius: 14px;
  width: 64px;
  height: 22px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s ease;
}

.esser-op-pill-btn:active {
  background: #e2e8f0;
  transform: translateY(1px);
}

.esser-op-label {
  font-size: 7px;
  font-weight: 700;
  color: #f1f5f9;
  text-align: center;
  line-height: 1.15;
  max-width: 90px;
}
