/* ==========================================================================
   TELEDATA ONE TOUCHSCREEN FIRE ALARM PANEL FASCIA STYLES
   Pixel-accurate rendition of the Teledata One "The Italian Touch!" Panel
   ========================================================================== */

:root {
  --td-bezel-bg: linear-gradient(135deg, #cbd0d6 0%, #b3b8bf 40%, #9fa5ac 100%);
  --td-bezel-border: #757b83;
  --td-glass-bg: #030406;
  
  --td-led-red: #ff2626;
  --td-led-yellow: #ffb700;
  --td-led-green: #11eb46;
  
  --td-led-off-red: #240a0a;
  --td-led-off-yellow: #262108;
  --td-led-off-green: #07210e;
  
  --td-screen-bg: #090b0e;
}

/* Outer Metallic Bezel Cabinet */
.teledata-cabinet {
  position: relative;
  width: 680px;
  max-width: 100%;
  margin: 0 auto;
  background: var(--td-bezel-bg);
  border: 4px solid var(--td-bezel-border);
  border-radius: 16px;
  box-shadow: 
    0 20px 55px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4);
  padding: 16px 20px;
  box-sizing: border-box;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Inner Glossy Piano Black Glass Faceplate */
.teledata-glass-faceplate {
  position: relative;
  background: var(--td-glass-bg);
  border: 2px solid #1a1e24;
  border-radius: 6px;
  box-shadow: 
    inset 0 3px 12px rgba(0, 0, 0, 0.95),
    0 1px 1px rgba(255, 255, 255, 0.35);
  padding: 18px 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 330px;
}

/* --------------------------------------------------------------------------
   LEFT & RIGHT ANNUNCIATOR COLUMNS
   -------------------------------------------------------------------------- */
.teledata-annun-col {
  flex: 0 0 105px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.teledata-annun-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.teledata-annun-item.right-align {
  justify-content: flex-end;
}

.teledata-annun-label {
  font-size: 9.5px;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Backlit Circular LEDs */
.teledata-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0.5px solid #000;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

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

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

.teledata-led.green {
  background: var(--td-led-off-green);
}
.teledata-led.green.active {
  background: var(--td-led-green);
  box-shadow: 
    0 0 12px #11eb46,
    0 0 24px rgba(17, 235, 70, 0.4),
    inset 0 1px 1px #fff;
  border-color: #fff;
}

/* --------------------------------------------------------------------------
   CENTER 7-INCH COLOR TOUCHSCREEN DISPLAY
   -------------------------------------------------------------------------- */
.teledata-screen-frame {
  flex: 1;
  background: #000000;
  border: 2px solid #2d333b;
  border-radius: 4px;
  box-shadow: 
    inset 0 0 8px rgba(0, 0, 0, 0.8),
    0 1px 2px rgba(255, 255, 255, 0.15);
  height: 275px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.teledata-touch-screen {
  background: var(--td-screen-bg);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 14px;
  box-sizing: border-box;
  color: #ffffff;
}

/* Screen Top Header */
.teledata-screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 5px;
}

.teledata-brand-tag {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   STANDBY MODE / SCREENSAVER (TELEDATA ONE LOGO)
   -------------------------------------------------------------------------- */
.teledata-standby-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.teledata-logo-img {
  width: 240px;
  max-width: 90%;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.teledata-main-menu-btn {
  background: transparent;
  color: #f1f5f9;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  padding: 5px 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.teledata-main-menu-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

.teledata-main-menu-btn:active {
  background: rgba(255, 255, 255, 0.3);
}

/* --------------------------------------------------------------------------
   ACTIVE TOUCHSCREEN OPERATOR UI
   -------------------------------------------------------------------------- */
.teledata-active-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 8px;
}

/* Status Banner */
.teledata-status-banner {
  padding: 5px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.teledata-status-banner.normal {
  background: #15803d;
  color: #ffffff;
}

.teledata-status-banner.fire {
  background: #dc2626;
  color: #ffffff;
  animation: tdFirePulse 1.2s infinite ease-in-out;
}

.teledata-status-banner.fault {
  background: #d97706;
  color: #ffffff;
}

@keyframes tdFirePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* Event List Card */
.teledata-event-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.4;
  margin: 6px 0;
}

.teledata-ev-title {
  font-weight: 800;
  color: #ffffff;
}

.teledata-ev-loc {
  color: #94a3b8;
  font-size: 10px;
}

.teledata-ev-analog {
  color: #cbd5e1;
  font-size: 9.5px;
  margin-top: 2px;
}

/* Touch Control Toolbar */
.teledata-touch-toolbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.teledata-touch-btn {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 6px 2px;
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.12s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.teledata-touch-btn:hover {
  background: #334155;
}

.teledata-touch-btn:active {
  background: #0f172a;
  transform: translateY(1px);
}

.teledata-touch-btn.danger {
  background: #991b1b;
  border-color: #b91c1c;
}
.teledata-touch-btn.danger:hover {
  background: #b91c1c;
}

.teledata-touch-btn.accent {
  background: #0369a1;
  border-color: #0284c7;
}
.teledata-touch-btn.accent:hover {
  background: #0284c7;
}
