/* SEL.IA — "Sentinela Regulatória" conceptual monitoring animation.
   Dark command-center scene: sources (left) → SEL.IA radar core (center)
   → e-mail alerts inbox (right). Brand: Outfit, navy #102b4e, pink gradient. */

.mon-scene {
  position: relative;
  width: 1180px;
  height: 640px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, #14305a 0%, #0c2548 45%, #081a33 100%);
  font-family: var(--font-sans, "Outfit", system-ui, sans-serif);
  color: #eaf0f7;
  box-shadow: 0 30px 80px rgba(8,18,35,0.4);
}
/* faint grid texture */
.mon-scene::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(80% 70% at 50% 45%, #000 40%, transparent 100%);
  pointer-events: none;
}

.mon-eyebrow {
  position: absolute; top: 30px; left: 0; right: 0;
  text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: #ff7aa8;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  z-index: 5;
}
.mon-title {
  position: absolute; top: 50px; left: 0; right: 0;
  text-align: center;
  font-size: 27px; font-weight: 800; letter-spacing: -0.02em; color: #fff;
  z-index: 5;
}

/* ---- column captions ---- */
.mon-cap {
  position: absolute; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: #8fa6c4;
  z-index: 6; white-space: nowrap;
}
.mon-cap.left  { left: 48px;  top: 112px; }
.mon-cap.right { right: 48px; top: 112px; text-align: right; }

/* ---- SVG connectors ---- */
.mon-links { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.mon-link  { stroke: rgba(255,255,255,0.10); stroke-width: 1.5; fill: none; }
.mon-link.hot {
  stroke: url(#monGrad);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 5px rgba(217,25,101,0.7));
  stroke-dasharray: 7 9;
  animation: mon-flow 600ms linear infinite;
}
@keyframes mon-flow { to { stroke-dashoffset: -32; } }

/* ---- source nodes (left) ---- */
.mon-source {
  position: absolute; left: 48px; width: 250px; height: 58px;
  display: flex; align-items: center; gap: 11px;
  padding: 0 14px;
  border-radius: 13px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  z-index: 3;
  transition: border-color 280ms ease, background 280ms ease, transform 280ms ease, box-shadow 280ms ease;
}
.mon-source .ms-ico {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: #9fb4d4;
  transition: all 280ms ease;
}
.mon-source .ms-body { min-width: 0; flex: 1; }
.mon-source .ms-name { font-size: 13.5px; font-weight: 700; color: #eaf0f7; line-height: 1.15; }
.mon-source .ms-sub  { font-size: 10px; color: #7e93ad; margin-top: 1px; }
.mon-source.active {
  background: rgba(217,25,101,0.14);
  border-color: rgba(217,25,101,0.65);
  transform: translateX(6px);
  box-shadow: 0 10px 30px rgba(217,25,101,0.28);
}
.mon-source.active .ms-ico {
  background: linear-gradient(135deg,#d91965,#ef405b); color: #fff;
}
/* match badge that pops on the active source */
.mon-match {
  position: absolute; right: -8px; top: -10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 9999px;
  background: linear-gradient(135deg,#d91965,#ef405b); color: #fff;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(217,25,101,0.45);
  transform: scale(0.6); opacity: 0;
  transition: transform 320ms cubic-bezier(0.34,1.56,0.64,1), opacity 240ms ease;
}
.mon-source.active .mon-match { transform: scale(1); opacity: 1; }
.mon-match .dotpulse {
  width: 6px; height: 6px; border-radius: 9999px; background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
  animation: mon-dotpulse 1100ms ease-out infinite;
}
@keyframes mon-dotpulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
  100% { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
}

/* ---- center radar core ---- */
.mon-core {
  position: absolute; left: 592px; top: 330px; transform: translate(-50%,-50%);
  width: 200px; height: 200px; z-index: 4;
}
.mon-ring {
  position: absolute; inset: 0; border-radius: 9999px;
  border: 1.5px solid rgba(217,25,101,0.35);
}
.mon-ring.r2 { inset: 26px; border-color: rgba(217,25,101,0.25); }
.mon-ring.r3 { inset: 54px; border-color: rgba(217,25,101,0.18); }
.mon-pulse {
  position: absolute; inset: 0; border-radius: 9999px;
  border: 2px solid rgba(217,25,101,0.55);
  animation: mon-radar 2600ms ease-out infinite;
}
.mon-pulse.d2 { animation-delay: 1300ms; }
@keyframes mon-radar {
  0%   { transform: scale(0.35); opacity: 0.9; }
  100% { transform: scale(1.05); opacity: 0; }
}
/* sweeping radar beam */
.mon-sweep {
  position: absolute; inset: 28px; border-radius: 9999px; overflow: hidden;
  -webkit-mask: radial-gradient(circle, #000 99%, transparent 100%);
}
.mon-sweep::after {
  content: ""; position: absolute; inset: 0;
  background: conic-gradient(from 0deg, rgba(217,25,101,0.0) 0deg, rgba(217,25,101,0.35) 40deg, rgba(217,25,101,0) 70deg);
  animation: mon-spin 3200ms linear infinite;
}
@keyframes mon-spin { to { transform: rotate(360deg); } }
.mon-core-disc {
  position: absolute; inset: 62px; border-radius: 9999px;
  background: radial-gradient(circle at 35% 30%, #16365f, #0b2240);
  border: 1.5px solid rgba(217,25,101,0.6);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 0 30px rgba(217,25,101,0.30), inset 0 0 18px rgba(217,25,101,0.18);
}
.mon-core-disc.ping { animation: mon-core-ping 600ms ease-out; }
@keyframes mon-core-ping {
  0% { box-shadow: 0 0 0 0 rgba(217,25,101,0.6), inset 0 0 18px rgba(217,25,101,0.18); }
  100% { box-shadow: 0 0 0 24px rgba(217,25,101,0), inset 0 0 18px rgba(217,25,101,0.18); }
}
.mon-core-mark {
  font-size: 22px; font-weight: 800; color: #fff; line-height: 1;
  display: flex; align-items: center; gap: 1px;
}
.mon-core-mark .ia {
  background: linear-gradient(135deg,#ff5c8a,#ef405b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mon-core-sub { font-size: 8.5px; color: #9fb4d4; margin-top: 3px; letter-spacing: 0.04em; }

/* watched items under the core */
.mon-watch {
  position: absolute; left: 592px; top: 488px; transform: translateX(-50%);
  width: 380px; text-align: center; z-index: 4;
}
.mon-watch-label {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #7e93ad; margin-bottom: 8px; white-space: nowrap;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.mon-watch-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.mon-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 9999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  font-size: 10.5px; font-weight: 600; color: #cfe0f2;
  white-space: nowrap;
  transition: all 240ms ease;
}
.mon-chip.fav { border-color: rgba(239,159,63,0.5); color: #ffd089; }
.mon-chip.lit {
  background: rgba(217,25,101,0.18); border-color: rgba(217,25,101,0.7); color: #fff;
  box-shadow: 0 4px 14px rgba(217,25,101,0.3);
}
.mon-chip svg { opacity: 0.85; }

/* travelling packet */
.mon-packet {
  position: absolute; width: 14px; height: 14px; border-radius: 9999px; z-index: 6;
  margin: -7px 0 0 -7px;
  background: radial-gradient(circle, #fff 0%, #ff6f9d 55%, rgba(217,25,101,0) 75%);
  box-shadow: 0 0 14px 4px rgba(217,25,101,0.6);
  opacity: 0;
}
.mon-packet.show { opacity: 1; }

/* e-mail dispatched confirmation toast (between core and inbox) */
.mon-sent-toast {
  position: absolute; top: 150px; left: 690px; z-index: 7;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 9999px;
  background: linear-gradient(135deg,#1f9a66,#27b07e); color: #fff;
  font-size: 11px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 10px 24px rgba(31,154,102,0.42);
  transform: scale(0.6) translateY(4px); opacity: 0; pointer-events: none;
  transition: transform 320ms cubic-bezier(0.34,1.56,0.64,1), opacity 240ms ease;
}
.mon-sent-toast.show { transform: scale(1) translateY(0); opacity: 1; }

/* ---- inbox (right) ---- */
.mon-inbox {
  position: absolute; right: 48px; top: 146px; width: 250px;
  z-index: 3;
}
.mon-inbox-head {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 13px; border-radius: 13px 13px 0 0;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-bottom: none;
}
.mon-inbox-head .ih-ico {
  width: 30px; height: 30px; border-radius: 8px; position: relative;
  background: rgba(255,255,255,0.08); color: #ffd089;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mon-bell-badge {
  position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 9999px;
  background: linear-gradient(135deg,#d91965,#ef405b); color: #fff;
  font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #0c2548;
}
.mon-bell-badge.bump { animation: mon-bump 460ms cubic-bezier(0.34,1.56,0.64,1); }
@keyframes mon-bump { 0%{transform:scale(1);} 40%{transform:scale(1.5);} 100%{transform:scale(1);} }
.mon-inbox-head .ih-title { font-size: 13px; font-weight: 700; color: #fff; }
.mon-inbox-head .ih-sub   { font-size: 9px; color: #7e93ad; }

.mon-inbox-body {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0 0 13px 13px;
  padding: 10px; display: flex; flex-direction: column; gap: 8px;
  min-height: 360px;
}
.mon-email {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 10px 11px; border-radius: 10px;
  background: #fff; color: #1a1d22;
  box-shadow: 0 8px 22px rgba(8,18,35,0.35);
  transform-origin: top center;
  animation: mon-email-in 460ms cubic-bezier(0.22,1,0.36,1);
}
@keyframes mon-email-in {
  0%   { opacity: 0; transform: translateY(-12px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.mon-email .me-ico {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: rgba(217,25,101,0.10); color: #d91965;
  display: flex; align-items: center; justify-content: center;
}
.mon-email .me-body { min-width: 0; flex: 1; }
.mon-email .me-from { font-size: 9px; color: #9aa0a6; font-weight: 600; }
.mon-email .me-subj { font-size: 11.5px; font-weight: 700; color: #102b4e; line-height: 1.25; margin: 1px 0 4px; }
.mon-email .me-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 8.5px; font-weight: 700; padding: 2px 7px; border-radius: 9999px;
  background: rgba(217,25,101,0.10); color: #d91965;
}
.mon-email .me-tag.fav { background: rgba(239,159,63,0.14); color: #c97a12; }
.mon-email.unread { border-left: 3px solid #d91965; }
.mon-email .me-unreaddot {
  width: 7px; height: 7px; border-radius: 9999px; background: #d91965; flex-shrink: 0; margin-top: 5px;
}

.mon-inbox-empty {
  text-align: center; color: #6f86a3; font-size: 11px; padding: 26px 10px;
}