/* ==========================================================================
   SIMPLEX 4100ES COLOR TOUCHSCREEN FIRE ALARM CONTROL PANEL FASCIA STYLES
   High-Fidelity implementation of the Simplex 4100ES InfoAlarm / ES Touch Screen
   ========================================================================== */

:root {
  --sx-cabinet-bg: #1c1e22;
  --sx-cabinet-texture: radial-gradient(circle at 30% 20%, #2f333a 0%, #1a1c1f 85%);
  --sx-bezel-border: #474d55;
  --sx-bezel-inner: #646b75;
  
  --sx-led-red: #ff2222;
  --sx-led-yellow: #ffb000;
  --sx-led-green: #10e040;
  --sx-led-white: #e2f0ff;
  
  --sx-led-off-red: #240a0a;
  --sx-led-off-yellow: #262008;
  --sx-led-off-green: #07220d;
  --sx-led-off-white: #202428;

  --sx-screen-bg: #e3e6e8;
}

/* Outer Enclosure Cabinet */
.simplex-cabinet {
  position: relative;
  width: 880px;
  max-width: 100%;
  margin: 0 auto;
  background: var(--sx-cabinet-bg);
  background-image: var(--sx-cabinet-texture);
  border: 5px solid #0f1114;
  border-radius: 12px;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(0, 0, 0, 0.6);
  padding: 24px 26px;
  box-sizing: border-box;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Cabinet Inner Layout: Left Touchscreen & Below Controls | Right Switch Annunciator */
.simplex-main-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.simplex-left-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   TOUCHSCREEN BEZEL & DISPLAY
   -------------------------------------------------------------------------- */
.simplex-screen-bezel {
  position: relative;
  background: linear-gradient(145deg, #717882 0%, #505660 45%, #3c4149 100%);
  border: 3px solid #282c32;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 
    inset 0 2px 2px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5),
    0 8px 18px rgba(0, 0, 0, 0.6);
}

.simplex-touch-screen {
  background: var(--sx-screen-bg);
  border: 2px solid #1a1d22;
  border-radius: 4px;
  height: 380px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: relative;
}

/* Top Status Banner */
.simplex-screen-header {
  height: 28px;
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.simplex-screen-header.normal {
  background: linear-gradient(180deg, #3a7bd5 0%, #20549c 100%);
}

.simplex-screen-header.fire {
  background: linear-gradient(180deg, #e61919 0%, #b30000 100%);
  animation: sxFirePulse 1.2s infinite ease-in-out;
}

.simplex-screen-header.trouble {
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
}

.simplex-screen-header.supy {
  background: linear-gradient(180deg, #eab308 0%, #a16207 100%);
}

@keyframes sxFirePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.simplex-header-title {
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.simplex-header-time {
  font-size: 11px;
  font-weight: 700;
  color: #f1f5f9;
}

/* Screen Main Content Area */
.simplex-screen-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

.simplex-screen-content {
  flex: 1;
  padding: 10px 12px;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Right Touch Action Column on Display */
.simplex-screen-side-actions {
  flex: 0 0 100px;
  background: #ccd1d7;
  border-left: 1.5px solid #a6acb3;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.simplex-side-btn {
  background: linear-gradient(180deg, #2b6cb0 0%, #1a4975 100%);
  color: #ffffff;
  border: 1px solid #0f2d4a;
  border-radius: 4px;
  padding: 8px 4px;
  font-size: 9.5px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
  line-height: 1.2;
}

.simplex-side-btn:hover {
  background: linear-gradient(180deg, #3182ce 0%, #2b6cb0 100%);
}

.simplex-side-btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.simplex-side-btn.accent {
  background: linear-gradient(180deg, #c53030 0%, #9b2c2c 100%);
  border-color: #742a2a;
}
.simplex-side-btn.accent:hover {
  background: linear-gradient(180deg, #e53e3e 0%, #c53030 100%);
}

/* --------------------------------------------------------------------------
   MAIN MENU GRID VIEW
   -------------------------------------------------------------------------- */
.simplex-menu-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.simplex-menu-title {
  background: linear-gradient(180deg, #718096 0%, #4a5568 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  padding: 4px 0;
  border-radius: 3px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.simplex-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 12px;
  padding: 4px 6px;
}

.simplex-menu-btn {
  background: linear-gradient(180deg, #5a6578 0%, #3a4250 100%);
  color: #ffffff;
  border: 1px solid #232730;
  border-radius: 5px;
  height: 48px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.12s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
}

.simplex-menu-btn:hover {
  background: linear-gradient(180deg, #6b778d 0%, #485264 100%);
  border-color: #1a1c22;
}

.simplex-menu-btn:active {
  background: linear-gradient(180deg, #2e3540 0%, #404957 100%);
  transform: translateY(1px);
}

/* --------------------------------------------------------------------------
   FIRE ALARM & TROUBLE EVENT CARDS VIEW
   -------------------------------------------------------------------------- */
.simplex-event-summary-box {
  background: #ffffff;
  border: 2px solid #dc2626;
  border-radius: 5px;
  padding: 8px 10px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.simplex-event-summary-box.trouble-card {
  border-color: #d97706;
}

.simplex-ev-sum-left {
  font-size: 11px;
}

.simplex-ev-sum-floor {
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
}

.simplex-ev-sum-type {
  font-size: 11px;
  font-weight: 700;
  color: #dc2626;
  margin-top: 2px;
}

.simplex-ev-sum-type.trouble-text {
  color: #d97706;
}

.simplex-ev-sum-badge {
  background: #dc2626;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
}

.simplex-ev-sum-badge.amber {
  background: #d97706;
}

.simplex-ev-list-container {
  border: 1px dashed #dc2626;
  background: #fafafa;
  border-radius: 4px;
  padding: 6px;
  max-height: 140px;
  overflow-y: auto;
}

.simplex-ev-list-item {
  padding: 6px 8px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 10.5px;
  display: flex;
  justify-content: space-between;
}

.simplex-ev-list-item:last-child {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   BOTTOM TOUCH SCREEN NAVIGATION & COUNTERS BAR
   -------------------------------------------------------------------------- */
.simplex-screen-footer {
  height: 48px;
  background: #b5bcc4;
  border-top: 1.5px solid #8e959d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  flex-shrink: 0;
  gap: 4px;
}

.simplex-tab-counters {
  display: flex;
  gap: 3px;
}

.simplex-tab-btn {
  background: #8e98a3;
  color: #ffffff;
  border: 1px solid #6b747e;
  border-radius: 4px;
  padding: 4px 6px;
  min-width: 44px;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  line-height: 1.1;
}

.simplex-tab-btn.alarm-active {
  background: #e61919;
  border-color: #990000;
  color: #ffffff;
  box-shadow: 0 0 6px #e61919;
}

.simplex-tab-btn.trouble-active {
  background: #f59e0b;
  border-color: #b45309;
  color: #ffffff;
  box-shadow: 0 0 6px #f59e0b;
}

.simplex-tab-btn.supy-active {
  background: #eab308;
  border-color: #a16207;
  color: #ffffff;
}

.simplex-touch-cmd-btn {
  background: linear-gradient(180deg, #535c68 0%, #333a42 100%);
  color: #ffffff;
  border: 1px solid #1e2227;
  border-radius: 4px;
  padding: 6px 7px;
  font-size: 9.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.simplex-touch-cmd-btn:hover {
  background: linear-gradient(180deg, #646e7c 0%, #3e464f 100%);
}

.simplex-touch-cmd-btn:active {
  transform: translateY(1px);
}

.simplex-touch-nav-icons {
  display: flex;
  gap: 4px;
}

.simplex-nav-circle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e3a5f;
  color: #ffffff;
  border: 1.5px solid #3182ce;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.simplex-nav-circle-btn:hover {
  background: #2b4c7e;
}

.simplex-nav-circle-btn.light {
  background: #edf2f7;
  color: #2d3748;
  border-color: #cbd5e0;
}
.simplex-nav-circle-btn.light:hover {
  background: #ffffff;
}

/* --------------------------------------------------------------------------
   BOTTOM 6 PHYSICAL RUBBER PUSH BUTTONS & AC POWER LED
   -------------------------------------------------------------------------- */
.simplex-bottom-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 0 10px;
}

.simplex-push-buttons-row {
  display: flex;
  gap: 12px;
}

.simplex-rubber-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Molded Rubber Pill Push Button */
.simplex-rubber-btn {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid;
  cursor: pointer;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: all 0.12s ease;
  padding: 0;
}

.simplex-rubber-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.simplex-rubber-btn.red {
  background: radial-gradient(circle at 40% 35%, #ef4444 0%, #b91c1c 70%, #7f1d1d 100%);
  border-color: #450a0a;
}

.simplex-rubber-btn.yellow {
  background: radial-gradient(circle at 40% 35%, #fbbf24 0%, #d97706 70%, #92400e 100%);
  border-color: #451a03;
}

.simplex-rubber-btn-icon {
  font-size: 22px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

/* Circular Status LED below push button */
.simplex-btn-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #111;
  background: var(--sx-led-off-white);
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.8);
  transition: all 0.15s ease;
}

.simplex-btn-led.active {
  background: var(--sx-led-white);
  box-shadow: 
    0 0 8px #ffffff,
    0 0 14px rgba(255, 255, 255, 0.6),
    inset 0 1px 1px #ffffff;
  border-color: #fff;
}

/* AC Power Green Indicator & Emblem */
.simplex-ac-power-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.simplex-ac-emblem {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.35);
}

.simplex-ac-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #000;
  background: var(--sx-led-off-green);
  transition: all 0.15s ease;
}

.simplex-ac-led.active {
  background: var(--sx-led-green);
  box-shadow: 
    0 0 10px #10e040,
    0 0 20px rgba(16, 224, 64, 0.5),
    inset 0 1px 1px #fff;
  border-color: #fff;
}

/* --------------------------------------------------------------------------
   RIGHT SWITCH MODULE / ANNUNCIATOR STRIP (7 CHANNELS)
   -------------------------------------------------------------------------- */
.simplex-right-section {
  flex: 0 0 240px;
  background: #3c424a;
  border: 3px solid #23272e;
  border-radius: 10px;
  padding: 14px 12px;
  box-shadow: 
    inset 0 2px 2px rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5),
    0 6px 14px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.simplex-switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Switch Push Button with Circular LED */
.simplex-switch-btn-wrap {
  position: relative;
  width: 32px;
  height: 28px;
  background: linear-gradient(180deg, #4b525d 0%, #2f343c 100%);
  border: 1px solid #1a1d22;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.simplex-switch-btn-wrap:active {
  transform: translateY(1px);
}

.simplex-switch-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #000;
  background: var(--sx-led-off-yellow);
  transition: all 0.15s ease;
}

.simplex-switch-led.active {
  background: var(--sx-led-yellow);
  box-shadow: 
    0 0 8px #ffb000,
    0 0 14px rgba(255, 176, 0, 0.6),
    inset 0 1px 1px #fff;
  border-color: #fff;
}

/* White Slide-in Paper Label Strip */
.simplex-switch-label {
  flex: 1;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 6px 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
