


/* ===================================================
   PANEL SIM LAYOUT
   =================================================== */

.sim-shell {
  max-width:1100px;
  margin:24px auto;
  padding:0 16px;
  color:black;
}

.sim-header h1 { margin:0; }
.sim-header p { margin:.25rem 0 0; color:black; }
.sim-header {background:white;}

.toolbar {
  display:flex;
  gap:8px;
  align-items:center;
  margin:12px 0 18px;
}

.sim-grid {
  display:grid;
  grid-template-columns:1fr 360px;
  gap:16px;
}

.panel {
  background:white;
  border-radius:12px;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* LCD Screen */

.lcd {
  width:100%;
  max-width:520px;
  min-height:180px;
  background:#0b1c0b;
  color:#aef2ae;
  border:2px inset #1b3a1b;
  border-radius:10px;
  padding:12px;
  white-space:pre-wrap;
  font:14px/1.25 ui-monospace,Menlo,Consolas,monospace;
}

/* ===================================================
   LED + INDICATORS
   =================================================== */

.legend {
  display:flex;
  gap:14px;
  align-items:center;
  font-size:12px;
  color:#a9b1bf;
}

.led-row {
  display:flex;
  gap:10px;
  align-items:center;
}

.led {
  width:16px;
  height:16px;
  border-radius:50%;
  border:1px solid #333;
  box-shadow:inset 0 0 4px rgba(0,0,0,.5);
}

.led-off { background:#0b0b0b; }

.dot {
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:50%;
  margin-right:6px;
  border:1px solid #333;
}

.dot-green  { background:#00b050; }
.dot-red    { background:#e63232; }
.dot-yellow { background:#f2d14b; }

.led-on-green  { background:#00b050; }
.led-on-red    { background:#e63232; }
.led-on-yellow { background:#f2d14b; }

/* ===================================================
   KEYPAD
   =================================================== */

.keys {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.keys .spacer {
  flex-basis:100%;
  height:0;
}

/* Base keypad buttons */

.keys button {
  padding:6px 10px;
  font-size:12px;
  border-radius:6px;
  cursor:pointer;
  font-weight:600;
  background:var(--key-bg);
  color:var(--key-fg);
  border:1px solid var(--key-border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 1px 2px rgba(0,0,0,0.5);
  transition:
    background 0.12s ease,
    box-shadow 0.12s ease,
    transform 0.05s ease;
}

.keys button:hover {
  filter:brightness(1.15);
}

.keys button:active {
  transform:translateY(2px);
  box-shadow:inset 0 2px 6px rgba(0,0,0,0.6);
}

/* ==========================================
   EST-STYLE FUNCTION / NAV / NUMBER KEYS
   ========================================== */

/* MAIN PANEL ACTIONS */
.keys button[data-key="SILENCE"] {
  background:linear-gradient(#facc15,#eab308);
  color:#1f2937;
  border-color:#ca8a04;
}

.keys button[data-key="RESET"] {
  background:linear-gradient(#fb923c,#f97316);
  color:#fff;
  border-color:#c2410c;
}

.keys button[data-key="DRILL"] {
  background:linear-gradient(#ef4444,#dc2626);
  color:#fff;
  border-color:#991b1b;
}

/* NAV / ENTER / ESC */
.keys button[data-key="ENTER"],
.keys button[data-key="SOFT4"] {
  background:linear-gradient(#3b82f6,#2563eb);
  color:#fff;
  border-color:#1e40af;
}

.keys button[data-key="ESC"],
.keys button[data-key="SOFT1"] {
  background:linear-gradient(#94a3b8,#64748b);
  color:#111827;
  border-color:#475569;
}

/* ARROWS / SOFT ARROWS */
.keys button[data-key="UP"],
.keys button[data-key="DOWN"],
.keys button[data-key="LEFT"],
.keys button[data-key="RIGHT"],
.keys button[data-key="SOFT2"],
.keys button[data-key="SOFT3"] {
  background:linear-gradient(#111827,#020617);
  color:#e5e7eb;
  border-color:#374151;
}

/* NUMBER KEYPAD */
.keys button[data-key="0"],
.keys button[data-key="1"],
.keys button[data-key="2"],
.keys button[data-key="3"],
.keys button[data-key="4"],
.keys button[data-key="5"],
.keys button[data-key="6"],
.keys button[data-key="7"],
.keys button[data-key="8"],
.keys button[data-key="9"] {
  background:linear-gradient(#2b2f36,#1f232a);
  color:#e5e7eb;
  border-color:#3f3f46;
}

/* ===================================================
   POINTS / EVENTS / CARDS
   =================================================== */

.card {
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
}

.dev-row {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.points-box {
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
  background:#101318;
  max-width:520px;
}

.points-list {
  display:flex;
  flex-direction:column;
  gap:4px;
  max-height:220px;
  overflow:auto;
}

.points-list div {
  cursor:pointer;
  font:12px ui-monospace,Menlo,Consolas,monospace;
  padding:6px 8px;
  border:1px dashed rgba(255,255,255,.12);
  border-radius:6px;
}

/* ===================================================
   POLISH
   =================================================== */

.panel button {
  border-radius:6px;
  font-weight:600;
  transition:all .15s ease;
}

.panel button:active {
  transform:translateY(1px);
  box-shadow:inset 0 2px 4px rgba(0,0,0,0.3);
}
/* ================================
   Fix bottom "Points" section look
   ================================ */

/* Make the Points card match the other light cards */
.points-box {
  max-width: 520px;
  border-radius: 12px;
  padding: 10px 12px;

  background: #f9fafb;           /* light card */
  border: 1px solid #e5e7eb;     /* soft border */
  color: #111827;
}

/* The list itself just scrolls; no dark block */
.points-list {
  max-height: 220px;
  overflow: auto;
  padding: 4px 0;
  background: transparent;
}

/* Each point row: light chip instead of dark stripe */
.points-list div {
  background: #e5e7eb;
  color: #111827;
  border: 1px dashed #d4d4d8;
  border-radius: 6px;
  padding: 6px 8px;
}
/* ================================
   FINAL POLISH FOR POINTS SECTION
   ================================ */

/* Make the Points card look like a built-in panel widget */
.points-box {
  max-width: 520px;
  margin-top: 12px;
  align-self: flex-start;

  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #d4d4d8;
  padding: 0;                     /* header + body handle padding */
  box-shadow: 0 2px 4px rgba(0,0,0,0.35);
}

/* Header strip */
.points-box > h3 {
  margin: 0;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(180deg,white,white);
  border-radius: 12px 12px 0 0;
}

/* List body */
.points-list {
  max-height: 220px;
  overflow: auto;
  padding: 6px 8px 8px;
  background: #f9fafb;
  border-radius: 0 0 12px 12px;
}

/* Each point row */
.points-list div {
  background: #ffffff;
  color: #111827;
  border: 1px dashed #e5e7eb;
  border-radius: 6px;
  padding: 5px 8px;
  font: 11px ui-monospace, Menlo, Consolas, monospace;
}

.points-list div + div {
  margin-top: 4px;
}
/* ================================
   Right-side info cards (Active / History / Pins)
   ================================ */

.side .card {
  background: #f9fafb;              /* light card */
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  color: #111827;
  box-shadow: 0 1px 3px rgba(15,23,42,0.18);
}

.side .card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.side .card p,
.side .card li,
.side .card .muted {
  color: #4b5563;
  font-size: 13px;
}

.side .card ul {
  margin: 4px 0 0;
  padding-left: 18px;
}
.active-events-wrap{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.active-events-summary{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:6px;
}

.active-events-summary .pill{
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:6px 8px;
  text-align:center;
  font-size:11px;
  font-weight:700;
  color:#111827;
}

.active-events-list{
  display:flex;
  flex-direction:column;
  gap:6px;
  max-height:260px;
  overflow:auto;
}

.active-event-item{
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-left:5px solid #d1d5db;
  border-radius:8px;
  padding:8px 10px;
  font-size:12px;
  line-height:1.4;
  color:#111827;
}

.active-event-item.is-alarm{
  border-left-color:#dc2626;
}

.active-event-item.is-supervisory{
  border-left-color:#f59e0b;
}

.active-event-item.is-trouble{
  border-left-color:#eab308;
}

.active-event-item.is-monitor{
  border-left-color:#2563eb;
}

.active-event-item.is-current{
  box-shadow:0 0 0 2px rgba(37,99,235,0.18);
  background:#eff6ff;
}

.active-event-item .meta{
  font-size:11px;
  color:#6b7280;
}

.active-event-item .ack{
  font-weight:700;
  color:#065f46;
}