/* ==========================================================
   BrazsafeAlert — estilos dos alertas customizados
   z-index: 20000 (acima de todos os modais do sistema)
========================================================== */

.bzs-alert-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(2, 6, 23, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: bzs-fadein 0.18s ease forwards;
}

.bzs-alert-backdrop.bzs-alert--out {
  animation: bzs-fadeout 0.18s ease forwards;
  pointer-events: none;
}

@keyframes bzs-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes bzs-fadeout {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.bzs-alert-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 28px 24px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  animation: bzs-slidein 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bzs-slidein {
  from { transform: translateY(18px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.bzs-alert-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bzs-alert-icon svg {
  width: 28px;
  height: 28px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Cores por tipo */
.bzs-alert--info    .bzs-alert-icon { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.bzs-alert--success .bzs-alert-icon { background: rgba(34, 197, 94, 0.15);  color: #22c55e; }
.bzs-alert--warning .bzs-alert-icon { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.bzs-alert--error   .bzs-alert-icon { background: rgba(239, 68, 68, 0.15);  color: #ef4444; }
.bzs-alert--confirm .bzs-alert-icon { background: rgba(99, 102, 241, 0.15); color: #818cf8; }

.bzs-alert-title {
  font-size: 17px;
  font-weight: 700;
  color: #f1f5f9;
  text-align: center;
  line-height: 1.3;
}

.bzs-alert-message {
  font-size: 14px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.6;
}

.bzs-alert-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.bzs-alert-btn {
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.12s ease;
}

.bzs-alert-btn:active {
  transform: scale(0.97);
  opacity: 0.85;
}

.bzs-alert-btn--ok,
.bzs-alert-btn--confirm {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  color: #fff;
}

.bzs-alert-btn--cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

/* confirm: dois botões lado a lado */
.bzs-alert-actions:has(.bzs-alert-btn--cancel) {
  flex-direction: row-reverse;
}

.bzs-alert-actions:has(.bzs-alert-btn--cancel) .bzs-alert-btn {
  flex: 1;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .bzs-alert-card {
    padding: 24px 18px 18px;
    border-radius: 14px;
    gap: 10px;
  }

  .bzs-alert-icon {
    width: 50px;
    height: 50px;
  }

  .bzs-alert-icon svg {
    width: 24px;
    height: 24px;
  }

  .bzs-alert-title {
    font-size: 16px;
  }

  .bzs-alert-message {
    font-size: 13px;
  }

  .bzs-alert-btn {
    min-height: 44px;
    font-size: 14px;
  }
}
