/* ============================================================
   AIN Device Icons — animations and helper classes
   Used together with DeviceIcons.get(...) markup.
   ============================================================ */

/* Pulse used by .di-pulse class (added when opts.animate=true).
   Mainly intended for DOWN devices on the topology / site map. */
.di-pulse {
  animation: di-pulse-anim 1.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes di-pulse-anim {
  0%, 100% { transform: scale(1);    filter: brightness(1); }
  50%      { transform: scale(0.95); filter: brightness(1.3); }
}

/* Wrapper with status ring — used as: <div class="di-ring di-ring-up">…icon…</div> */
.di-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 4px;
  border: 2px solid;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}
.di-ring-up         { border-color: #22C55E; box-shadow: 0 0 12px rgba(34, 197, 94, 0.45); }
.di-ring-down       { border-color: #EF4444; box-shadow: 0 0 12px rgba(239, 68, 68, 0.55); animation: di-ring-pulse 1.4s ease-in-out infinite; }
.di-ring-unknown    { border-color: #6B7280; box-shadow: 0 0 8px rgba(107, 114, 128, 0.35); }
.di-ring-unreachable{ border-color: #F59E0B; box-shadow: 0 0 12px rgba(245, 158, 11, 0.45); }
.di-ring-maintenance{ border-color: #A78BFA; box-shadow: 0 0 12px rgba(167, 139, 250, 0.45); }
.di-ring-neutral    { border-color: #06B6D4; box-shadow: 0 0 10px rgba(6, 182, 212, 0.35); }
.di-ring:hover      { transform: scale(1.05); }

@keyframes di-ring-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.55); }
  50%      { box-shadow: 0 0 22px rgba(239, 68, 68, 0.85), 0 0 0 4px rgba(239, 68, 68, 0.15); }
}

/* Tile variant — used in catalogues / lists */
.di-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  transition: all 0.18s ease;
  cursor: pointer;
}
.di-tile:hover {
  background: rgba(6, 182, 212, 0.06);
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}
.di-tile-label {
  font-size: 10px;
  color: #9ca3af;
  letter-spacing: 1px;
  text-transform: uppercase;
}