/* Origem: WHP frontend/static/css/custom.css@d2ea027
   Adaptações: cores hardcoded do Tailwind default (azul #3b82f6, slate) trocadas
   por tokens do design-system HNK (var(--info), var(--line), var(--marca));
   focus ring azul vira verde-garrafa; removido bloco "Grid de meses"
   (grid de meses não existe no HNK). */

/* custom.css — Estilos complementares ao TailwindCSS */

/* ─── Animações ─────────────────────────────────────────────────── */

/* Barra de progresso indeterminada */
@keyframes indeterminate {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}
.progress-indeterminate {
  overflow: hidden;
  position: relative;
  height: 4px;
  border-radius: 2px;
  background-color: var(--line, #E2E7DE);
}
.progress-indeterminate::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
  border-radius: 2px;
  background-color: var(--info, #2E5F6E);
  animation: indeterminate 1.5s ease-in-out infinite;
}

/* Pulse suave para stepper ativo */
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}
.animate-pulse-soft {
  animation: pulse-soft 2s ease-in-out infinite;
}

/* ─── Toast entrada/saída ───────────────────────────────────────── */
.toast-enter {
  animation: toast-slide-in 0.3s ease-out;
}
@keyframes toast-slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ─── Scrollbar customizada para log do agente ──────────────────── */
.agent-log::-webkit-scrollbar {
  width: 6px;
}
.agent-log::-webkit-scrollbar-track {
  background: var(--ground, #F1F4EF);
  border-radius: 3px;
}
.agent-log::-webkit-scrollbar-thumb {
  background: var(--line-2, #D3DACE);
  border-radius: 3px;
}
.agent-log::-webkit-scrollbar-thumb:hover {
  background: var(--ink-muted, #626B62);
}

/* ─── Stepper connector ─────────────────────────────────────────── */
.stepper-line {
  transition: background-color 0.5s ease;
}

/* ─── Modal overlay ─────────────────────────────────────────────── */
.modal-overlay {
  background-color: rgba(25, 29, 25, 0.5);
  backdrop-filter: blur(2px);
}

/* ─── Textarea auto-resize helper ───────────────────────────────── */
textarea.auto-resize {
  min-height: 120px;
  resize: vertical;
}

/* ─── Focus ring consistente ────────────────────────────────────── */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 74, 38, 0.22);
}
