/* ==========================================================================
   BOSCH AVENAR 8000 / 2000 MODULAR FIRE ALARM PANEL FASCIA STYLES
   High-fidelity replica based on official Bosch Avenar / FPA-5000 industrial design
   ========================================================================== */

/* Outer Cabinet Enclosure */
.bosch-cabinet {
  max-width: 980px;
  margin: 0 auto;
  background: #1e2022;
  background-image: 
    linear-gradient(180deg, #2a2d30 0%, #1a1c1d 40%, #151718 100%);
  border: 4px solid #111314;
  border-radius: 14px;
  box-shadow: 
    0 18px 40px rgba(0, 0, 0, 0.75),
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.8);
  padding: 16px 20px 20px 20px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  user-select: none;
  position: relative;
}

/* Industrial Ventilation Louvers (Top & Bottom rows) */
.bosch-louvers-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  gap: 3px;
  margin-bottom: 12px;
}

.bosch-louvers-row.bottom {
  margin-top: 14px;
  margin-bottom: 0;
}

.bosch-louver-slit {
  flex: 1;
  height: 16px;
  background: #08090a;
  border-radius: 2px;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.95),
    0 1px 0 rgba(255, 255, 255, 0.08);
  min-width: 3px;
  max-width: 7px;
}

.bosch-louver-slit.wide {
  max-width: 14px;
  background: #050506;
}

/* Main Inner Faceplate Layout */
.bosch-main-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  background: #121314;
  border: 2px solid #232629;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 
    inset 0 3px 8px rgba(0, 0, 0, 0.8),
    0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   LEFT SECTION: Annunciator Pictogram Matrix Sub-Panel
   ========================================================================== */
.bosch-annunciator-bay {
  background: #0c0d0e;
  border: 1.5px solid #282b2e;
  border-radius: 8px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 
    inset 0 2px 6px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Top auxiliary header icons (Wireless & Asterisk) */
.bosch-ann-top-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bosch-ann-header-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.bosch-ann-header-icon {
  font-size: 17px;
  color: #71717a;
  transition: all 0.2s ease;
}

.bosch-ann-header-item:hover .bosch-ann-header-icon {
  color: #e4e4e7;
}

.bosch-ann-header-item.active .bosch-ann-header-icon {
  color: #38bdf8;
  text-shadow: 0 0 8px #38bdf8;
}

/* 2-Column x 8-Row Pictogram Matrix */
.bosch-pictogram-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.bosch-pictogram-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.bosch-pictogram-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.bosch-icon-svg {
  width: 20px;
  height: 20px;
  fill: #858c94;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.bosch-pictogram-item.active .bosch-icon-svg {
  fill: #ffffff;
}

/* Round Indicator LED next to icon */
.bosch-ann-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #25282a;
  border: 1px solid #18191a;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

/* LED Color variations when active */
.bosch-ann-led.red.active {
  background: #ef4444;
  border-color: #b91c1c;
  box-shadow: 0 0 8px #ef4444, inset 0 0 4px #fca5a5;
  animation: pulse-red-led 1s infinite alternate;
}

.bosch-ann-led.yellow.active {
  background: #f59e0b;
  border-color: #d97706;
  box-shadow: 0 0 8px #f59e0b, inset 0 0 4px #fde68a;
}

.bosch-ann-led.green.active {
  background: #10b981;
  border-color: #059669;
  box-shadow: 0 0 8px #10b981, inset 0 0 4px #a7f3d0;
}

@keyframes pulse-red-led {
  0% { opacity: 0.85; filter: drop-shadow(0 0 4px #ef4444); }
  100% { opacity: 1; filter: drop-shadow(0 0 10px #ef4444); }
}

/* ==========================================================================
   RIGHT SECTION: Touchscreen GUI & Bottom Physical Controls
   ========================================================================== */
.bosch-screen-bay {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Touchscreen Outer Bezel Frame */
.bosch-touch-bezel {
  background: #090a0b;
  border: 2px solid #272a2e;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 
    inset 0 3px 10px rgba(0, 0, 0, 0.95),
    0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Inner 7-inch Color Screen */
.bosch-lcd-screen {
  background: #0f1c2e;
  background-image: 
    radial-gradient(ellipse at center, #13243d 0%, #0a1320 100%);
  border: 1.5px solid #1e3a5f;
  border-radius: 6px;
  height: 330px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 
    inset 0 0 16px rgba(0, 0, 0, 0.7),
    0 0 12px rgba(15, 28, 46, 0.4);
  position: relative;
}

/* Screen Header Bar */
.bosch-screen-header {
  height: 34px;
  background: linear-gradient(180deg, #1e385b 0%, #132742 100%);
  border-bottom: 1.5px solid #254a77;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.bosch-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bosch-header-icon {
  font-size: 13px;
  color: #38bdf8;
}

.bosch-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bosch-brand-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bosch-logo-text {
  font-size: 13px;
  font-weight: 900;
  color: #e11d48;
  letter-spacing: 0.8px;
}

.bosch-magneto-emblem {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #e11d48;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bosch-magneto-emblem::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e11d48;
}

/* Screen Main Work Area (Split: Left Menu Grid + Right Keypad) */
.bosch-screen-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 180px;
  padding: 10px;
  gap: 12px;
  box-sizing: border-box;
}

/* Left: 8 Menu Touch Action Buttons */
.bosch-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, 1fr);
  gap: 8px;
}

.bosch-menu-btn {
  background: linear-gradient(180deg, #172c47 0%, #0e1d32 100%);
  border: 1px solid #234670;
  border-radius: 4px;
  color: #f1f5f9;
  font-size: 10.5px;
  font-weight: 700;
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  transition: all 0.15s ease;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bosch-menu-btn:hover {
  background: linear-gradient(180deg, #1f3b5e 0%, #132742 100%);
  border-color: #38bdf8;
  color: #ffffff;
}

.bosch-menu-btn:active {
  transform: translateY(1px);
  background: #091322;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7);
}

.bosch-menu-btn.accent-red {
  border-color: #dc2626;
  background: linear-gradient(180deg, #381519 0%, #220c0f 100%);
}

.bosch-menu-btn.accent-red:hover {
  background: linear-gradient(180deg, #4c1d23 0%, #2f1014 100%);
  border-color: #f87171;
}

/* Active Alarm Display View inside Screen Body */
.bosch-alarm-display-view {
  grid-column: 1 / -1;
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid #dc2626;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.35);
  animation: pulse-screen-alarm 1.2s infinite alternate;
}

@keyframes pulse-screen-alarm {
  0% { border-color: #dc2626; box-shadow: 0 0 8px rgba(220, 38, 38, 0.25); }
  100% { border-color: #ef4444; box-shadow: 0 0 16px rgba(239, 68, 68, 0.5); }
}

.bosch-alarm-banner {
  background: #dc2626;
  color: #ffffff;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* High-priority persistent alert banner on non-fire views */
.bosch-top-priority-alert {
  background: #dc2626;
  color: #ffffff;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 6px;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.45);
  animation: pulse-screen-alarm 1s infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.bosch-top-priority-alert:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.bosch-top-priority-alert.supy {
  background: #d97706;
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.45);
}

.bosch-alarm-details {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bosch-alarm-main-text {
  font-size: 12.5px;
  font-weight: 800;
  color: #fee2e2;
}

.bosch-alarm-sub-text {
  font-size: 11px;
  color: #cbd5e1;
}

.bosch-alarm-analog {
  font-size: 10px;
  color: #fbbf24;
  font-weight: 700;
}

/* Fault & Supervisory Views */
.bosch-fault-display-view {
  grid-column: 1 / -1;
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid #d97706;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0 14px rgba(217, 119, 6, 0.35);
  overflow-y: auto;
}

.bosch-fault-banner {
  background: #d97706;
  color: #ffffff;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bosch-control-display-view {
  grid-column: 1 / -1;
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid #0284c7;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.35);
  overflow-y: auto;
}

.bosch-scroll-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
  max-height: 190px;
  overflow-y: auto;
}

.bosch-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 11px;
  color: #cbd5e1;
}

.bosch-item-row.alert {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
}

.bosch-item-row.warning {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  color: #fde68a;
}

.bosch-item-btn {
  background: #1e3a5f;
  color: #e2e8f0;
  border: 1px solid #38bdf8;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.1s ease;
}

.bosch-item-btn:hover {
  background: #0284c7;
  color: #ffffff;
}

.bosch-item-btn.danger {
  border-color: #ef4444;
  background: #7f1d1d;
}

.bosch-item-btn.danger:hover {
  background: #dc2626;
}

/* Right: Virtual Keypad & Cursor D-Pad on Touchscreen */
.bosch-virtual-keypad {
  background: rgba(10, 19, 32, 0.7);
  border: 1px solid #1a3353;
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 12-Key Numeric Matrix */
.bosch-num-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.bosch-num-key {
  background: linear-gradient(180deg, #172a42 0%, #0d1a2c 100%);
  border: 1px solid #234164;
  border-radius: 3px;
  color: #f8fafc;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 2px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.1s ease;
}

.bosch-num-key .sub-letters {
  font-size: 6.5px;
  color: #94a3b8;
  font-weight: normal;
  margin-top: 1px;
}

.bosch-num-key:hover {
  background: #25446c;
  border-color: #38bdf8;
}

.bosch-num-key:active {
  background: #091422;
  transform: translateY(1px);
}

/* Navigation D-Pad with Enter */
.bosch-dpad-cluster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 22px);
  gap: 4px;
}

.bosch-dpad-btn {
  background: linear-gradient(180deg, #172a42 0%, #0d1a2c 100%);
  border: 1px solid #234164;
  border-radius: 3px;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s ease;
}

.bosch-dpad-btn:hover {
  background: #25446c;
  color: #ffffff;
}

.bosch-dpad-btn.enter-btn {
  grid-column: 2 / span 2;
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border-color: #38bdf8;
  color: #ffffff;
  font-size: 12px;
}

/* Bottom Event Status Tabs (Screen bottom bar) */
.bosch-screen-tabs {
  height: 32px;
  background: linear-gradient(180deg, #102137 0%, #091423 100%);
  border-top: 1.5px solid #213f63;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.bosch-tab-btn {
  flex: 1;
  height: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  color: #cbd5e1;
  font-size: 9.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bosch-tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.bosch-tab-btn.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 6px #0284c7;
}

.bosch-tab-btn.tab-fire.has-alarm {
  background: #dc2626;
  border-color: #f87171;
  color: #ffffff;
  box-shadow: 0 0 8px #dc2626;
  animation: pulse-red-led 1s infinite alternate;
}

.bosch-tab-btn.tab-fault.has-fault {
  background: #d97706;
  border-color: #fbbf24;
  color: #ffffff;
}

.bosch-tab-btn.tab-bypass.has-bypass {
  background: #b45309;
  border-color: #f59e0b;
  color: #ffffff;
}

.bosch-tab-btn.softkey {
  max-width: 32px;
  color: #94a3b8;
  font-size: 9px;
}

/* ==========================================================================
   CHASSIS BOTTOM KEYPAD (6 Physical Touch Controls below screen)
   ========================================================================== */
.bosch-chassis-keypad {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 4px 2px;
}

.bosch-chassis-btn {
  height: 42px;
  background: linear-gradient(180deg, #222528 0%, #131516 100%);
  border: 1.5px solid #363a3e;
  border-radius: 6px;
  color: #d1d5db;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 3px 6px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.15s ease;
}

.bosch-chassis-btn:hover {
  background: linear-gradient(180deg, #2a2e32 0%, #1a1d1e 100%);
  border-color: #525860;
  color: #ffffff;
}

.bosch-chassis-btn:active {
  transform: translateY(2px);
  background: #0d0f10;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8);
}

.bosch-chassis-btn.active {
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.bosch-chassis-btn.evac-btn.active {
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  border-color: #fca5a5;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.5);
  animation: pulse-red-led 1s infinite alternate;
}

/* Screensaver Mode for Bosch Display */
.bosch-screensaver-view {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  cursor: pointer;
}

.bosch-screensaver-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.bosch-screensaver-logo-text {
  font-size: 20px;
  font-weight: 900;
  color: #e11d48;
  letter-spacing: 1px;
}

.bosch-screensaver-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.5px;
}

.bosch-screensaver-sub {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
}

.bosch-screensaver-time {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 800;
  color: #38bdf8;
  font-family: "Courier New", Courier, monospace;
}

.bosch-screensaver-prompt {
  margin-top: 10px;
  font-size: 9px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
