/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Intel relationship graph (intel_graph_controller.js; same look as the
   Passive DNS Console). Colours are tokens so a theme can redefine them. */
.ig-canvas { --ig-text: #334155; --ig-muted: #94a3b8; --ig-halo: #fff; --ig-node: #fff; --ig-ring: #e2e8f0; --ig-tip-bg: #0f172a; --ig-tip-fg: #f8fafc;
  position: relative; width: 100%; height: clamp(320px, 58vw, 560px); border-radius: 0.5rem; overflow: hidden;
  background: radial-gradient(ellipse at center, #f8faff 0%, #fff 70%); }
.ig-svg { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; user-select: none; }
.ig-svg.ig-grab { cursor: grabbing; }
.ig-ring { fill: none; stroke: var(--ig-ring); stroke-dasharray: 2 5; pointer-events: none; }
.ig-es, .ig-svg > circle { pointer-events: none; }
.ig-halo { fill: #6366f1; opacity: .12; }
.ig-e { fill: none; stroke-width: 1.3; stroke-opacity: .45; transition: stroke-opacity .15s, stroke-width .15s; }
.ig-n { fill: var(--ig-node); stroke-width: 2.2; transition: transform .15s; }
.ig-sum { fill: var(--ig-node); stroke-width: 1.6; stroke-dasharray: 3 2; }
.ig-sum-t { font: 700 11px ui-sans-serif, system-ui, sans-serif; fill: var(--ig-muted); text-anchor: middle; pointer-events: none; }
.ig-flag { fill: none; stroke-width: 2.4; }
.ig-flag.ig-bad { stroke: #e11d48; } .ig-flag.ig-warn { stroke: #f59e0b; }
.ig-l { font: 500 calc(11px * var(--ig-f, 1)) ui-monospace, SFMono-Regular, Menlo, monospace; fill: var(--ig-text); paint-order: stroke; stroke: var(--ig-halo); stroke-width: calc(3px * var(--ig-f, 1)); stroke-linejoin: round; pointer-events: none; transition: opacity .15s; }
.ig-l0 { font: 700 calc(13px * var(--ig-f, 1)) ui-sans-serif, system-ui, sans-serif; }
.ig-lh { opacity: 0; }
.ig-v { cursor: pointer; transition: opacity .15s; }
.ig-v:hover .ig-n, .ig-v:focus .ig-n { transform: scale(1.35); }
.ig-v:focus { outline: none; }
.ig-dim .ig-v:not(.ig-on) { opacity: .22; }
.ig-dim .ig-e:not(.ig-on) { stroke-opacity: .06; }
.ig-dim .ig-e.ig-on { stroke-opacity: .95; stroke-width: 2.2; }
.ig-dim .ig-v.ig-on .ig-lh { opacity: 1; }
.ig-in .ig-v { animation: ig-pop .4s cubic-bezier(.2,.8,.2,1.2) both; }
.ig-in .ig-v[data-hop="1"] { animation-delay: .08s; } .ig-in .ig-v[data-hop="2"] { animation-delay: .18s; }
.ig-in .ig-es { animation: ig-fade .5s ease-out .05s both; }
@keyframes ig-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes ig-fade { from { opacity: 0; } to { opacity: 1; } }
.ig-v { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .ig-in .ig-v, .ig-in .ig-es { animation: none; } }
.ig-tools { position: absolute; top: 10px; right: 10px; display: flex; border: 1px solid var(--ig-ring); border-radius: 8px; overflow: hidden;
  background: color-mix(in srgb, var(--ig-node) 88%, transparent); backdrop-filter: blur(6px); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04); }
.ig-tools button { all: unset; box-sizing: border-box; width: 30px; height: 28px; display: grid; place-items: center; color: var(--ig-text); cursor: pointer; transition: background .12s, color .12s; }
.ig-tools button + button { box-shadow: inset 1px 0 0 var(--ig-ring); } /* a divider that takes no room: icons stay exactly centred */
.ig-tools button:hover { background: color-mix(in srgb, #6366f1 12%, transparent); color: #6366f1; }
.ig-tools button:active { background: color-mix(in srgb, #6366f1 20%, transparent); }
.ig-tools button:focus-visible { outline: 2px solid #6366f1; outline-offset: -2px; }
.ig-tools svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ig-tip { position: absolute; z-index: 5; max-width: 280px; padding: 7px 9px; border-radius: 8px; background: var(--ig-tip-bg); color: var(--ig-tip-fg); font: 12px/1.35 ui-sans-serif, system-ui, sans-serif; box-shadow: 0 8px 24px rgba(15,23,42,.25); pointer-events: none; display: flex; flex-direction: column; gap: 2px; }
.ig-tip b { font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.ig-tip em { font-style: normal; opacity: .6; font-size: 11px; }
.ig-badge { align-self: flex-start; border-radius: 4px; padding: 0 5px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.ig-badge.ig-bad { background: #e11d48; color: #fff; } .ig-badge.ig-warn { background: #f59e0b; color: #111; }
.ig-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ig-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #e2e8f0; border-radius: 999px; padding: 2px 9px; font: 11px ui-sans-serif, system-ui, sans-serif; color: #475569; background: #fff; cursor: pointer; }
.ig-chip b { font-weight: 600; color: #0f172a; }
.ig-chip:hover, .ig-chip.ig-on { border-color: #6366f1; background: #eef2ff; }
.ig-canvas.ig-none { height: auto; }
.ig-empty { margin: 0; padding: 48px 12px; text-align: center; font: 12px ui-sans-serif, system-ui, sans-serif; color: #94a3b8; }
.ig-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ig-loading span { width: 7px; height: 7px; border-radius: 50%; background: #a5b4fc; animation: ig-dot 1s ease-in-out infinite; }
.ig-loading span:nth-child(2) { animation-delay: .15s; } .ig-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes ig-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
