/* ============================================================
   IT podrška i održavanje: prikazi
   (A put zahtjeva, B nadzor mreže)
   Okvir .viz, kontrole i status su zajednički, u usluge.css.
   ============================================================ */

/* ---------- A: put zahtjeva ---------- */
.sup-route { display: block; }
.sup-route--v { display: none; max-width: 340px; margin: 0 auto; }
@media (max-width: 575.98px) {
  .sup-route--h { display: none; }
  .sup-route--v { display: block; }
}
.sup-link { fill: none; stroke: #4f4b3f; stroke-width: 2.5; stroke-linecap: round; }
.sup-trail { fill: none; stroke: var(--electric-blue); stroke-width: 3; stroke-linecap: round; }
.is-static .sup-trail { opacity: 0.55; }
.sup-node rect { fill: #262626; stroke: rgba(233, 202, 165, 0.35); stroke-width: 1.2; transition: stroke 0.25s ease, fill 0.25s ease; }
.sup-node text { fill: var(--text-light); font-size: 15px; font-weight: 650; }
.sup-node--ok text .sup-tick { fill: #3ecf6e; }
.sup-node.is-active rect { stroke: var(--electric-blue); stroke-width: 2; fill: rgba(212, 175, 55, 0.14); }
.sup-dot { fill: var(--electric-blue); stroke: #1e1e1e; stroke-width: 3; transition: opacity 0.15s ease; }
.sup-route-list { list-style: none; counter-reset: sup; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.9rem; padding: 0; margin: 1rem 0 0; }
.sup-route-list li { counter-increment: sup; font-size: 0.86rem; line-height: 1.5; color: var(--text-muted); border-top: 2px solid rgba(212, 175, 55, 0.3); padding-top: 0.5rem; }
.sup-route-list strong { display: block; color: var(--text-light); }
@media (max-width: 991.98px) { .sup-route-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .sup-route-list { grid-template-columns: 1fr; } }

/* ---------- B: nadzor mreže (maketa) ---------- */
.sup-monitor-fig { max-width: 620px; }
.sup-mon-bg { fill: #181818; stroke: var(--viz-line); }
.sup-mon-title { fill: var(--text-light); font-size: 16px; font-weight: 700; }
.sup-mon-sum { fill: var(--text-muted); font-size: 12.5px; }
.sup-mon-head { fill: var(--text-muted); font-size: 12px; font-weight: 600; }
.sup-mon-row { stroke: rgba(255, 255, 255, 0.07); }
.sup-mon-name { fill: var(--text-light); font-size: 14.5px; font-weight: 600; }
.sup-mon-ok { fill: var(--text-muted); font-size: 13px; }
.sup-mon-warn { fill: #ffd23f; font-size: 13px; font-weight: 700; }
.sup-led-ok { fill: #3ecf6e; }
.sup-led-warn { fill: #ffd23f; }
.sup-pulse { fill: none; stroke: #ffd23f; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: sup-pulse 1.8s ease-out infinite; }
@keyframes sup-pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.6); opacity: 0; } }
.sup-spark { fill: none; stroke: var(--electric-blue); stroke-width: 1.8; stroke-linejoin: round; }
.sup-spark-area { fill: rgba(212, 175, 55, 0.14); }
.sup-spark-box { fill: none; stroke: rgba(255, 255, 255, 0.06); }

/* uski ekran: maketa se smanji, pa natpise povećamo u jedinicama crteža */
@media (max-width: 575.98px) {
  .sup-mon-title { font-size: 22px; }
  .sup-mon-sum { font-size: 15px; }
  .sup-mon-head { font-size: 16px; }
  .sup-mon-name { font-size: 20px; }
  .sup-mon-ok, .sup-mon-warn { font-size: 18px; }
}

/* ---------- smanjeno kretanje ---------- */
@media (prefers-reduced-motion: reduce) {
  .sup-pulse { animation: none; opacity: 0.6; transform: scale(1.8); }
  .sup-node rect, .sup-dot { transition: none; }
}
