/* ================================================================
   CHANCE — confirm-modal.css
   Componente de confirmação compartilhado entre páginas.
   Classes prefixadas `cmodal-` para NÃO colidir com .modal-overlay /
   .modal-box já existentes em style.css e mensagens.css.
   Carregado junto de confirm-modal.js.
================================================================ */

.cmodal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: cmodalFadeIn 0.18s ease;
}

@keyframes cmodalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cmodal-box {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 400px;
  padding: 1.75rem 1.75rem 1.5rem;
  text-align: center;
  animation: cmodalSlideUp 0.2s cubic-bezier(0.34, 1.45, 0.64, 1);
  box-sizing: border-box;
}

@keyframes cmodalSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Badge circular do ícone */
.cmodal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(80, 40, 159, 0.1);
  color: #50289F;
}
.cmodal__icon--danger {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.cmodal__titulo {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.cmodal__msg {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.55;
}

.cmodal__actions {
  display: flex;
  gap: 0.625rem;
}

.cmodal__btn {
  flex: 1 1 0;
  appearance: none;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.2;
}
.cmodal__btn:hover { transform: translateY(-1px); }

.cmodal__btn--ghost {
  background: #f3f4f6;
  color: #374151;
}
.cmodal__btn--ghost:hover { background: #e5e7eb; }

.cmodal__btn--danger {
  background: #dc2626;
  color: #fff;
}
.cmodal__btn--danger:hover {
  background: #b91c1c;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.cmodal__btn--primary {
  background: #50289F;
  color: #fff;
}
.cmodal__btn--primary:hover {
  background: #3f1f80;
  box-shadow: 0 4px 12px rgba(80, 40, 159, 0.3);
}

@media (max-width: 420px) {
  .cmodal__actions { flex-direction: column-reverse; }
}
