/* =========================================================
   SY — CONTRASTE PREMIUM V2
   Carregado depois de sy-widget.css.
   ========================================================= */

#sy-widget-root .syw-launcher {
  border: 1px solid rgba(34, 211, 238, 0.46);
  color: #f8fafc;
  background:
    radial-gradient(circle at 8% 20%, rgba(34, 211, 238, 0.22), transparent 33%),
    linear-gradient(135deg, #081527 0%, #101a33 55%, #251066 100%);
  box-shadow:
    0 20px 52px rgba(5, 11, 24, 0.54),
    0 10px 30px rgba(29, 167, 255, 0.16),
    0 0 0 1px rgba(109, 76, 255, 0.12) inset !important;
}

#sy-widget-root .syw-launcher:hover {
  border-color: rgba(34, 211, 238, 0.68);
  background:
    radial-gradient(circle at 8% 20%, rgba(34, 211, 238, 0.28), transparent 35%),
    linear-gradient(135deg, #0a1b31 0%, #142040 55%, #2c176c 100%);
}

#sy-widget-root .syw-launcher-title {
  color: #ffffff;
  font-weight: 850;
  text-shadow: 0 2px 8px rgba(5, 11, 24, 0.55);
}

#sy-widget-root .syw-launcher-subtitle {
  color: #d8e2f0;
  font-weight: 700;
  text-shadow: 0 1px 5px rgba(5, 11, 24, 0.48);
}

#sy-widget-root .syw-launcher-avatar {
  border-color: rgba(248, 250, 252, 0.92);
  box-shadow:
    0 8px 20px rgba(5, 11, 24, 0.42),
    0 0 0 4px rgba(34, 211, 238, 0.12);
}

#sy-widget-root .syw-online-dot {
  border-color: #081527;
}

/* Painel */
#sy-widget-root .syw-panel {
  border-color: rgba(34, 211, 238, 0.18);
  background:
    radial-gradient(circle at 12% 2%, rgba(34, 211, 238, 0.1), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(109, 76, 255, 0.13), transparent 34%),
    linear-gradient(180deg, #081527, #050b18);
  box-shadow:
    0 36px 96px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(109, 76, 255, 0.06) inset;
}

#sy-widget-root .syw-header {
  border-bottom-color: rgba(216, 226, 240, 0.12);
  background:
    linear-gradient(135deg, rgba(8, 21, 39, 0.98), rgba(16, 26, 51, 0.96), rgba(37, 16, 102, 0.68));
}

#sy-widget-root .syw-header-title {
  color: #ffffff;
}

#sy-widget-root .syw-header-subtitle {
  color: #bdc9da;
}

#sy-widget-root .syw-icon-button {
  color: #d8e2f0;
  border-color: rgba(216, 226, 240, 0.16);
  background: rgba(255, 255, 255, 0.045);
}

#sy-widget-root .syw-icon-button:hover {
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.08);
}

/* Mensagens */
#sy-widget-root .syw-message {
  font-weight: 500;
}

#sy-widget-root .syw-message.is-assistant {
  border-color: rgba(216, 226, 240, 0.15);
  color: #f8fafc;
  background:
    linear-gradient(145deg, rgba(24, 36, 62, 0.98), rgba(13, 24, 44, 0.98));
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

#sy-widget-root .syw-message.is-user {
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: #ffffff;
  background:
    linear-gradient(135deg, #123a62 0%, #173b73 48%, #352269 100%);
  box-shadow:
    0 12px 28px rgba(5, 11, 24, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-shadow: 0 1px 2px rgba(5, 11, 24, 0.38);
}

#sy-widget-root .syw-message.is-error {
  border-color: rgba(248, 113, 113, 0.38);
  color: #fee2e2;
  background: rgba(92, 20, 30, 0.42);
}

#sy-widget-root .syw-message a {
  color: #67e8f9;
}

#sy-widget-root .syw-message-mini-avatar {
  border-color: rgba(34, 211, 238, 0.28);
}

/* Atalhos */
#sy-widget-root .syw-quick-action {
  border-color: rgba(34, 211, 238, 0.22);
  color: #e6fbff;
  background: rgba(11, 35, 58, 0.78);
}

#sy-widget-root .syw-quick-action:hover {
  border-color: rgba(34, 211, 238, 0.46);
  color: #ffffff;
  background: rgba(20, 57, 87, 0.92);
}

/* Campo de digitação */
#sy-widget-root .syw-composer-area {
  border-top-color: rgba(216, 226, 240, 0.12);
  background: rgba(5, 11, 24, 0.96);
}

#sy-widget-root .syw-composer {
  border-color: rgba(34, 211, 238, 0.22) !important;
  background: #0a1427 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 10px 24px rgba(0, 0, 0, 0.12);
}

#sy-widget-root .syw-composer:focus-within {
  border-color: rgba(34, 211, 238, 0.62) !important;
  background: #0d1930 !important;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.13),
    0 0 0 4px rgba(34, 211, 238, 0.055),
    0 12px 28px rgba(0, 0, 0, 0.2) !important;
}

#sy-widget-root .syw-input,
#sy-widget-root .syw-input:focus,
#sy-widget-root .syw-input:focus-visible {
  color: #f8fafc !important;
  caret-color: #22d3ee;
}

#sy-widget-root .syw-input::placeholder {
  color: #94a3b8 !important;
  opacity: 1;
}

#sy-widget-root .syw-send {
  color: #ffffff;
  background: linear-gradient(135deg, #22d3ee, #1da7ff 48%, #6d4cff);
  box-shadow:
    0 10px 24px rgba(29, 167, 255, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.11);
}

#sy-widget-root .syw-send svg {
  filter: drop-shadow(0 1px 2px rgba(5, 11, 24, 0.42));
}

#sy-widget-root .syw-privacy-note {
  color: #7f8ea5;
}

/* Convite */
#sy-widget-root .syw-nudge {
  border-color: rgba(34, 211, 238, 0.22);
  color: #f8fafc;
  background:
    linear-gradient(145deg, rgba(16, 26, 51, 0.99), rgba(8, 21, 39, 0.99));
}

/* Scroll */
#sy-widget-root .syw-messages::-webkit-scrollbar-thumb {
  background: rgba(34, 211, 238, 0.2);
  background-clip: padding-box;
}
