/* 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: #e5e7eb;
}
.progress-indeterminate::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
  border-radius: 2px;
  background-color: #3b82f6;
  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: #f1f5f9;
  border-radius: 3px;
}
.agent-log::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
.agent-log::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ─── Grid de meses ─────────────────────────────────────────────── */
.month-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.month-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* ─── Modal overlay ─────────────────────────────────────────────── */
.modal-overlay {
  background-color: rgba(0, 0, 0, 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(59, 130, 246, 0.3);
}
