@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ── Predix phone mockup component styles ── */

:root {
  --card-bg: #1a2234;
  --card-bg-light: #1e2740;
  --card-border: #253045;
  --predix-blue: #1b8dde;
  --predix-cyan: #00b4d8;
  --predix-teal: #0ea5a0;
  --accent-amber: #f0a030;
  --accent-red: #e05252;
  --accent-green: #3dba6c;
  --text-primary: #e2e8f0;
  --text-secondary: #8899b0;
  --text-dim: #4a5a70;
  --screen-bg: #111827;
}

.phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  position: relative;
}

.iphone {
  position: relative;
  width: 260px;
  height: 540px;
  background: linear-gradient(145deg, #2a2a30, #1a1a1e);
  border-radius: 42px;
  border: 2.5px solid #333;
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.06),
    0 30px 80px rgba(0,0,0,0.45),
    0 12px 30px rgba(0,0,0,0.25);
  flex-shrink: 0;
  overflow: hidden;
}

.iphone .dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

.iphone .screen {
  position: absolute;
  inset: 2.5px;
  border-radius: 39px;
  overflow: hidden;
  background: var(--screen-bg);
}

.phone-left  { transform: translateY(20px); z-index: 1; }
.phone-center { z-index: 3; transform: translateY(-8px); }
.phone-right { transform: translateY(20px); z-index: 1; }

.phone-left .screen::after,
.phone-right .screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.06);
  z-index: 100;
  pointer-events: none;
  border-radius: 39px;
}

.sc {
  padding: 44px 14px 60px;
  height: 100%;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
}

.sbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 600;
}

.sbar .t { font-size: 14px; font-weight: 700; }
.sbar .icons svg { vertical-align: middle; }

.lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.sc-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 11px;
  margin-bottom: 7px;
}

.card-sm {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 9px;
}

.sc-row { display: flex; gap: 7px; }
.sc-row > * { flex: 1; }
.mb8 { margin-bottom: 7px; }

.val-lg { font-size: 22px; font-weight: 700; line-height: 1.1; }
.val-md { font-size: 16px; font-weight: 700; line-height: 1.1; }
.unit { font-size: 10px; font-weight: 400; color: var(--text-secondary); }

.sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-top: 3px;
}

.txt-cyan  { color: var(--predix-cyan); }
.txt-green { color: var(--accent-green); }
.txt-amber { color: var(--accent-amber); }
.txt-red   { color: var(--accent-red); }
.center    { text-align: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 600;
}

.pill-green { background: rgba(61,186,108,0.12); color: var(--accent-green); }
.pill-amber { background: rgba(240,160,48,0.12);  color: var(--accent-amber); }

.dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }

.bars { display: flex; align-items: flex-end; gap: 1.5px; height: 24px; }
.bar  { flex: 1; border-radius: 1.5px 1.5px 0 0; min-width: 2.5px; }

.sc-tabs {
  display: flex;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 2.5px;
  margin-bottom: 12px;
}

.sc-tab {
  flex: 1;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 0;
  border-radius: 6px;
  color: var(--text-dim);
}

.sc-tab.on { background: var(--predix-blue); color: #fff; }

.asset {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  margin-bottom: 5px;
}

.asset-bar  { width: 4px; height: 32px; border-radius: 2px; flex-shrink: 0; }
.asset-body { flex: 1; }
.asset-name { font-size: 11.5px; font-weight: 600; }
.asset-meta { font-size: 9px; color: var(--text-secondary); margin-top: 1px; }
.asset-val  { text-align: right; }

.mini-bars { display: flex; align-items: flex-end; gap: 1px; height: 16px; margin-top: 3px; }
.mini-bar  { flex: 1; border-radius: 1px 1px 0 0; min-width: 2px; }

.gauge-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 4px auto 6px;
}

.gauge-wrap svg { transform: rotate(-90deg); }

.gauge-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2px;
  border-radius: 4px;
  overflow: hidden;
}

.hc { aspect-ratio: 1; border-radius: 2px; }

.sc-alert {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 8px;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 500;
}

.alert-red   { background: rgba(224,82,82,0.08);   border: 1px solid rgba(224,82,82,0.14); }
.alert-amber { background: rgba(240,160,48,0.08);   border: 1px solid rgba(240,160,48,0.14); }

.alert-time {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.wave svg { width: 100%; height: 28px; display: block; }

.bnav {
  position: absolute;
  bottom: 2.5px; left: 2.5px; right: 2.5px;
  height: 50px;
  background: rgba(12,16,28,0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  border-radius: 0 0 39px 39px;
}

.ni { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.ni span { font-size: 8px; color: var(--text-dim); font-weight: 500; }
.ni.on span { color: var(--predix-cyan); }

.hbar {
  position: absolute;
  bottom: 7px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
}

.ico { width: 18px; height: 18px; }

.sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.sec-head .action { font-size: 9px; font-weight: 600; color: var(--predix-cyan); }

.pbar { height: 4px; background: var(--card-border); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.pbar-fill { height: 100%; border-radius: 2px; }
