/*!**********************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].rules[0].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[5].rules[0].oneOf[0].use[2]!./src/styles.css?ngGlobalStyle ***!
  \**********************************************************************************************************************************************************************************************************************/
/* Global styles migrated from static version */
:root {
  --bg: #0b1020;
  --panel: #12182a;
  --panel-2: #0f1526;
  --text: #e5e7eb;
  --muted: #9aa4b2;
  --primary: #60a5fa; /* voltage */
  --accent: #22c55e; /* current */
  --danger: #ef4444;
  --warning: #f59e0b;
  --ring: #3b82f6;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

body.theme-light {
  --bg: #f7fafc;
  --panel: #ffffff;
  --panel-2: #f0f4f8;
  --text: #0b1020;
  --muted: #4a5568;
  --ring: #2563eb;
  --shadow: 0 10px 30px rgba(2, 6, 23, .08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, #1a2550 0%, transparent 60%),
              radial-gradient(1000px 600px at 120% -20%, #0a0f2a 0%, transparent 70%),
              var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.app {
  max-width: 1100px;
  margin: 24px auto 64px;
  padding: 0 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.alarm {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
}
.alarm:hover { border-color: rgba(255,255,255,0.12); }
.alarm-indicator {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
}
.alarm.disarmed .alarm-indicator {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}
.icon-btn {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.icon-btn:hover { border-color: rgba(255,255,255,0.12); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
}
.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.12); }
.card.selected {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 30%, transparent), var(--shadow);
}
.card .title { font-weight: 600; margin-bottom: 10px; }
.card .row { display: flex; justify-content: space-between; margin: 6px 0; color: var(--muted); }
.card .val { color: var(--text); font-weight: 600; }

.chart-panel {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  margin-top: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.panel-header { display: flex; align-items: baseline; gap: 10px; }
.panel-header h2 { margin: 0; font-size: 18px; }
.muted { color: var(--muted); font-size: 12px; }
.legend-inline { display: flex; align-items: center; gap: 16px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); display: inline-block; margin-right: 6px; }

.relays { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.relay {
  padding: 12px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.relay:hover { border-color: rgba(255,255,255,0.12); }
.relay.on { background: linear-gradient(180deg, rgba(34,197,94,.25), rgba(34,197,94,.15)); border-color: rgba(34,197,94,.45); box-shadow: 0 0 0 3px rgba(34,197,94,.18), var(--shadow); }

.modal-backdrop {
  position: fixed; inset: 0; display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
}
.modal-backdrop.show { display: flex; }
.modal {
  width: min(92vw, 400px);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.modal h3 { margin: 4px 0 12px; }
.pin-input {
  width: 100%; padding: 12px 14px; border-radius: 12px; color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  outline: none;
}
.pin-input:focus { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 28%, transparent); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.btn { padding: 10px 14px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--ring); color: white; }
.btn.secondary { background: rgba(255,255,255,0.04); color: var(--text); border-color: rgba(255,255,255,0.1); }
.pin-error { color: var(--danger); font-size: 12px; margin-top: 8px; min-height: 16px; }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }


/*# sourceMappingURL=styles.css.map*/