/**
 * Z-MODAL - Confirmation Modal Component
 * Usa z-transitions para animaciones
 */

.z-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999999999;
}

.z-modal-overlay.active {
  display: flex;
}

.z-modal {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform-origin: center center;
}

.z-modal-content {
  padding: 24px;
  text-align: center;
}

.z-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.z-modal-icon i {
  font-size: 28px;
}

.z-modal-icon.icon-danger {
  background: #fef2f2;
  color: #dc2626;
}

.z-modal-icon.icon-warning {
  background: #fefce8;
  color: #ca8a04;
}

.z-modal-icon.icon-info {
  background: #eff6ff;
  color: #2563eb;
}

.z-modal-icon.icon-success {
  background: #f0fdf4;
  color: #16a34a;
}

.z-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 8px 0;
}

.z-modal-message {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.z-modal-actions {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #f0f0f2;
  background: #fafafa;
  border-radius: 0 0 16px 16px;
}

.z-modal-actions button {
  flex: 1;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.z-modal-btn-cancel {
  background: white;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.z-modal-btn-cancel:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.z-modal-btn-confirm {
  border: none;
  color: white;
}

.z-modal-btn-confirm.btn-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.z-modal-btn-confirm.btn-danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.z-modal-btn-confirm.btn-warning {
  background: #fefce8;
  color: #ca8a04;
  border: 1px solid #fde047;
}

.z-modal-btn-confirm.btn-warning:hover {
  background: #fef9c3;
  border-color: #facc15;
}

.z-modal-btn-confirm.btn-primary {
  background: rgba(99, 102, 241, 0.1);
  color: var(--theme-primary, #6366f1);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.z-modal-btn-confirm.btn-primary:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

.z-modal-btn-confirm.btn-success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.z-modal-btn-confirm.btn-success:hover {
  background: #dcfce7;
  border-color: #86efac;
}
