/* ============================================================
   Cabral Festas CRM — app.css (Tema Claro & Moderno)
   ============================================================ */

/* Reset e Base */
html { scroll-behavior: smooth; }

/* Loading state */
.loading { opacity: .6; pointer-events: none; }

/* Kanban drag & drop */
.kanban-card.sortable-ghost {
  opacity: 0.3;
  border: 2px dashed #7c3aed;
  background: rgba(124, 58, 237, 0.08);
}
.kanban-card.sortable-drag {
  transform: rotate(2deg) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeIn .3s ease-out; }

/* Componentes UI Reutilizáveis (Canvas Design System) */
.label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.input-field {
  width: 100%;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.input-field:focus {
  background-color: #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.input-field::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-btn-bg, #7c3aed);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8125rem;
  padding: 0.65rem 1.25rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--color-btn-hover, #6d28d9);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f1f5f9;
  color: #334155;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.65rem 1.15rem;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Status badge colors */
.status-novo       { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.status-em_analise { background: #fefce8; color: #a16207; border: 1px solid #fef08a; }
.status-confirmado { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.status-pago       { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.status-cancelado  { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.status-expirado   { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }


/* Print */
@media print {
  .no-print { display: none !important; }
  body { background: white; color: black; }
}

/* Focus ring acessibilidade */
:focus-visible { outline: 2px solid #7c3aed; outline-offset: 2px; }

/* Transição suave nos links */
a { transition: color .15s, opacity .15s; }

/* Textarea resize */
textarea { resize: vertical; min-height: 70px; }
