/* ══════════════════════════════════════════════════
   AudiAI — Sistema de Tooltips
   Arquivo: static/css/tooltips.css
   Adicionar no base.html: <link rel="stylesheet" href="{{ url_for('static', filename='css/tooltips.css') }}">
══════════════════════════════════════════════════ */

/* ── Ícone de ajuda ───────────────────────────── */
.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(123, 111, 255, 0.2);
  border: 1px solid rgba(123, 111, 255, 0.4);
  color: var(--indigo-glow);
  font-size: 10px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: help;
  position: relative;
  vertical-align: middle;
  margin-left: 5px;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
  user-select: none;
}

.help-icon:hover {
  background: rgba(123, 111, 255, 0.35);
  border-color: var(--indigo-glow);
}

/* ── Tooltip bubble ───────────────────────────── */
.tooltip-bubble {
  position: fixed;
  z-index: 10000;
  max-width: 260px;
  background: #1E2235;
  border: 1px solid rgba(123, 111, 255, 0.35);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(123,111,255,0.1);
}

.tooltip-bubble.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Seta do tooltip */
.tooltip-bubble::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #1E2235;
  border: 1px solid rgba(123, 111, 255, 0.35);
  transform: rotate(45deg);
}

/* Seta para cima (tooltip aparece abaixo) */
.tooltip-bubble.arrow-top::before {
  top: -5px;
  left: 50%;
  margin-left: -4px;
  border-bottom: none;
  border-right: none;
}

/* Seta para baixo (tooltip aparece acima) */
.tooltip-bubble.arrow-bottom::before {
  bottom: -5px;
  left: 50%;
  margin-left: -4px;
  border-top: none;
  border-left: none;
}

.tooltip-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #F4F5FF;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.tooltip-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #8890B0;
  line-height: 1.5;
}

.tooltip-text strong {
  color: #b0b8d8;
  font-weight: 600;
}

/* ── Label com ícone inline ───────────────────── */
.label-with-help {
  display: flex;
  align-items: center;
  gap: 0px;
}

/* ── Highlight sutil ao fazer hover no campo pai ─ */
.field:has(.help-icon:hover) input,
.field:has(.help-icon:hover) select,
.field:has(.help-icon:hover) textarea {
  border-color: rgba(123, 111, 255, 0.4);
}
