/* admin/assets/css/hud_pixi.css - v4 GOLD + CLEAN (no charts) */

:root{
  --hud-gold: rgba(212,175,55,.40);
  --hud-gold2: rgba(212,175,55,.22);
  --hud-cyan: rgba(70,210,255,.14);
}

.ua-hud-wrap{ width:100%; margin-bottom:16px; }

.ua-hud-stage{
  position:relative;
  width:100%;
  height:520px;
  border-radius:18px;
  overflow:hidden;
  background: radial-gradient(ellipse at center, #0e3a4a 0%, #06161f 62%, #030a0f 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.35);
}

.ua-hud-stage canvas{
  position:absolute;
  inset:0;
  width:100% !important;
  height:100% !important;
  display:block;
}

/* Layout columns remain unchanged */
.ua-hud-overlay{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns: 280px 1fr 330px;
  gap:18px;
  padding:18px;
  pointer-events:none;
  font-family: Tajawal, Cairo, system-ui, -apple-system, "Segoe UI", Tahoma, Arial;
}

.ua-hud-panel{
  border-radius:16px;
  background: rgba(2,10,14,.15);
  position:relative;
  overflow:hidden;
  padding-top:40px;

  /* GOLD border like program */
  box-shadow:
    inset 0 0 0 2px var(--hud-gold),
    inset 0 0 0 4px rgba(0,0,0,.15),
    inset 0 0 40px rgba(20,160,210,.06);
}

.ua-hud-panel:before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(to bottom, rgba(60,200,255,.08), rgba(0,0,0,0)),
    repeating-linear-gradient(to bottom,
      rgba(90,220,255,.08),
      rgba(90,220,255,.08) 1px,
      transparent 1px,
      transparent 7px);
  opacity:.16;
  pointer-events:none;
}

.ua-hud-box-title{
  position:absolute;
  right:14px;
  top:12px;
  font-size:14px;
  font-weight:900;
  color: rgba(235,215,160,.92);
  letter-spacing:.3px;
  z-index:5;
  text-shadow: 0 1px 0 rgba(0,0,0,.55);
}

.ua-hud-slot{
  position:absolute;
  left:0; right:0; bottom:0;
  top:40px;
  padding:14px;
}

.ua-hud-left{
  display:grid;
  grid-template-rows: 140px 1fr 1fr;
  gap:18px;
}
.ua-hud-center{ display:flex; }
.ua-hud-center .ua-hud-panel{ width:100%; height:100%; }
.ua-hud-right{ display:grid; grid-template-rows: 140px 1fr 1fr; gap:18px; }

.ua-hud-status{
  padding:12px 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  color: rgba(220,245,255,.92);
  font-size:14px;
  font-weight:800;
  text-align:right;
  direction:rtl;
}

.ua-hud-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.ua-hud-row span{
  opacity:.95;
  font-weight:900;
  white-space:nowrap;
}

.ua-hud-pill{
  padding:5px 10px;
  border-radius:999px;
  font-weight:900;
  letter-spacing:.2px;
  background: rgba(0,0,0,.25);
  box-shadow: inset 0 0 0 2px var(--hud-gold2);
  min-width:56px;
  text-align:center;
}

.ua-hud-pill.online{ color:#4cffb1; }
.ua-hud-pill.warn{ color:#ff6b6b; }
.ua-hud-pill.neutral{ color: rgba(220,245,255,.95); }

/* KPI blocks for BW/CPU boxes (replace charts) */
.ua-kpi{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  width:100%;
  height:100%;
  align-content:start;
}

.ua-kpi-card{
  border-radius:14px;
  padding:12px 12px;
  background: rgba(0,0,0,.16);
  box-shadow: inset 0 0 0 2px rgba(70,210,255,.10);
}


/* Mini KPI ring (for WAN RX/TX) */
.ua-kpi-mini{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  padding:10px 10px 12px;
}

.ua-mini-ring{
  --pct: 0;                 /* 0..100 */
  --ring: rgba(43,255,136,.95);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  position: relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,0,0,.22) 62%, transparent 63%),
    conic-gradient(var(--ring) calc(var(--pct) * 1%), rgba(255,255,255,.08) 0);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.06);
  transition: background .25s ease;
}

.ua-mini-val{
  font-size: 16px;
  font-weight: 1000;
  color: rgba(255,190,120,.95);
  line-height: 1.05;
  letter-spacing:.2px;
}

.ua-mini-sub{
  font-size: 10px;
  font-weight: 900;
  color: rgba(200,235,245,.60);
  margin-top: 2px;
}

.ua-kpi-title{
  font-size:12px;
  font-weight:900;
  color: rgba(210,245,255,.82);
  margin-bottom:6px;
  letter-spacing:.2px;
}

.ua-kpi-val{
  font-size:18px;
  font-weight:1000;
  color: rgba(255,190,120,.95);
  letter-spacing:.2px;
}

.ua-kpi-sub{
  margin-top:2px;
  font-size:11px;
  color: rgba(200,235,245,.60);
  font-weight:800;
}

.ua-kpi-wide{ grid-column: 1 / -1; }

/* Small line under the big gauge (kept subtle, not blue links) */
.ua-hud-sub{
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  color: rgba(255, 204, 120, .85);
  letter-spacing: .2px;
  user-select: none;
}

.ua-hud-hint{
  position:absolute;
  left:14px;
  bottom:10px;
  font-size:12px;
  color: rgba(190,240,255,.55);
  letter-spacing:.3px;
  user-select:none;
  pointer-events:none;
}
